test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 qualDCC () const
 
int qualDDU () const
 
void setDCC (int qual, int bx)
 
void setDDU (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::runDDUvsDCCAnalysis().

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

Definition at line 48 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsDCCAnalysis().

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

Definition at line 47 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsDCCAnalysis().

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

Definition at line 49 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsDCCAnalysis().

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

Definition at line 52 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsDCCAnalysis().

52 { return theQual[1]; }
int DTTPGCompareUnit::qualDDU ( ) const
inline

Definition at line 51 of file DTLocalTriggerBaseTask.cc.

Referenced by DTLocalTriggerBaseTask::runDDUvsDCCAnalysis().

51 { return theQual[0]; }
void DTTPGCompareUnit::setDCC ( int  qual,
int  bx 
)
inline

Definition at line 45 of file DTLocalTriggerBaseTask.cc.

45 { theQual[1] = qual; theBX[1] = bx; }
void DTTPGCompareUnit::setDDU ( int  qual,
int  bx 
)
inline

Definition at line 44 of file DTLocalTriggerBaseTask.cc.

44 { theQual[0] = qual; theBX[0] = 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.