CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
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 
29  static int calcGlobalPhi(int locPhi, tftype t, int proc);
30 
31  const int hwCancelBit() const { return m_hwCancelBit; };
32  const int hwRank() const { return m_hwRank; };
33  const int hwWins() const { return m_hwWins; };
34  const int hwIsoSum() const { return m_hwIsoSum; };
35  const int hwDEta() const { return m_hwDeltaEta; };
36  const int hwDPhi() const { return m_hwDeltaPhi; };
37  const int hwAbsIso() const { return m_hwAbsIso; };
38  const int hwRelIso() const { return m_hwRelIso; };
39  const int hwCaloEta() const { return m_hwCaloIndex.second; };
40  const int hwCaloPhi() const { return m_hwCaloIndex.first; };
41  const int hwGlobalPhi() const { return m_hwGlobalPhi; }
42 
43 
44  const RegionalMuonCand& origin() const { return m_regional; };
45 
46  inline const int hwPt() const { return m_regional.hwPt(); };
47  inline const int hwLocalPhi() const { return m_regional.hwPhi(); };
48  inline const int hwEta() const { return m_regional.hwEta(); };
49  inline const int hwSign() const { return m_regional.hwSign(); };
50  inline const int hwSignValid() const { return m_regional.hwSignValid(); };
51  inline const int hwQual() const { return m_regional.hwQual(); };
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:
57 
59  int m_hwRank;
61  int m_hwWins;
68  std::pair<int, int> m_hwCaloIndex;
69 };
70 
71 } // namespace l1t
72 
73 #endif /* define __l1t_gmt_internal_muon_h__ */
const int hwCancelBit() const
const int hwSign() const
const int hwDEta() const
void setHwRelIso(int iso)
const int hwRank() const
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
TrainProcessor *const proc
Definition: MVATrainer.cc:101
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
void setExtrapolation(int deta, int dphi)
void setHwWins(int wins)
void setHwCaloPhi(int idx)
void setHwIsoSum(int isosum)
const int hwWins() const
void setHwRank(int bits)
const int hwCaloEta() const
const int hwQual() const
const int hwPt() const
const int hwQual() const
Get quality code.
const int link() const
const tftype trackFinderType() const
std::pair< int, int > m_hwCaloIndex
const int hwIsoSum() const
const RegionalMuonCand & origin() const
const int hwSignValid() const
const int hwDPhi() const
const int hwLocalPhi() const
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
void setHwAbsIso(int iso)
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
void setHwCancelBit(int bit)
const int link() const
Get link on which the MicroGMT receives the candidate.
const int hwEta() const
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) ...
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF) ...
const int hwCaloPhi() const
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
const int processor() const
const int hwRelIso() const
const int hwGlobalPhi() const
static int calcGlobalPhi(int locPhi, tftype t, int proc)
GMTInternalMuon(const RegionalMuonCand &, int)
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
const RegionalMuonCand & m_regional
void setHwCaloEta(int idx)
const int hwAbsIso() const