CMS 3D CMS Logo

GMTInternalMuon.h
Go to the documentation of this file.
1 #ifndef __l1t_gmt_internal_muon_h__
2 #define __l1t_gmt_internal_muon_h__
3 
7 #include <utility>
8 
9 namespace l1t {
11  public:
12  explicit GMTInternalMuon(const RegionalMuonCand&, int, int);
14  // GMTInternalMuon() {};
15 
16  virtual ~GMTInternalMuon(){};
17 
18  void setHwCancelBit(int bit) { m_hwCancelBit = bit; };
19  void setHwRank(int bits) { m_hwRank = bits; };
20  void setHwWins(int wins) { m_hwWins = wins; };
21  void increaseWins() { m_hwWins++; };
22  void setHwIsoSum(int isosum) { m_hwIsoSum = isosum; };
23  void setHwAbsIso(int iso) { m_hwAbsIso = iso; };
24  void setHwRelIso(int iso) { m_hwRelIso = iso; };
25  void setExtrapolation(int deta, int dphi);
26  void setHwCaloEta(int idx) { m_hwCaloIndex.second = idx; };
27  void setHwCaloPhi(int idx) { m_hwCaloIndex.first = idx; };
28  void setTfMuonIndex(int idx) { m_tfMuonIndex = idx; };
29 
30  const int hwCancelBit() const { return m_hwCancelBit; };
31  const int hwRank() const { return m_hwRank; };
32  const int hwWins() const { return m_hwWins; };
33  const int hwIsoSum() const { return m_hwIsoSum; };
34  const int hwDEta() const { return m_hwDeltaEta; };
35  const int hwDPhi() const { return m_hwDeltaPhi; };
36  const int hwAbsIso() const { return m_hwAbsIso; };
37  const int hwRelIso() const { return m_hwRelIso; };
38  const int hwCaloEta() const { return m_hwCaloIndex.second; };
39  const int hwCaloPhi() const { return m_hwCaloIndex.first; };
40  const int hwGlobalPhi() const { return m_hwGlobalPhi; }
41  const int tfMuonIndex() const { return m_tfMuonIndex; }
42 
43  const RegionalMuonCand& origin() const { return m_regional; };
44 
45  inline const int hwPt() const { return m_regional.hwPt(); };
46  inline const int hwLocalPhi() const { return m_regional.hwPhi(); };
47  inline const int hwEta() const { return m_regional.hwEta(); };
48  inline const int hwSign() const { return m_regional.hwSign(); };
49  inline const int hwSignValid() const { return m_regional.hwSignValid(); };
50  inline const int hwQual() const { return m_regional.hwQual(); };
51  inline const int hwHF() const { return m_regional.hwHF(); };
52  inline const int processor() const { return m_regional.processor(); };
53  inline const tftype trackFinderType() const { return m_regional.trackFinderType(); };
54  inline const int link() const { return m_regional.link(); }
55 
56  private:
58  int m_hwRank;
60  int m_hwWins;
68  std::pair<int, int> m_hwCaloIndex;
69  };
70 
71 } // namespace l1t
72 
73 #endif /* define __l1t_gmt_internal_muon_h__ */
l1t::GMTInternalMuon::setTfMuonIndex
void setTfMuonIndex(int idx)
Definition: GMTInternalMuon.h:28
l1t::GMTInternalMuon::m_hwRank
int m_hwRank
Definition: GMTInternalMuon.h:58
l1t::RegionalMuonCand::processor
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF)
Definition: RegionalMuonCand.h:179
l1t::RegionalMuonCand::link
const int link() const
Get link on which the MicroGMT receives the candidate.
Definition: RegionalMuonCand.h:177
l1t::GMTInternalMuon::m_hwCancelBit
int m_hwCancelBit
Definition: GMTInternalMuon.h:59
l1t::RegionalMuonCand::hwPhi
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
Definition: RegionalMuonCand.h:167
l1t::GMTInternalMuon::m_hwCaloIndex
std::pair< int, int > m_hwCaloIndex
Definition: GMTInternalMuon.h:68
l1t::GMTInternalMuon
Definition: GMTInternalMuon.h:10
l1t::GMTInternalMuon::hwDEta
const int hwDEta() const
Definition: GMTInternalMuon.h:34
l1t::GMTInternalMuon::m_hwGlobalPhi
int m_hwGlobalPhi
Definition: GMTInternalMuon.h:66
l1t::tftype
tftype
Definition: RegionalMuonCandFwd.h:8
l1t::GMTInternalMuon::hwAbsIso
const int hwAbsIso() const
Definition: GMTInternalMuon.h:36
l1t::RegionalMuonCand::hwHF
const int hwHF() const
Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
Definition: RegionalMuonCand.h:183
l1t::GMTInternalMuon::hwGlobalPhi
const int hwGlobalPhi() const
Definition: GMTInternalMuon.h:40
l1t::GMTInternalMuon::m_hwWins
int m_hwWins
Definition: GMTInternalMuon.h:60
l1t::GMTInternalMuon::origin
const RegionalMuonCand & origin() const
Definition: GMTInternalMuon.h:43
l1t::GMTInternalMuon::setHwCancelBit
void setHwCancelBit(int bit)
Definition: GMTInternalMuon.h:18
training_settings.idx
idx
Definition: training_settings.py:16
l1t::RegionalMuonCand::hwQual
const int hwQual() const
Get quality code.
Definition: RegionalMuonCand.h:175
l1t::GMTInternalMuon::processor
const int processor() const
Definition: GMTInternalMuon.h:52
l1t::RegionalMuonCand::hwEta
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
Definition: RegionalMuonCand.h:169
l1t::GMTInternalMuon::m_hwAbsIso
int m_hwAbsIso
Definition: GMTInternalMuon.h:64
l1t::RegionalMuonCand::hwPt
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
Definition: RegionalMuonCand.h:161
l1t::GMTInternalMuon::hwLocalPhi
const int hwLocalPhi() const
Definition: GMTInternalMuon.h:46
l1t::GMTInternalMuon::hwSign
const int hwSign() const
Definition: GMTInternalMuon.h:48
l1t::GMTInternalMuon::m_regional
const RegionalMuonCand & m_regional
Definition: GMTInternalMuon.h:57
l1t::RegionalMuonCand::trackFinderType
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg)
Definition: RegionalMuonCand.h:181
l1t::GMTInternalMuon::increaseWins
void increaseWins()
Definition: GMTInternalMuon.h:21
l1t::GMTInternalMuon::hwSignValid
const int hwSignValid() const
Definition: GMTInternalMuon.h:49
l1t::GMTInternalMuon::setHwCaloEta
void setHwCaloEta(int idx)
Definition: GMTInternalMuon.h:26
l1t::GMTInternalMuon::~GMTInternalMuon
virtual ~GMTInternalMuon()
Definition: GMTInternalMuon.h:16
l1t::GMTInternalMuon::link
const int link() const
Definition: GMTInternalMuon.h:54
l1t
delete x;
Definition: CaloConfig.h:22
l1t::GMTInternalMuon::tfMuonIndex
const int tfMuonIndex() const
Definition: GMTInternalMuon.h:41
l1t::GMTInternalMuon::setHwWins
void setHwWins(int wins)
Definition: GMTInternalMuon.h:20
l1t::GMTInternalMuon::m_tfMuonIndex
int m_tfMuonIndex
Definition: GMTInternalMuon.h:67
l1t::GMTInternalMuon::setHwCaloPhi
void setHwCaloPhi(int idx)
Definition: GMTInternalMuon.h:27
l1t::GMTInternalMuon::hwCaloEta
const int hwCaloEta() const
Definition: GMTInternalMuon.h:38
l1t::GMTInternalMuon::hwEta
const int hwEta() const
Definition: GMTInternalMuon.h:47
l1t::GMTInternalMuon::setHwRelIso
void setHwRelIso(int iso)
Definition: GMTInternalMuon.h:24
l1t::GMTInternalMuon::m_hwRelIso
int m_hwRelIso
Definition: GMTInternalMuon.h:65
l1t::GMTInternalMuon::setExtrapolation
void setExtrapolation(int deta, int dphi)
Definition: GMTInternalMuon.cc:31
l1t::GMTInternalMuon::hwDPhi
const int hwDPhi() const
Definition: GMTInternalMuon.h:35
l1t::GMTInternalMuon::trackFinderType
const tftype trackFinderType() const
Definition: GMTInternalMuon.h:53
l1t::GMTInternalMuon::hwCaloPhi
const int hwCaloPhi() const
Definition: GMTInternalMuon.h:39
l1t::GMTInternalMuon::m_hwDeltaPhi
int m_hwDeltaPhi
Definition: GMTInternalMuon.h:63
l1t::GMTInternalMuon::hwRank
const int hwRank() const
Definition: GMTInternalMuon.h:31
l1t::GMTInternalMuon::hwQual
const int hwQual() const
Definition: GMTInternalMuon.h:50
bits
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Definition: EventSelector-behavior.doc:35
l1t::RegionalMuonCand::hwSign
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
Definition: RegionalMuonCand.h:171
l1t::GMTInternalMuon::GMTInternalMuon
GMTInternalMuon(const RegionalMuonCand &, int, int)
Definition: GMTInternalMuon.cc:19
Ref.h
l1t::GMTInternalMuon::hwIsoSum
const int hwIsoSum() const
Definition: GMTInternalMuon.h:33
l1t::GMTInternalMuon::hwPt
const int hwPt() const
Definition: GMTInternalMuon.h:45
l1t::GMTInternalMuon::hwCancelBit
const int hwCancelBit() const
Definition: GMTInternalMuon.h:30
l1t::GMTInternalMuon::hwHF
const int hwHF() const
Definition: GMTInternalMuon.h:51
l1t::GMTInternalMuon::setHwIsoSum
void setHwIsoSum(int isosum)
Definition: GMTInternalMuon.h:22
RegionalMuonCand.h
l1t::GMTInternalMuon::hwWins
const int hwWins() const
Definition: GMTInternalMuon.h:32
l1t::RegionalMuonCand::hwSignValid
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
Definition: RegionalMuonCand.h:173
RegionalMuonCandFwd.h
l1t::GMTInternalMuon::m_hwDeltaEta
int m_hwDeltaEta
Definition: GMTInternalMuon.h:62
l1t::GMTInternalMuon::setHwAbsIso
void setHwAbsIso(int iso)
Definition: GMTInternalMuon.h:23
l1t::GMTInternalMuon::hwRelIso
const int hwRelIso() const
Definition: GMTInternalMuon.h:37
l1t::GMTInternalMuon::m_hwIsoSum
int m_hwIsoSum
Definition: GMTInternalMuon.h:61
l1t::GMTInternalMuon::setHwRank
void setHwRank(int bits)
Definition: GMTInternalMuon.h:19
l1t::RegionalMuonCand
Definition: RegionalMuonCand.h:8