CMS 3D CMS Logo

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
L1MuGMTInputEvent::setEventNumber
void setEventNumber(unsigned long eventnr)
Definition: L1MuGMTInputEvent.h:56
dttmaxenums::L
Definition: DTTMax.h:29
L1MuGMTInputEvent::m_evtnr
unsigned long m_evtnr
Definition: L1MuGMTInputEvent.h:91
L1MuGMTInputEvent::setMipBit
void setMipBit(unsigned etaIndex, unsigned phiIndex, bool val)
Definition: L1MuGMTInputEvent.h:61
L1MuGMTInputEvent::getMipBits
const L1MuGMTMatrix< bool > & getMipBits() const
get the MIP / ISO bits
Definition: L1MuGMTInputEvent.h:82
L1MuGMTInputEvent::m_mip_bits
L1MuGMTMatrix< bool > m_mip_bits
Definition: L1MuGMTInputEvent.h:95
L1MuGMTInputEvent
Definition: L1MuGMTInputEvent.h:41
L1MuGMTInputEvent::getInputMuon
const L1MuRegionalCand * getInputMuon(std::string chipid, unsigned index) const
Definition: L1MuGMTInputEvent.cc:86
fileCollector.runnr
runnr
Definition: fileCollector.py:87
L1MuGMTInputEvent::getIsoBits
const L1MuGMTMatrix< bool > & getIsoBits() const
Definition: L1MuGMTInputEvent.h:84
L1MuGMTMatrix.h
L1MuGMTInputEvent::setRunNumber
void setRunNumber(unsigned long runnr)
Definition: L1MuGMTInputEvent.h:54
L1MuGMTInputEvent::~L1MuGMTInputEvent
virtual ~L1MuGMTInputEvent()
Definition: L1MuGMTInputEvent.cc:62
L1MuGMTInputEvent::addInputMuon
void addInputMuon(std::string chipid, const L1MuRegionalCand &inMu)
Definition: L1MuGMTInputEvent.cc:67
L1MuGMTInputEvent::m_iso_bits
L1MuGMTMatrix< bool > m_iso_bits
Definition: L1MuGMTInputEvent.h:96
L1MuRegionalCand
Definition: L1MuRegionalCand.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1MuGMTInputEvent::m_inputmuons
std::map< std::string, std::vector< L1MuRegionalCand > > m_inputmuons
Definition: L1MuGMTInputEvent.h:93
L1MuGMTInputEvent::getEventNumber
unsigned long getEventNumber() const
get the Event number
Definition: L1MuGMTInputEvent.h:70
L1MuGMTInputEvent::m_runnr
unsigned long m_runnr
Definition: L1MuGMTInputEvent.h:87
L1MuGMTInputEvent::isEmpty
bool isEmpty() const
is the event empty?
Definition: L1MuGMTInputEvent.h:73
L1MuGMTInputEvent::L1MuGMTInputEvent
L1MuGMTInputEvent()
Definition: L1MuGMTInputEvent.cc:36
L1MuGMTInputEvent::reset
void reset()
Definition: L1MuGMTInputEvent.cc:73
heppy_batch.val
val
Definition: heppy_batch.py:351
L1MuGMTInputEvent::getIsoBit
const bool & getIsoBit(unsigned etaIndex, unsigned phiIndex)
Definition: L1MuGMTInputEvent.h:87
L1MuGMTInputEvent::getMipBit
const bool & getMipBit(unsigned etaIndex, unsigned phiIndex)
Definition: L1MuGMTInputEvent.h:86
L1MuGMTInputEvent::setIsoBit
void setIsoBit(unsigned etaIndex, unsigned phiIndex, bool val)
Definition: L1MuGMTInputEvent.h:64
L1MuGMTInputEvent::getRunNumber
unsigned long getRunNumber() const
get the Run number
Definition: L1MuGMTInputEvent.h:67
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
L1MuGMTMatrix< bool >