CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTTPGCompareUnit Class Reference

Public Member Functions

int deltaBX () const
 
 DTTPGCompareUnit ()
 
bool hasBoth () const
 
bool hasOne () const
 
bool hasSameQual () const
 
int qualDDU () const
 
int qualTM () const
 
void setDDU (int qual, int bx)
 
void setTM (int qual, int bx)
 
 ~DTTPGCompareUnit ()
 

Private Attributes

int theBX [2]
 
int theQual [2]
 

Detailed Description

Definition at line 37 of file DTLocalTriggerBaseTask.cc.

Constructor & Destructor Documentation

DTTPGCompareUnit::DTTPGCompareUnit ( )
inline

Definition at line 41 of file DTLocalTriggerBaseTask.cc.

41 { theQual[0]=-1 ; theQual[1]=-1; }
DTTPGCompareUnit::~DTTPGCompareUnit ( )
inline

Definition at line 42 of file DTLocalTriggerBaseTask.cc.

42 { };

Member Function Documentation

int DTTPGCompareUnit::deltaBX ( ) const
inline

Definition at line 50 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

50 { return theBX[0] - theBX[1]; }
bool DTTPGCompareUnit::hasBoth ( ) const
inline

Definition at line 48 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

48 { return theQual[0]!=-1 && theQual[1]!=-1; };
bool DTTPGCompareUnit::hasOne ( ) const
inline

Definition at line 47 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

47 { return theQual[0]!=-1 || theQual[1]!=-1; };
bool DTTPGCompareUnit::hasSameQual ( ) const
inline

Definition at line 49 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

49 { return hasBoth() && theQual[0]==theQual[1]; };
int DTTPGCompareUnit::qualDDU ( ) const
inline

Definition at line 51 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

51 { return theQual[0]; }
int DTTPGCompareUnit::qualTM ( ) const
inline

Definition at line 52 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsTMAnalysis().

52 { return theQual[1]; }
void DTTPGCompareUnit::setDDU ( int  qual,
int  bx 
)
inline

Definition at line 44 of file DTLocalTriggerBaseTask.cc.

44 { theQual[0] = qual; theBX[0] = bx; }
void DTTPGCompareUnit::setTM ( int  qual,
int  bx 
)
inline

Definition at line 45 of file DTLocalTriggerBaseTask.cc.

45 { theQual[1] = qual; theBX[1] = bx; }

Member Data Documentation

int DTTPGCompareUnit::theBX[2]
private

Definition at line 57 of file DTLocalTriggerBaseTask.cc.

int DTTPGCompareUnit::theQual[2]
private

Definition at line 56 of file DTLocalTriggerBaseTask.cc.