CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 public:
46 
47  // destructor
48  virtual ~L1MuGMTInputEvent();
49 
52  void reset();
53 
54  void setRunNumber(unsigned long runnr) { m_runnr = runnr; };
55 
56  void setEventNumber(unsigned long eventnr) { m_evtnr = eventnr; };
57 
58  void addInputMuon(std::string chipid, const L1MuRegionalCand& inMu);
59 
60  //eta = [0,13], phi = [0,17]
61  void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val) { m_mip_bits(etaIndex, phiIndex) = val; };
62 
63  //eta = [0,13], phi = [0,17]
64  void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val) { m_iso_bits(etaIndex, phiIndex) = val; };
65 
67  unsigned long getRunNumber() const { return m_runnr; };
68 
70  unsigned long getEventNumber() const { return m_evtnr; };
71 
73  bool isEmpty() const { return (m_runnr == 0L) && (m_evtnr == 0L); };
74 
79  const L1MuRegionalCand* getInputMuon(std::string chipid, unsigned index) const;
80 
82  const L1MuGMTMatrix<bool>& getMipBits() const { return m_mip_bits; };
83 
84  const L1MuGMTMatrix<bool>& getIsoBits() const { return m_iso_bits; };
85 
86  const bool& getMipBit(unsigned etaIndex, unsigned phiIndex) { return m_mip_bits(etaIndex, phiIndex); };
87  const bool& getIsoBit(unsigned etaIndex, unsigned phiIndex) { return m_iso_bits(etaIndex, phiIndex); };
88 
89 private:
90  unsigned long m_runnr;
91  unsigned long m_evtnr;
92 
93  std::map<std::string, std::vector<L1MuRegionalCand> > m_inputmuons;
94 
97 };
98 
99 #endif
const L1MuGMTMatrix< bool > & getMipBits() const
get the MIP / ISO bits
L1MuGMTMatrix< bool > m_mip_bits
const L1MuGMTMatrix< bool > & getIsoBits() const
unsigned long m_evtnr
virtual ~L1MuGMTInputEvent()
L1MuGMTMatrix< bool > m_iso_bits
void setRunNumber(unsigned long runnr)
const L1MuRegionalCand * getInputMuon(std::string chipid, unsigned index) const
std::map< std::string, std::vector< L1MuRegionalCand > > m_inputmuons
unsigned long getEventNumber() const
get the Event number
void addInputMuon(std::string chipid, const L1MuRegionalCand &inMu)
void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val)
const bool & getMipBit(unsigned etaIndex, unsigned phiIndex)
unsigned long m_runnr
const bool & getIsoBit(unsigned etaIndex, unsigned phiIndex)
bool isEmpty() const
is the event empty?
unsigned long getRunNumber() const
get the Run number
void setEventNumber(unsigned long eventnr)
void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val)