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 Member Functions | Private Attributes
L1GtCaloCondition Class Reference

#include <L1GtCaloCondition.h>

Inheritance diagram for L1GtCaloCondition:
L1GtConditionEvaluation

Public Member Functions

const bool evaluateCondition () const
 the core function to check if the condition matches More...
 
const L1GtCaloTemplategtCaloTemplate () const
 get / set the pointer to a L1GtCondition More...
 
const int gtCorrParDeltaPhiNrBins () const
 get / set maximum number of bins for the delta phi scales More...
 
const int gtIfCaloEtaNumberBits () const
 get / set the number of bits for eta of calorimeter objects More...
 
const L1GlobalTriggerPSBgtPSB () const
 get / set the pointer to PSB More...
 
 L1GtCaloCondition ()
 
 L1GtCaloCondition (const L1GtCondition *, const L1GlobalTriggerPSB *, const int nrL1NoIsoEG, const int nrL1IsoEG, const int nrL1CenJet, const int nrL1ForJet, const int nrL1TauJet, const int ifCaloEtaNumberBits)
 from base template condition (from event setup usually) More...
 
 L1GtCaloCondition (const L1GtCaloCondition &)
 
L1GtCaloConditionoperator= (const L1GtCaloCondition &)
 
void print (std::ostream &myCout) const
 print condition More...
 
void setGtCaloTemplate (const L1GtCaloTemplate *)
 
void setGtCorrParDeltaPhiNrBins (const int &)
 
void setGtIfCaloEtaNumberBits (const int &)
 
void setGtPSB (const L1GlobalTriggerPSB *)
 set the pointer to PSB More...
 
virtual ~L1GtCaloCondition ()
 
- Public Member Functions inherited from L1GtConditionEvaluation
bool condLastResult () const
 get the latest result for the condition More...
 
int condMaxNumberObjects () const
 
void evaluateConditionStoreResult ()
 call evaluateCondition and save last result More...
 
CombinationsInCond const & getCombinationsInCond () const
 get all the object combinations evaluated to true in the condition More...
 
virtual std::string getNumericExpression () const
 get numeric expression More...
 
 L1GtConditionEvaluation ()
 constructor More...
 
void setCondMaxNumberObjects (int condMaxNumberObjectsValue)
 
void setVerbosity (const int verbosity)
 
virtual ~L1GtConditionEvaluation ()
 destructor More...
 

Private Member Functions

const bool checkObjectParameter (const int iCondition, const L1GctCand &cand) const
 function to check a single object if it matches a condition More...
 
void copy (const L1GtCaloCondition &cp)
 copy function for copy constructor and operator= More...
 
const L1GctCandgetCandidate (const int indexCand) const
 load calo candidates More...
 

Private Attributes

unsigned int m_corrParDeltaPhiNrBins
 
const L1GtCaloTemplatem_gtCaloTemplate
 pointer to a L1GtCaloTemplate More...
 
const L1GlobalTriggerPSBm_gtPSB
 pointer to PSB, to be able to get the trigger objects More...
 
int m_ifCaloEtaNumberBits
 number of bits for eta of calorimeter objects More...
 

Additional Inherited Members

- Protected Member Functions inherited from L1GtConditionEvaluation
template<class Type1 >
const bool checkBit (const Type1 &mask, const unsigned int bitNumber) const
 check if a bit with a given number is set in a mask More...
 
template<class Type1 , class Type2 >
const bool checkThreshold (const Type1 &threshold, const Type2 &value, const bool condGEqValue) const
 
CombinationsInCondcombinationsInCond () const
 get all the object combinations (to fill it...) More...
 
- Protected Attributes inherited from L1GtConditionEvaluation
CombinationsInCond m_combinationsInCond
 store all the object combinations evaluated to true in the condition More...
 
bool m_condLastResult
 the last result of evaluateCondition() More...
 
int m_condMaxNumberObjects
 
int m_verbosity
 verbosity level More...
 

Detailed Description

Description: evaluation of a CondCalo condition.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 35 of file L1GtCaloCondition.h.

Constructor & Destructor Documentation

L1GtCaloCondition::L1GtCaloCondition ( )

constructors default

Definition at line 48 of file L1GtCaloCondition.cc.

L1GtCaloCondition::L1GtCaloCondition ( const L1GtCondition caloTemplate,
const L1GlobalTriggerPSB ptrPSB,
const int  nrL1NoIsoEG,
const int  nrL1IsoEG,
const int  nrL1CenJet,
const int  nrL1ForJet,
const int  nrL1TauJet,
const int  ifCaloEtaNumberBits 
)

from base template condition (from event setup usually)

Definition at line 57 of file L1GtCaloCondition.cc.

L1GtCaloCondition::L1GtCaloCondition ( const L1GtCaloCondition cp)

Definition at line 117 of file L1GtCaloCondition.cc.

L1GtCaloCondition::~L1GtCaloCondition ( )
virtual

Definition at line 125 of file L1GtCaloCondition.cc.

Member Function Documentation

const bool L1GtCaloCondition::checkObjectParameter ( const int  iCondition,
const L1GctCand cand 
) const
private

function to check a single object if it matches a condition

checkObjectParameter - Compare a single particle with a numbered condition.

Parameters
iConditionThe number of the condition.
candThe candidate to compare.
Returns
The result of the comparison (false if a condition does not exist).

Definition at line 423 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::copy ( const L1GtCaloCondition cp)
private

copy function for copy constructor and operator=

Definition at line 101 of file L1GtCaloCondition.cc.

const bool L1GtCaloCondition::evaluateCondition ( ) const
virtual

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 167 of file L1GtCaloCondition.cc.

const L1GctCand * L1GtCaloCondition::getCandidate ( const int  indexCand) const
private

load calo candidates

Definition at line 385 of file L1GtCaloCondition.cc.

const L1GtCaloTemplate* L1GtCaloCondition::gtCaloTemplate ( ) const
inline

get / set the pointer to a L1GtCondition

Definition at line 73 of file L1GtCaloCondition.h.

References m_gtCaloTemplate.

73  {
74  return m_gtCaloTemplate;
75  }
const L1GtCaloTemplate * m_gtCaloTemplate
pointer to a L1GtCaloTemplate
const int L1GtCaloCondition::gtCorrParDeltaPhiNrBins ( ) const
inline

get / set maximum number of bins for the delta phi scales

Definition at line 95 of file L1GtCaloCondition.h.

References m_corrParDeltaPhiNrBins.

95  {
97  }
unsigned int m_corrParDeltaPhiNrBins
const int L1GtCaloCondition::gtIfCaloEtaNumberBits ( ) const
inline

get / set the number of bits for eta of calorimeter objects

Definition at line 88 of file L1GtCaloCondition.h.

References m_ifCaloEtaNumberBits.

88  {
89  return m_ifCaloEtaNumberBits;
90  }
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
const L1GlobalTriggerPSB* L1GtCaloCondition::gtPSB ( ) const
inline

get / set the pointer to PSB

Definition at line 80 of file L1GtCaloCondition.h.

References m_gtPSB.

80  {
81  return m_gtPSB;
82  }
const L1GlobalTriggerPSB * m_gtPSB
pointer to PSB, to be able to get the trigger objects
L1GtCaloCondition & L1GtCaloCondition::operator= ( const L1GtCaloCondition cp)

Definition at line 132 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::print ( std::ostream &  myCout) const
virtual

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 463 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::setGtCaloTemplate ( const L1GtCaloTemplate caloTempl)

Definition at line 138 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::setGtCorrParDeltaPhiNrBins ( const int &  corrParDeltaPhiNrBins)

Definition at line 159 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::setGtIfCaloEtaNumberBits ( const int &  ifCaloEtaNumberBitsValue)

Definition at line 152 of file L1GtCaloCondition.cc.

void L1GtCaloCondition::setGtPSB ( const L1GlobalTriggerPSB ptrPSB)

set the pointer to PSB

Definition at line 145 of file L1GtCaloCondition.cc.

Member Data Documentation

unsigned int L1GtCaloCondition::m_corrParDeltaPhiNrBins
private

Definition at line 125 of file L1GtCaloCondition.h.

Referenced by gtCorrParDeltaPhiNrBins().

const L1GtCaloTemplate* L1GtCaloCondition::m_gtCaloTemplate
private

pointer to a L1GtCaloTemplate

Definition at line 116 of file L1GtCaloCondition.h.

Referenced by gtCaloTemplate().

const L1GlobalTriggerPSB* L1GtCaloCondition::m_gtPSB
private

pointer to PSB, to be able to get the trigger objects

Definition at line 119 of file L1GtCaloCondition.h.

Referenced by gtPSB().

int L1GtCaloCondition::m_ifCaloEtaNumberBits
private

number of bits for eta of calorimeter objects

Definition at line 122 of file L1GtCaloCondition.h.

Referenced by gtIfCaloEtaNumberBits().