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 // $Date: 2007/04/12 13:21:14 $
10 // $Revision: 1.3 $
11 //
12 // Author :
13 // Tobias Noebauer HEPHY Vienna
14 //
15 // Migrated to CMSSW:
16 // I. Mikulec
17 //
18 //--------------------------------------------------
19 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTInputEvent_h
20 #define L1TriggerGlobalMuonTrigger_L1MuGMTInputEvent_h
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 #include <string>
26 #include <vector>
27 #include <map>
28 
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
33 //------------------------------------
34 // Collaborating Class Declarations --
35 //------------------------------------
37 class L1MuRegionalCand;
38 
39 //---------------------
40 //-- Class Interface --
41 //---------------------
42 
44 
45  public:
46 
50 
51  // destructor
52  virtual ~L1MuGMTInputEvent();
53 
56  void reset();
57 
58  void setRunNumber(unsigned long runnr) { m_runnr=runnr; };
59 
60  void setEventNumber(unsigned long eventnr) { m_evtnr=eventnr; };
61 
62  void addInputMuon(std::string chipid, const L1MuRegionalCand& inMu);
63 
64  //eta = [0,13], phi = [0,17]
65  void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val) {
66  m_mip_bits(etaIndex, phiIndex) = val; };
67 
68  //eta = [0,13], phi = [0,17]
69  void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val) {
70  m_iso_bits(etaIndex, phiIndex) = val; };
71 
73  unsigned long getRunNumber() const { return m_runnr; };
74 
76  unsigned long getEventNumber() const { return m_evtnr; };
77 
79  bool isEmpty() const { return (m_runnr == 0L) && (m_evtnr == 0L); };
80 
85  const L1MuRegionalCand* getInputMuon(std::string chipid, unsigned index) const;
86 
88  const L1MuGMTMatrix<bool>& getMipBits() const { return m_mip_bits; };
89 
90  const L1MuGMTMatrix<bool>& getIsoBits() const { return m_iso_bits; };
91 
92  const bool& getMipBit(unsigned etaIndex, unsigned phiIndex) { return m_mip_bits(etaIndex, phiIndex); };
93  const bool& getIsoBit(unsigned etaIndex, unsigned phiIndex) { return m_iso_bits(etaIndex, phiIndex); };
94 
95 
96 
97  private:
98  unsigned long m_runnr;
99  unsigned long m_evtnr;
100 
101  std::map<std::string, std::vector <L1MuRegionalCand> > m_inputmuons;
102 
105 
106 
107 };
108 
109 #endif
110 
111 
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)