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 {
10 
12  typedef std::vector<GMTInternalMuon> GMTInternalMuonCollection;
13  typedef std::map<int, std::vector<std::shared_ptr<GMTInternalMuon>>> GMTInternalWedges;
14  typedef std::list<std::shared_ptr<GMTInternalMuon>> GMTInternalMuonList;
15 
17  public:
18  explicit GMTInternalMuon(const RegionalMuonCand&, int);
20  // GMTInternalMuon() {};
21 
22  virtual ~GMTInternalMuon() {};
23 
24  void setHwCancelBit(int bit) { m_hwCancelBit = bit; };
25  void setHwRank(int bits) { m_hwRank = bits; };
26  void setHwWins(int wins) { m_hwWins = wins; };
27  void increaseWins() { m_hwWins++; };
28  void setHwIsoSum(int isosum) { m_hwIsoSum = isosum; };
29  void setHwAbsIso(int iso) { m_hwAbsIso = iso; };
30  void setHwRelIso(int iso) { m_hwRelIso = iso; };
31  void setExtrapolation(int deta, int dphi);
32  void setHwCaloEta(int idx) { m_hwCaloIndex.second = idx; };
33  void setHwCaloPhi(int idx) { m_hwCaloIndex.first = idx; };
34 
35  static int calcGlobalPhi(int locPhi, tftype t, int proc);
36 
37  const int hwCancelBit() const { return m_hwCancelBit; };
38  const int hwRank() const { return m_hwRank; };
39  const int hwWins() const { return m_hwWins; };
40  const int hwIsoSum() const { return m_hwIsoSum; };
41  const int hwDEta() const { return m_hwDeltaEta; };
42  const int hwDPhi() const { return m_hwDeltaPhi; };
43  const int hwAbsIso() const { return m_hwAbsIso; };
44  const int hwRelIso() const { return m_hwRelIso; };
45  const int hwCaloEta() const { return m_hwCaloIndex.second; };
46  const int hwCaloPhi() const { return m_hwCaloIndex.first; };
47  const int hwGlobalPhi() const { return m_hwGlobalPhi; }
48 
49 
50  const RegionalMuonCand& origin() const { return m_regional; };
51 
52  inline const int hwPt() const { return m_regional.hwPt(); };
53  inline const int hwLocalPhi() const { return m_regional.hwPhi(); };
54  inline const int hwEta() const { return m_regional.hwEta(); };
55  inline const int hwSign() const { return m_regional.hwSign(); };
56  inline const int hwSignValid() const { return m_regional.hwSignValid(); };
57  inline const int hwQual() const { return m_regional.hwQual(); };
58  inline const int hwTrackAddress() const { return m_regional.hwTrackAddress(); };
59  inline const int processor() const { return m_regional.processor(); };
60  inline const tftype trackFinderType() const { return m_regional.trackFinderType(); };
61  inline const int link() const { return m_regional.link(); }
62 
63  private:
64 
66  int m_hwRank;
68  int m_hwWins;
75  std::pair<int, int> m_hwCaloIndex;
76 };
77 
78 } // namespace l1t
79 
80 
81 #endif /* define __l1t_gmt_internal_muon_h__ */
82 
83 
84 
85 
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
std::list< std::shared_ptr< GMTInternalMuon > > GMTInternalMuonList
const int hwTrackAddress() const
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)
std::vector< GMTInternalMuon > GMTInternalMuonCollection
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
const int hwTrackAddress() const
Get track address identifying trigger primitives.
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 (1..6 for OMTF/EMTF; 1..12 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
std::map< int, std::vector< std::shared_ptr< GMTInternalMuon > > > GMTInternalWedges
void setHwCaloEta(int idx)
const int hwAbsIso() const