CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTInputEvent.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuGMTInputEvent
4 //
5 // Description: Test file for the GMT standalone program. Contains
6 // all the input data the GMT receives (CSC, RPC, DT, GCT)
7 //
8 //
9 //
10 // Author :
11 // Tobias Noebauer HEPHY Vienna
12 //
13 // Migrated to CMSSW:
14 // I. Mikulec
15 //
16 //--------------------------------------------------
17 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTInputEvent_h
18 #define L1TriggerGlobalMuonTrigger_L1MuGMTInputEvent_h
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 //----------------------
28 // Base Class Headers --
29 //----------------------
30 
31 //------------------------------------
32 // Collaborating Class Declarations --
33 //------------------------------------
35 class L1MuRegionalCand;
36 
37 //---------------------
38 //-- Class Interface --
39 //---------------------
40 
42 
43  public:
44 
48 
49  // destructor
50  virtual ~L1MuGMTInputEvent();
51 
54  void reset();
55 
56  void setRunNumber(unsigned long runnr) { m_runnr=runnr; };
57 
58  void setEventNumber(unsigned long eventnr) { m_evtnr=eventnr; };
59 
60  void addInputMuon(std::string chipid, const L1MuRegionalCand& inMu);
61 
62  //eta = [0,13], phi = [0,17]
63  void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val) {
64  m_mip_bits(etaIndex, phiIndex) = val; };
65 
66  //eta = [0,13], phi = [0,17]
67  void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val) {
68  m_iso_bits(etaIndex, phiIndex) = val; };
69 
71  unsigned long getRunNumber() const { return m_runnr; };
72 
74  unsigned long getEventNumber() const { return m_evtnr; };
75 
77  bool isEmpty() const { return (m_runnr == 0L) && (m_evtnr == 0L); };
78 
83  const L1MuRegionalCand* getInputMuon(std::string chipid, unsigned index) const;
84 
86  const L1MuGMTMatrix<bool>& getMipBits() const { return m_mip_bits; };
87 
88  const L1MuGMTMatrix<bool>& getIsoBits() const { return m_iso_bits; };
89 
90  const bool& getMipBit(unsigned etaIndex, unsigned phiIndex) { return m_mip_bits(etaIndex, phiIndex); };
91  const bool& getIsoBit(unsigned etaIndex, unsigned phiIndex) { return m_iso_bits(etaIndex, phiIndex); };
92 
93 
94 
95  private:
96  unsigned long m_runnr;
97  unsigned long m_evtnr;
98 
99  std::map<std::string, std::vector <L1MuRegionalCand> > m_inputmuons;
100 
103 
104 
105 };
106 
107 #endif
108 
109 
L1MuGMTMatrix< bool > m_mip_bits
unsigned long m_evtnr
virtual ~L1MuGMTInputEvent()
L1MuGMTMatrix< bool > m_iso_bits
void setRunNumber(unsigned long runnr)
unsigned long getRunNumber() const
get the Run number
bool isEmpty() const
is the event empty?
const L1MuGMTMatrix< bool > & getMipBits() const
get the MIP / ISO bits
unsigned long getEventNumber() const
get the Event number
const L1MuGMTMatrix< bool > & getIsoBits() const
void addInputMuon(std::string chipid, const L1MuRegionalCand &inMu)
void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val)
const L1MuRegionalCand * getInputMuon(std::string chipid, unsigned index) const
const bool & getMipBit(unsigned etaIndex, unsigned phiIndex)
unsigned long m_runnr
const bool & getIsoBit(unsigned etaIndex, unsigned phiIndex)
std::map< std::string, std::vector< L1MuRegionalCand > > m_inputmuons
void setEventNumber(unsigned long eventnr)
void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val)