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 hwPtUnconstrained() const { return m_regional.hwPtUnconstrained(); };
47  inline const int hwDXY() const { return m_regional.hwDXY(); };
48  inline const int hwLocalPhi() const { return m_regional.hwPhi(); };
49  inline const int hwEta() const { return m_regional.hwEta(); };
50  inline const int hwSign() const { return m_regional.hwSign(); };
51  inline const int hwSignValid() const { return m_regional.hwSignValid(); };
52  inline const int hwQual() const { return m_regional.hwQual(); };
53  inline const int hwHF() const { return m_regional.hwHF(); };
54  inline const int processor() const { return m_regional.processor(); };
55  inline const tftype trackFinderType() const { return m_regional.trackFinderType(); };
56  inline const int link() const { return m_regional.link(); }
57 
58  private:
60  int m_hwRank;
62  int m_hwWins;
70  std::pair<int, int> m_hwCaloIndex;
71  };
72 
73 } // namespace l1t
74 
75 #endif /* define __l1t_gmt_internal_muon_h__ */
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
const int hwDPhi() const
const tftype trackFinderType() const
const int hwRank() const
const int hwSign() const
const int hwCaloEta() const
const int hwQual() const
void setHwRelIso(int iso)
const int link() const
const int hwSignValid() const
const int hwCaloPhi() const
const int hwPt() const
const int hwCancelBit() const
const int link() const
Get link on which the MicroGMT receives the candidate.
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF) ...
void setExtrapolation(int deta, int dphi)
void setHwWins(int wins)
void setHwCaloPhi(int idx)
delete x;
Definition: CaloConfig.h:22
const int hwEta() const
const int hwHF() const
void setHwIsoSum(int isosum)
const int hwWins() const
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
void setHwRank(int bits)
const int hwHF() const
Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
const int hwQual() const
Get quality code.
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
const int hwIsoSum() const
GMTInternalMuon(const RegionalMuonCand &, int, int)
std::pair< int, int > m_hwCaloIndex
const int hwRelIso() const
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) ...
void setHwAbsIso(int iso)
void setHwCancelBit(int bit)
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
const int hwPtUnconstrained() const
const int hwDEta() const
const int hwDXY() const
const int processor() const
void setTfMuonIndex(int idx)
const int hwAbsIso() const
const int hwPtUnconstrained() const
Get second compressed pT (returned int * 1.0 = pT (GeV))
const int hwGlobalPhi() const
const int hwDXY() const
Get compressed impact parameter (4 bits)
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
const RegionalMuonCand & m_regional
const int hwLocalPhi() const
const RegionalMuonCand & origin() const
const int tfMuonIndex() const
void setHwCaloEta(int idx)