ATLAS Offline Software
Loading...
Searching...
No Matches
BaseTRTPIDCalculator.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// BaseTRTPIDCalculator.cxx, (c) ATLAS Detector software
8
9
11
12// StoreGate, Athena, and Database stuff:
13#include "Identifier/Identifier.h"
16#include "CoralBase/AttributeListSpecification.h"
17#include "CoralBase/Blob.h"
18
19// Math functions:
20#include <cmath>
21
22/**************************************************************************** \
23|*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*|
24|*%%% BaseTRTPIDCalculator class %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*|
25|*%%% common funtionality of the other two Calculator classes %%%%%%%%%%%%%*|
26|*%%% is implemented here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*|
27|*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*|
28\*****************************************************************************/
29bool InDet::BaseTRTPIDCalculator::FillBlob(const unsigned char* source){
30 //Copy the Coral Blob into a local array
31 for(int i=0; i < BLOB_SIZE; i++){
32 Blob[i]=source[i];
33 }
35 return 1;
36}
37
44
45float InDet::BaseTRTPIDCalculator::Limit(float prob) const{
46 if( prob > UpperLimit ){
47 return UpperLimit;
48 }
49 if( prob < LowerLimit ){
50 return LowerLimit;
51 }
52
53 return prob;
54}
55
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
bool FillBlob(const unsigned char *)
virtual void setDefaultCalibrationConstants()=0