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

#include <L1GtCastorCondition.h>

Inheritance diagram for L1GtCastorCondition:
L1GtConditionEvaluation

Public Member Functions

const bool conditionResult () const
 get / set the result More...
 
const bool evaluateCondition () const
 the core function to check if the condition matches More...
 
const L1GtCastorTemplategtCastorTemplate () const
 get / set the pointer to a L1GtCondition More...
 
 L1GtCastorCondition ()
 
 L1GtCastorCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually) More...
 
 L1GtCastorCondition (const L1GtCastorCondition &)
 
L1GtCastorConditionoperator= (const L1GtCastorCondition &)
 
void print (std::ostream &myCout) const
 print condition More...
 
void setConditionResult (const bool result)
 
void setGtCastorTemplate (const L1GtCastorTemplate *)
 
virtual ~L1GtCastorCondition ()
 
- 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

void copy (const L1GtCastorCondition &cp)
 copy function for copy constructor and operator= More...
 

Private Attributes

bool m_conditionResult
 condition result More...
 
const L1GtCastorTemplatem_gtCastorTemplate
 pointer to a L1GtCastorTemplate 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 CondCastor condition.

Implementation: Simply put the result read from CASTOR L1 record in the L1GtConditionEvaluation base class, to be similar with other conditions.

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 32 of file L1GtCastorCondition.h.

Constructor & Destructor Documentation

L1GtCastorCondition::L1GtCastorCondition ( )

constructors default

Definition at line 29 of file L1GtCastorCondition.cc.

References m_conditionResult.

29  :
31 
32  m_conditionResult = false;
33 
34 }
bool m_conditionResult
condition result
L1GtCastorCondition::L1GtCastorCondition ( const L1GtCondition castorTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 37 of file L1GtCastorCondition.cc.

References L1GtConditionEvaluation::m_condMaxNumberObjects.

38  :
40  m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)),
42 
43  // maximum number of objects received for the evaluation of the condition
44  // no object
46 
47 }
bool m_conditionResult
condition result
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
tuple result
Definition: mps_fire.py:84
L1GtCastorCondition::L1GtCastorCondition ( const L1GtCastorCondition cp)

Definition at line 63 of file L1GtCastorCondition.cc.

References copy().

63  :
65 
66  copy(cp);
67 
68 }
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
L1GtCastorCondition::~L1GtCastorCondition ( )
virtual

Definition at line 71 of file L1GtCastorCondition.cc.

71  {
72 
73  // empty
74 
75 }

Member Function Documentation

const bool L1GtCastorCondition::conditionResult ( ) const
inline

get / set the result

Definition at line 71 of file L1GtCastorCondition.h.

References m_conditionResult.

Referenced by copy().

71  {
72  return m_conditionResult;
73  }
bool m_conditionResult
condition result
void L1GtCastorCondition::copy ( const L1GtCastorCondition cp)
private

copy function for copy constructor and operator=

Definition at line 50 of file L1GtCastorCondition.cc.

References conditionResult(), L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtCastorTemplate(), L1GtConditionEvaluation::m_combinationsInCond, m_conditionResult, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_gtCastorTemplate, and L1GtConditionEvaluation::m_verbosity.

Referenced by L1GtCastorCondition(), and operator=().

50  {
51 
54 
58 
60 
61 }
bool m_conditionResult
condition result
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
bool m_condLastResult
the last result of evaluateCondition()
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
const L1GtCastorTemplate * gtCastorTemplate() const
get / set the pointer to a L1GtCondition
const bool conditionResult() const
get / set the result
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool condLastResult() const
get the latest result for the condition
const bool L1GtCastorCondition::evaluateCondition ( ) const
virtual

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 92 of file L1GtCastorCondition.cc.

References hitfit::clear(), L1GtConditionEvaluation::combinationsInCond(), and m_conditionResult.

92  {
93 
94  // clear the m_combinationsInCond vector
96 
97  //
98  return m_conditionResult;
99 
100 }
bool m_conditionResult
condition result
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
const L1GtCastorTemplate* L1GtCastorCondition::gtCastorTemplate ( ) const
inline

get / set the pointer to a L1GtCondition

Definition at line 64 of file L1GtCastorCondition.h.

References m_gtCastorTemplate.

Referenced by copy().

64  {
65  return m_gtCastorTemplate;
66  }
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
L1GtCastorCondition & L1GtCastorCondition::operator= ( const L1GtCastorCondition cp)

Definition at line 78 of file L1GtCastorCondition.cc.

References copy().

79 {
80  copy(cp);
81  return *this;
82 }
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
void L1GtCastorCondition::print ( std::ostream &  myCout) const
virtual

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 102 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate, L1GtCastorTemplate::print(), and L1GtConditionEvaluation::print().

Referenced by L1GlobalTriggerGTL::run().

102  {
103 
104  m_gtCastorTemplate->print(myCout);
106 
107 }
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
virtual void print(std::ostream &myCout) const
print the condition
virtual void print(std::ostream &myCout) const
print condition
void L1GtCastorCondition::setConditionResult ( const bool  result)
inline

Definition at line 75 of file L1GtCastorCondition.h.

References m_conditionResult, and mps_fire::result.

75  {
77  }
bool m_conditionResult
condition result
tuple result
Definition: mps_fire.py:84
void L1GtCastorCondition::setGtCastorTemplate ( const L1GtCastorTemplate castorTemplate)

Definition at line 85 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate.

86  {
87 
88  m_gtCastorTemplate = castorTemplate;
89 
90 }
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate

Member Data Documentation

bool L1GtCastorCondition::m_conditionResult
private

condition result

Definition at line 90 of file L1GtCastorCondition.h.

Referenced by conditionResult(), copy(), evaluateCondition(), L1GtCastorCondition(), and setConditionResult().

const L1GtCastorTemplate* L1GtCastorCondition::m_gtCastorTemplate
private

pointer to a L1GtCastorTemplate

Definition at line 87 of file L1GtCastorCondition.h.

Referenced by copy(), gtCastorTemplate(), print(), and setGtCastorTemplate().