CMS 3D CMS Logo

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 override
 the core function to check if the condition matches More...
 
const L1GtBptxTemplategtBptxTemplate () const
 get / set the pointer to a L1GtCondition More...
 
 L1GtBptxCondition ()
 
 L1GtBptxCondition (const L1GtBptxCondition &)
 
 L1GtBptxCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually) More...
 
L1GtBptxConditionoperator= (const L1GtBptxCondition &)
 
void print (std::ostream &myCout) const override
 print condition More...
 
void setConditionResult (const bool result)
 
void setGtBptxTemplate (const L1GtBptxTemplate *)
 
 ~L1GtBptxCondition () override
 
- 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...
 
const CombinationsInCondgetCombinationsInCond () 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 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
 
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 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

Definition at line 32 of file L1GtBptxCondition.h.

Constructor & Destructor Documentation

◆ L1GtBptxCondition() [1/3]

L1GtBptxCondition::L1GtBptxCondition ( )

constructors default

Definition at line 29 of file L1GtBptxCondition.cc.

References m_conditionResult.

◆ L1GtBptxCondition() [2/3]

L1GtBptxCondition::L1GtBptxCondition ( const L1GtCondition bptxTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 32 of file L1GtBptxCondition.cc.

34  m_gtBptxTemplate(static_cast<const L1GtBptxTemplate *>(bptxTemplate)),
36  // maximum number of objects received for the evaluation of the condition
37  // no object
39 }

References L1GtConditionEvaluation::m_condMaxNumberObjects.

◆ L1GtBptxCondition() [3/3]

L1GtBptxCondition::L1GtBptxCondition ( const L1GtBptxCondition cp)

Definition at line 53 of file L1GtBptxCondition.cc.

References copy(), and CommonMethods::cp().

◆ ~L1GtBptxCondition()

L1GtBptxCondition::~L1GtBptxCondition ( )
override

Definition at line 56 of file L1GtBptxCondition.cc.

56  {
57  // empty
58 }

Member Function Documentation

◆ conditionResult()

const bool L1GtBptxCondition::conditionResult ( ) const
inline

get / set the result

Definition at line 64 of file L1GtBptxCondition.h.

64 { return m_conditionResult; }

References m_conditionResult.

◆ copy()

void L1GtBptxCondition::copy ( const L1GtBptxCondition cp)
private

copy function for copy constructor and operator=

Definition at line 42 of file L1GtBptxCondition.cc.

42  {
43  m_gtBptxTemplate = cp.gtBptxTemplate();
44  m_conditionResult = cp.conditionResult();
45 
46  m_condMaxNumberObjects = cp.condMaxNumberObjects();
47  m_condLastResult = cp.condLastResult();
48  m_combinationsInCond = cp.getCombinationsInCond();
49 
50  m_verbosity = cp.m_verbosity;
51 }

References CommonMethods::cp(), L1GtConditionEvaluation::m_combinationsInCond, m_conditionResult, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, m_gtBptxTemplate, and L1GtConditionEvaluation::m_verbosity.

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

◆ evaluateCondition()

const bool L1GtBptxCondition::evaluateCondition ( ) const
overridevirtual

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 69 of file L1GtBptxCondition.cc.

69  {
70  // clear the m_combinationsInCond vector
72 
73  //
74  return m_conditionResult;
75 }

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

◆ gtBptxTemplate()

const L1GtBptxTemplate* L1GtBptxCondition::gtBptxTemplate ( ) const
inline

get / set the pointer to a L1GtCondition

Definition at line 59 of file L1GtBptxCondition.h.

59 { return m_gtBptxTemplate; }

References m_gtBptxTemplate.

◆ operator=()

L1GtBptxCondition & L1GtBptxCondition::operator= ( const L1GtBptxCondition cp)

Definition at line 61 of file L1GtBptxCondition.cc.

61  {
62  copy(cp);
63  return *this;
64 }

References copy(), and CommonMethods::cp().

◆ print()

void L1GtBptxCondition::print ( std::ostream &  myCout) const
overridevirtual

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 77 of file L1GtBptxCondition.cc.

77  {
78  m_gtBptxTemplate->print(myCout);
80 }

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

Referenced by L1GlobalTriggerGTL::run().

◆ setConditionResult()

void L1GtBptxCondition::setConditionResult ( const bool  result)
inline

Definition at line 66 of file L1GtBptxCondition.h.

References m_conditionResult, and mps_fire::result.

◆ setGtBptxTemplate()

void L1GtBptxCondition::setGtBptxTemplate ( const L1GtBptxTemplate bptxTemplate)

Definition at line 67 of file L1GtBptxCondition.cc.

67 { m_gtBptxTemplate = bptxTemplate; }

References m_gtBptxTemplate.

Member Data Documentation

◆ m_conditionResult

bool L1GtBptxCondition::m_conditionResult
private

condition result

Definition at line 77 of file L1GtBptxCondition.h.

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

◆ m_gtBptxTemplate

const L1GtBptxTemplate* L1GtBptxCondition::m_gtBptxTemplate
private

pointer to a L1GtBptxTemplate

Definition at line 74 of file L1GtBptxCondition.h.

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

L1GtConditionEvaluation::m_verbosity
int m_verbosity
verbosity level
Definition: L1GtConditionEvaluation.h:105
L1GtConditionEvaluation::combinationsInCond
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
Definition: L1GtConditionEvaluation.h:82
L1GtBptxCondition::copy
void copy(const L1GtBptxCondition &cp)
copy function for copy constructor and operator=
Definition: L1GtBptxCondition.cc:42
L1GtConditionEvaluation::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtConditionEvaluation.cc:34
L1GtBptxCondition::m_conditionResult
bool m_conditionResult
condition result
Definition: L1GtBptxCondition.h:77
L1GtConditionEvaluation::m_combinationsInCond
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
Definition: L1GtConditionEvaluation.h:102
L1GtBptxTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtBptxTemplate.cc:77
L1GtConditionEvaluation::m_condLastResult
bool m_condLastResult
the last result of evaluateCondition()
Definition: L1GtConditionEvaluation.h:99
L1GtConditionEvaluation::L1GtConditionEvaluation
L1GtConditionEvaluation()
constructor
Definition: L1GtConditionEvaluation.h:40
clear
void clear(HadCaloObj &c)
Definition: data.h:124
L1GtConditionEvaluation::m_condMaxNumberObjects
int m_condMaxNumberObjects
Definition: L1GtConditionEvaluation.h:96
L1GtBptxCondition::m_gtBptxTemplate
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
Definition: L1GtBptxCondition.h:74
mps_fire.result
result
Definition: mps_fire.py:303
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192