CMS 3D CMS Logo

L1GtMuonCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GtMuonCondition_h
2 #define GlobalTrigger_L1GtMuonCondition_h
3 
18 // system include files
19 #include <iosfwd>
20 #include <string>
21 
22 // user include files
23 // base classes
25 
26 // forward declarations
27 class L1GtCondition;
28 class L1GtMuonTemplate;
29 
30 class L1MuGMTCand;
31 
32 class L1GlobalTriggerGTL;
33 
34 // class declaration
36 public:
40 
42  L1GtMuonCondition(const L1GtCondition *, const L1GlobalTriggerGTL *, const int nrL1Mu, const int ifMuEtaNumberBits);
43 
44  // copy constructor
46 
47  // destructor
48  ~L1GtMuonCondition() override;
49 
50  // assign operator
52 
53 public:
55  const bool evaluateCondition() const override;
56 
58  void print(std::ostream &myCout) const override;
59 
60 public:
62  inline const L1GtMuonTemplate *gtMuonTemplate() const { return m_gtMuonTemplate; }
63 
64  void setGtMuonTemplate(const L1GtMuonTemplate *);
65 
67  inline const L1GlobalTriggerGTL *gtGTL() const { return m_gtGTL; }
68 
69  void setGtGTL(const L1GlobalTriggerGTL *);
70 
72  inline const int gtIfMuEtaNumberBits() const { return m_ifMuEtaNumberBits; }
73 
74  void setGtIfMuEtaNumberBits(const int &);
75 
77  inline const int gtCorrParDeltaPhiNrBins() const { return m_corrParDeltaPhiNrBins; }
78 
79  void setGtCorrParDeltaPhiNrBins(const int &);
80 
81 private:
83  void copy(const L1GtMuonCondition &cp);
84 
86  const L1MuGMTCand *getCandidate(const int indexCand) const;
87 
89  const bool checkObjectParameter(const int iCondition, const L1MuGMTCand &cand) const;
90 
91 private:
94 
97 
100 
101  // maximum number of bins for the delta phi scales
103 };
104 
105 #endif
L1GtConditionEvaluation
Definition: L1GtConditionEvaluation.h:37
L1GtMuonCondition
Definition: L1GtMuonCondition.h:35
L1GtCondition
Definition: L1GtCondition.h:35
L1GtMuonCondition::m_gtMuonTemplate
const L1GtMuonTemplate * m_gtMuonTemplate
pointer to a L1GtMuonTemplate
Definition: L1GtMuonCondition.h:93
L1GtMuonCondition::checkObjectParameter
const bool checkObjectParameter(const int iCondition, const L1MuGMTCand &cand) const
function to check a single object if it matches a condition
Definition: L1GtMuonCondition.cc:362
L1GtMuonCondition::copy
void copy(const L1GtMuonCondition &cp)
copy function for copy constructor and operator=
Definition: L1GtMuonCondition.cc:61
L1GtMuonCondition::operator=
L1GtMuonCondition & operator=(const L1GtMuonCondition &)
Definition: L1GtMuonCondition.cc:83
L1MuGMTCand
Definition: L1MuGMTCand.h:39
L1GtMuonCondition::gtMuonTemplate
const L1GtMuonTemplate * gtMuonTemplate() const
get / set the pointer to a L1GtCondition
Definition: L1GtMuonCondition.h:62
L1GtMuonCondition::~L1GtMuonCondition
~L1GtMuonCondition() override
Definition: L1GtMuonCondition.cc:78
L1GtMuonCondition::setGtGTL
void setGtGTL(const L1GlobalTriggerGTL *)
set the pointer to GTL
Definition: L1GtMuonCondition.cc:92
L1GtMuonCondition::m_corrParDeltaPhiNrBins
unsigned int m_corrParDeltaPhiNrBins
Definition: L1GtMuonCondition.h:102
L1GtMuonCondition::evaluateCondition
const bool evaluateCondition() const override
the core function to check if the condition matches
Definition: L1GtMuonCondition.cc:105
L1GtMuonCondition::m_ifMuEtaNumberBits
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: L1GtMuonCondition.h:99
L1GtMuonCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtMuonCondition.cc:476
L1GtMuonCondition::gtIfMuEtaNumberBits
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
Definition: L1GtMuonCondition.h:72
L1GtMuonCondition::setGtIfMuEtaNumberBits
void setGtIfMuEtaNumberBits(const int &)
Definition: L1GtMuonCondition.cc:95
L1GtConditionEvaluation.h
L1GtMuonCondition::gtCorrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: L1GtMuonCondition.h:77
L1GtMuonCondition::gtGTL
const L1GlobalTriggerGTL * gtGTL() const
get / set the pointer to GTL
Definition: L1GtMuonCondition.h:67
L1GtMuonCondition::m_gtGTL
const L1GlobalTriggerGTL * m_gtGTL
pointer to GTL, to be able to get the trigger objects
Definition: L1GtMuonCondition.h:96
L1GlobalTriggerGTL
Definition: L1GlobalTriggerGTL.h:45
cand
Definition: decayParser.h:34
L1GtMuonCondition::getCandidate
const L1MuGMTCand * getCandidate(const int indexCand) const
load muon candidates
Definition: L1GtMuonCondition.cc:349
L1GtMuonCondition::setGtMuonTemplate
void setGtMuonTemplate(const L1GtMuonTemplate *)
Definition: L1GtMuonCondition.cc:89
L1GtMuonCondition::L1GtMuonCondition
L1GtMuonCondition()
Definition: L1GtMuonCondition.cc:43
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
L1GtMuonCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: L1GtMuonCondition.cc:100
L1GtMuonTemplate
Definition: L1GtMuonTemplate.h:34