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
L1GtBptxCondition Class Reference

#include <L1GtBptxCondition.h>

Inheritance diagram for L1GtBptxCondition:
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 L1GtBptxTemplategtBptxTemplate () const
 get / set the pointer to a L1GtCondition More...
 
 L1GtBptxCondition ()
 
 L1GtBptxCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually) More...
 
 L1GtBptxCondition (const L1GtBptxCondition &)
 
L1GtBptxConditionoperator= (const L1GtBptxCondition &)
 
void print (std::ostream &myCout) const
 print condition More...
 
void setConditionResult (const bool result)
 
void setGtBptxTemplate (const L1GtBptxTemplate *)
 
virtual ~L1GtBptxCondition ()
 
- 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...
 
CombinationsInCondgetCombinationsInCond () const
 get all the object combinations evaluated to true in the condition More...
 
virtual std::string getNumericExpression ()
 get numeric expression More...
 
 L1GtConditionEvaluation ()
 constructor More...
 
 L1GtConditionEvaluation (L1GtConditionEvaluation &)
 copy constructor More...
 
void setCondMaxNumberObjects (int condMaxNumberObjectsValue)
 
void setVerbosity (const int verbosity)
 
virtual ~L1GtConditionEvaluation ()
 destructor More...
 

Private Member Functions

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

Private Attributes

bool m_conditionResult
 condition result More...
 
const L1GtBptxTemplatem_gtBptxTemplate
 pointer to a L1GtBptxTemplate 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
 
- Protected Attributes inherited from L1GtConditionEvaluation
CombinationsInCondm_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 CondBptx condition.

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

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 34 of file L1GtBptxCondition.h.

Constructor & Destructor Documentation

L1GtBptxCondition::L1GtBptxCondition ( )

constructors default

Definition at line 31 of file L1GtBptxCondition.cc.

References m_conditionResult.

31  :
33 
34  m_conditionResult = false;
35 
36 }
bool m_conditionResult
condition result
L1GtBptxCondition::L1GtBptxCondition ( const L1GtCondition bptxTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 39 of file L1GtBptxCondition.cc.

References L1GtConditionEvaluation::m_condMaxNumberObjects.

40  :
42  m_gtBptxTemplate(static_cast<const L1GtBptxTemplate*>(bptxTemplate)),
44 
45  // maximum number of objects received for the evaluation of the condition
46  // no object
48 
49 }
bool m_conditionResult
condition result
tuple result
Definition: query.py:137
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
L1GtBptxCondition::L1GtBptxCondition ( const L1GtBptxCondition cp)

Definition at line 65 of file L1GtBptxCondition.cc.

References copy().

65  :
67 
68  copy(cp);
69 
70 }
void copy(const L1GtBptxCondition &cp)
copy function for copy constructor and operator=
L1GtBptxCondition::~L1GtBptxCondition ( )
virtual

Definition at line 73 of file L1GtBptxCondition.cc.

73  {
74 
75  // empty
76 
77 }

Member Function Documentation

const bool L1GtBptxCondition::conditionResult ( ) const
inline

get / set the result

Definition at line 73 of file L1GtBptxCondition.h.

References m_conditionResult.

Referenced by copy().

73  {
74  return m_conditionResult;
75  }
bool m_conditionResult
condition result
void L1GtBptxCondition::copy ( const L1GtBptxCondition cp)
private

copy function for copy constructor and operator=

Definition at line 52 of file L1GtBptxCondition.cc.

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

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

52  {
53 
56 
60 
62 
63 }
CombinationsInCond * m_combinationsInCond
store all the object combinations evaluated to true in the condition
const bool conditionResult() const
get / set the result
CombinationsInCond * getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool m_condLastResult
the last result of evaluateCondition()
bool m_conditionResult
condition result
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
const L1GtBptxTemplate * gtBptxTemplate() const
get / set the pointer to a L1GtCondition
bool condLastResult() const
get the latest result for the condition
const bool L1GtBptxCondition::evaluateCondition ( ) const
virtual

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 94 of file L1GtBptxCondition.cc.

References m_conditionResult.

94  {
95 
96  // clear the m_combinationsInCond vector
97  (*m_combinationsInCond).clear();
98 
99  //
100  return m_conditionResult;
101 
102 }
bool m_conditionResult
condition result
const L1GtBptxTemplate* L1GtBptxCondition::gtBptxTemplate ( ) const
inline

get / set the pointer to a L1GtCondition

Definition at line 66 of file L1GtBptxCondition.h.

References m_gtBptxTemplate.

Referenced by copy().

66  {
67  return m_gtBptxTemplate;
68  }
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
L1GtBptxCondition & L1GtBptxCondition::operator= ( const L1GtBptxCondition cp)

Definition at line 80 of file L1GtBptxCondition.cc.

References copy().

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

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 104 of file L1GtBptxCondition.cc.

References m_gtBptxTemplate, L1GtBptxTemplate::print(), and L1GtConditionEvaluation::print().

Referenced by L1GlobalTriggerGTL::run().

104  {
105 
106  m_gtBptxTemplate->print(myCout);
108 
109 }
virtual void print(std::ostream &myCout) const
print the condition
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
virtual void print(std::ostream &myCout) const
print condition
void L1GtBptxCondition::setConditionResult ( const bool  result)
inline

Definition at line 77 of file L1GtBptxCondition.h.

References m_conditionResult, and query::result.

77  {
79  }
bool m_conditionResult
condition result
tuple result
Definition: query.py:137
void L1GtBptxCondition::setGtBptxTemplate ( const L1GtBptxTemplate bptxTemplate)

Definition at line 87 of file L1GtBptxCondition.cc.

References m_gtBptxTemplate.

88  {
89 
90  m_gtBptxTemplate = bptxTemplate;
91 
92 }
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate

Member Data Documentation

bool L1GtBptxCondition::m_conditionResult
private

condition result

Definition at line 92 of file L1GtBptxCondition.h.

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

const L1GtBptxTemplate* L1GtBptxCondition::m_gtBptxTemplate
private

pointer to a L1GtBptxTemplate

Definition at line 89 of file L1GtBptxCondition.h.

Referenced by copy(), gtBptxTemplate(), print(), and setGtBptxTemplate().