CMS 3D CMS Logo

MuCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_MuCondition_h
2 #define L1Trigger_L1TGlobal_MuCondition_h
3 
16 // system include files
17 #include <iosfwd>
18 #include <string>
19 
20 // user include files
21 // base classes
23 
25 
26 // forward declarations
27 class GlobalCondition;
28 class MuonTemplate;
29 
30 namespace l1t {
31 
32  class L1MuGMTCand;
33 
34  class GlobalBoard;
35 
36  // class declaration
38  public:
41  MuCondition();
42 
44  MuCondition(const GlobalCondition*, const GlobalBoard*, const int nrL1Mu, const int ifMuEtaNumberBits);
45 
46  // copy constructor
47  MuCondition(const MuCondition&);
48 
49  // destructor
50  ~MuCondition() override;
51 
52  // assign operator
54 
55  public:
57  const bool evaluateCondition(const int bxEval) const override;
58 
60  void print(std::ostream& myCout) const override;
61 
62  public:
64  inline const MuonTemplate* gtMuonTemplate() const { return m_gtMuonTemplate; }
65 
66  void setGtMuonTemplate(const MuonTemplate*);
67 
69  inline const GlobalBoard* gtGTL() const { return m_gtGTL; }
70 
71  void setGtGTL(const GlobalBoard*);
72 
74  inline const int gtIfMuEtaNumberBits() const { return m_ifMuEtaNumberBits; }
75 
76  void setGtIfMuEtaNumberBits(const int&);
77 
79  inline const int gtCorrParDeltaPhiNrBins() const { return m_corrParDeltaPhiNrBins; }
80 
81  void setGtCorrParDeltaPhiNrBins(const int&);
82 
83  private:
85  void copy(const MuCondition& cp);
86 
88  const l1t::Muon* getCandidate(const int bx, const int indexCand) const;
89 
91  const bool checkObjectParameter(const int iCondition, const l1t::Muon& cand, const unsigned int index) const;
92 
93  private:
96 
99 
102 
103  // maximum number of bins for the delta phi scales
105  };
106 
107 } // namespace l1t
108 #endif
l1t::GlobalBoard
Definition: GlobalBoard.h:52
l1t::MuCondition::gtCorrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: MuCondition.h:79
l1t::MuCondition::copy
void copy(const MuCondition &cp)
copy function for copy constructor and operator=
Definition: MuCondition.cc:59
l1t::MuCondition::m_gtGTL
const GlobalBoard * m_gtGTL
pointer to GTL, to be able to get the trigger objects
Definition: MuCondition.h:98
Muon.h
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
l1t::MuCondition::evaluateCondition
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
Definition: MuCondition.cc:103
l1t::MuCondition::setGtIfMuEtaNumberBits
void setGtIfMuEtaNumberBits(const int &)
Definition: MuCondition.cc:93
l1t::MuCondition::MuCondition
MuCondition()
Definition: MuCondition.cc:41
l1t::MuCondition::gtGTL
const GlobalBoard * gtGTL() const
get / set the pointer to GTL
Definition: MuCondition.h:69
l1t::MuCondition::gtMuonTemplate
const MuonTemplate * gtMuonTemplate() const
get / set the pointer to a Condition
Definition: MuCondition.h:64
L1MuGMTCand
Definition: L1MuGMTCand.h:39
l1t::MuCondition::gtIfMuEtaNumberBits
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
Definition: MuCondition.h:74
l1t::MuCondition::~MuCondition
~MuCondition() override
Definition: MuCondition.cc:76
MuonTemplate
Definition: MuonTemplate.h:33
l1t::MuCondition::getCandidate
const l1t::Muon * getCandidate(const int bx, const int indexCand) const
load muon candidates
Definition: MuCondition.cc:311
GlobalBoard
l1t
delete x;
Definition: CaloConfig.h:22
l1t::MuCondition::m_corrParDeltaPhiNrBins
unsigned int m_corrParDeltaPhiNrBins
Definition: MuCondition.h:104
l1t::MuCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: MuCondition.cc:508
cand
Definition: decayParser.h:32
l1t::MuCondition
Definition: MuCondition.h:37
l1t::MuCondition::setGtMuonTemplate
void setGtMuonTemplate(const MuonTemplate *)
Definition: MuCondition.cc:87
ConditionEvaluation.h
l1t::ConditionEvaluation
Definition: ConditionEvaluation.h:39
l1t::MuCondition::checkObjectParameter
const bool checkObjectParameter(const int iCondition, const l1t::Muon &cand, const unsigned int index) const
function to check a single object if it matches a condition
Definition: MuCondition.cc:324
l1t::MuCondition::operator=
MuCondition & operator=(const MuCondition &)
Definition: MuCondition.cc:81
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
GlobalCondition
Definition: GlobalCondition.h:33
l1t::Muon
Definition: Muon.h:21
l1t::MuCondition::m_gtMuonTemplate
const MuonTemplate * m_gtMuonTemplate
pointer to a MuonTemplate
Definition: MuCondition.h:95
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
l1t::MuCondition::setGtGTL
void setGtGTL(const GlobalBoard *)
set the pointer to GTL
Definition: MuCondition.cc:90
l1t::MuCondition::m_ifMuEtaNumberBits
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: MuCondition.h:101
l1t::MuCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: MuCondition.cc:98