ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
InDet::BaseTRTPIDCalculator Class Referenceabstract

#include <BaseTRTPIDCalculator.h>

Inheritance diagram for InDet::BaseTRTPIDCalculator:
Collaboration diagram for InDet::BaseTRTPIDCalculator:

Public Member Functions

 BaseTRTPIDCalculator (AthAlgTool &p, int size, const char *name)
 
 ~BaseTRTPIDCalculator ()
 
 BaseTRTPIDCalculator (const BaseTRTPIDCalculator &)=delete
 
BaseTRTPIDCalculatoroperator= (const BaseTRTPIDCalculator &)=delete
 
virtual void setDefaultCalibrationConstants ()=0
 
void checkInitialization ()
 
bool FillBlob (const unsigned char *)
 
float Limit (float prob) const
 

Public Attributes

AthAlgToolparent
 
const char * my_name
 
int BLOB_SIZE
 
unsigned char * Blob
 
float & UpperLimit
 
float & LowerLimit
 
bool HasBeenInitialized
 
int CurrentVersion
 

Static Public Attributes

static const int SIZE_OF_HEADER = 12
 
static const int _Version = 0
 
static const int _Day = 1
 
static const int _Month = 2
 
static const int _Year = 3
 
static const int OFF_UpperLim = 4
 
static const int OFF_LowerLim = 8
 

Detailed Description

Definition at line 19 of file BaseTRTPIDCalculator.h.

Constructor & Destructor Documentation

◆ BaseTRTPIDCalculator() [1/2]

InDet::BaseTRTPIDCalculator::BaseTRTPIDCalculator ( AthAlgTool p,
int  size,
const char *  name 
)
inline

Definition at line 47 of file BaseTRTPIDCalculator.h.

47  :parent(p),
48  my_name(name),
49  BLOB_SIZE(size),
50  Blob(new unsigned char[size]),
51  UpperLimit( * ((float*)( Blob + OFF_UpperLim) ) ),
52  LowerLimit( * ((float*)( Blob + OFF_LowerLim) ) ),
54  {
55  CurrentVersion = -1;
56  }

◆ ~BaseTRTPIDCalculator()

InDet::BaseTRTPIDCalculator::~BaseTRTPIDCalculator ( )
inline

Definition at line 58 of file BaseTRTPIDCalculator.h.

58  {
59  delete [] Blob;
60  }

◆ BaseTRTPIDCalculator() [2/2]

InDet::BaseTRTPIDCalculator::BaseTRTPIDCalculator ( const BaseTRTPIDCalculator )
delete

Member Function Documentation

◆ checkInitialization()

void InDet::BaseTRTPIDCalculator::checkInitialization ( )

Definition at line 38 of file BaseTRTPIDCalculator.cxx.

38  {
39  if( not HasBeenInitialized ) {
42  }
43 }

◆ FillBlob()

bool InDet::BaseTRTPIDCalculator::FillBlob ( const unsigned char *  source)

Definition at line 29 of file BaseTRTPIDCalculator.cxx.

29  {
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 }

◆ Limit()

float InDet::BaseTRTPIDCalculator::Limit ( float  prob) const

Definition at line 45 of file BaseTRTPIDCalculator.cxx.

45  {
46  if( prob > UpperLimit ){
47  return UpperLimit;
48  }
49  if( prob < LowerLimit ){
50  return LowerLimit;
51  }
52 
53  return prob;
54 }

◆ operator=()

BaseTRTPIDCalculator& InDet::BaseTRTPIDCalculator::operator= ( const BaseTRTPIDCalculator )
delete

◆ setDefaultCalibrationConstants()

virtual void InDet::BaseTRTPIDCalculator::setDefaultCalibrationConstants ( )
pure virtual

Member Data Documentation

◆ _Day

const int InDet::BaseTRTPIDCalculator::_Day = 1
static

Definition at line 40 of file BaseTRTPIDCalculator.h.

◆ _Month

const int InDet::BaseTRTPIDCalculator::_Month = 2
static

Definition at line 41 of file BaseTRTPIDCalculator.h.

◆ _Version

const int InDet::BaseTRTPIDCalculator::_Version = 0
static

Definition at line 39 of file BaseTRTPIDCalculator.h.

◆ _Year

const int InDet::BaseTRTPIDCalculator::_Year = 3
static

Definition at line 42 of file BaseTRTPIDCalculator.h.

◆ Blob

unsigned char* InDet::BaseTRTPIDCalculator::Blob

Definition at line 25 of file BaseTRTPIDCalculator.h.

◆ BLOB_SIZE

int InDet::BaseTRTPIDCalculator::BLOB_SIZE

Definition at line 24 of file BaseTRTPIDCalculator.h.

◆ CurrentVersion

int InDet::BaseTRTPIDCalculator::CurrentVersion

Definition at line 38 of file BaseTRTPIDCalculator.h.

◆ HasBeenInitialized

bool InDet::BaseTRTPIDCalculator::HasBeenInitialized

Definition at line 30 of file BaseTRTPIDCalculator.h.

◆ LowerLimit

float& InDet::BaseTRTPIDCalculator::LowerLimit

Definition at line 28 of file BaseTRTPIDCalculator.h.

◆ my_name

const char* InDet::BaseTRTPIDCalculator::my_name

Definition at line 23 of file BaseTRTPIDCalculator.h.

◆ OFF_LowerLim

const int InDet::BaseTRTPIDCalculator::OFF_LowerLim = 8
static

Definition at line 45 of file BaseTRTPIDCalculator.h.

◆ OFF_UpperLim

const int InDet::BaseTRTPIDCalculator::OFF_UpperLim = 4
static

Definition at line 44 of file BaseTRTPIDCalculator.h.

◆ parent

AthAlgTool& InDet::BaseTRTPIDCalculator::parent

Definition at line 22 of file BaseTRTPIDCalculator.h.

◆ SIZE_OF_HEADER

const int InDet::BaseTRTPIDCalculator::SIZE_OF_HEADER = 12
static

Definition at line 32 of file BaseTRTPIDCalculator.h.

◆ UpperLimit

float& InDet::BaseTRTPIDCalculator::UpperLimit

Definition at line 27 of file BaseTRTPIDCalculator.h.


The documentation for this class was generated from the following files:
InDet::BaseTRTPIDCalculator::BLOB_SIZE
int BLOB_SIZE
Definition: BaseTRTPIDCalculator.h:24
InDet::BaseTRTPIDCalculator::parent
AthAlgTool & parent
Definition: BaseTRTPIDCalculator.h:22
InDet::BaseTRTPIDCalculator::Blob
unsigned char * Blob
Definition: BaseTRTPIDCalculator.h:25
InDet::BaseTRTPIDCalculator::UpperLimit
float & UpperLimit
Definition: BaseTRTPIDCalculator.h:27
covarianceTool.prob
prob
Definition: covarianceTool.py:678
InDet::BaseTRTPIDCalculator::OFF_LowerLim
static const int OFF_LowerLim
Definition: BaseTRTPIDCalculator.h:45
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
InDet::BaseTRTPIDCalculator::OFF_UpperLim
static const int OFF_UpperLim
Definition: BaseTRTPIDCalculator.h:44
InDet::BaseTRTPIDCalculator::HasBeenInitialized
bool HasBeenInitialized
Definition: BaseTRTPIDCalculator.h:30
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
InDet::BaseTRTPIDCalculator::CurrentVersion
int CurrentVersion
Definition: BaseTRTPIDCalculator.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
InDet::BaseTRTPIDCalculator::my_name
const char * my_name
Definition: BaseTRTPIDCalculator.h:23
copySelective.source
string source
Definition: copySelective.py:32
InDet::BaseTRTPIDCalculator::LowerLimit
float & LowerLimit
Definition: BaseTRTPIDCalculator.h:28
InDet::BaseTRTPIDCalculator::setDefaultCalibrationConstants
virtual void setDefaultCalibrationConstants()=0