CMS 3D CMS Logo

L1MuGMTPSB.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //
14 // Author :
15 // N. Neumeister CERN EP
16 //
17 // Migrated to CMSSW:
18 // I. Mikulec
19 //
20 //--------------------------------------------------
21 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTPSB_h
22 #define L1TriggerGlobalMuonTrigger_L1MuGMTPSB_h
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <vector>
29 
30 //----------------------
31 // Base Class Headers --
32 //----------------------
33 
38 
39 //------------------------------------
40 // Collaborating Class Declarations --
41 //------------------------------------
42 
44 
45 // ---------------------
46 // -- Class Interface --
47 // ---------------------
48 
49 class L1MuGMTPSB {
50 
51  public:
52 
55 
57  virtual ~L1MuGMTPSB();
58 
60  void receiveData(edm::Event& e, int bx);
61 
63  void reset();
64 
66  void print() const;
67 
69  const L1MuRegionalCand* RPCMuon(int index) const;
70 
72  const L1MuRegionalCand* DTBXMuon(int index) const;
73 
75  const L1MuRegionalCand* CSCMuon(int index) const;
76 
78  int numberRPC() const;
79 
81  int numberDTBX() const;
82 
84  int numberCSC() const;
85 
87  bool empty() const;
88 
90  const L1MuGMTMatrix<bool>& isolBits() const { return m_Isol; }
91 
93  const L1MuGMTMatrix<bool>& mipBits() const { return m_Mip; }
94 
95  private:
96 
98  void getRPCb(std::vector<L1MuRegionalCand> const* data, int bx);
99 
101  void getRPCf(std::vector<L1MuRegionalCand> const* data, int bx);
102 
104  void getDTBX(std::vector<L1MuRegionalCand> const* data, int bx);
105 
107  void getCSC(std::vector<L1MuRegionalCand> const* data, int bx);
108 
110  void getCalo(edm::Event& e);
111 
113  void printRPCbarrel() const;
114 
116  void printRPCendcap() const;
117 
119  void printDTBX() const;
120 
122  void printCSC() const;
123 
124  private:
125 
127 
128  std::vector<L1MuRegionalCand> m_RpcMuons;
129  std::vector<L1MuRegionalCand> m_DtbxMuons;
130  std::vector<L1MuRegionalCand> m_CscMuons;
131 
134 
135 };
136 
137 #endif
void getRPCf(std::vector< L1MuRegionalCand > const *data, int bx)
get muons from RPCf Trigger
Definition: L1MuGMTPSB.cc:341
int numberDTBX() const
return number of non-empty DTBX muons
Definition: L1MuGMTPSB.cc:279
void print() const
print PSB
Definition: L1MuGMTPSB.cc:219
void getCSC(std::vector< L1MuRegionalCand > const *data, int bx)
get muons from endcap Muon Trigger Track Finder
Definition: L1MuGMTPSB.cc:382
bool empty() const
are there any data in the PSB
Definition: L1MuGMTPSB.cc:311
void getCalo(edm::Event &e)
get Calorimeter Trigger data
Definition: L1MuGMTPSB.cc:456
const L1MuGlobalMuonTrigger & m_gmt
Definition: L1MuGMTPSB.h:126
void reset()
clear PSB
Definition: L1MuGMTPSB.cc:198
int numberRPC() const
return number of non-empty RPC muons
Definition: L1MuGMTPSB.cc:263
L1MuGMTPSB(const L1MuGlobalMuonTrigger &gmt, edm::ConsumesCollector &&iC)
constructor
Definition: L1MuGMTPSB.cc:52
const L1MuRegionalCand * CSCMuon(int index) const
get CSC muon
Definition: L1MuGMTPSB.cc:254
void printDTBX() const
print DTBX muons
Definition: L1MuGMTPSB.cc:428
const L1MuRegionalCand * RPCMuon(int index) const
get RPC muon
Definition: L1MuGMTPSB.cc:234
virtual ~L1MuGMTPSB()
destructor
Definition: L1MuGMTPSB.cc:74
std::vector< L1MuRegionalCand > m_CscMuons
Definition: L1MuGMTPSB.h:130
L1MuGMTMatrix< bool > m_Isol
Definition: L1MuGMTPSB.h:132
void printRPCbarrel() const
print barrel RPC muons
Definition: L1MuGMTPSB.cc:400
void getRPCb(std::vector< L1MuRegionalCand > const *data, int bx)
get muons from RPCb Trigger
Definition: L1MuGMTPSB.cc:323
const L1MuRegionalCand * DTBXMuon(int index) const
get DTBX muon
Definition: L1MuGMTPSB.cc:244
void printCSC() const
print CSC muons
Definition: L1MuGMTPSB.cc:442
void receiveData(edm::Event &e, int bx)
receive muon candidates
Definition: L1MuGMTPSB.cc:90
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void printRPCendcap() const
print endcap RPC muons
Definition: L1MuGMTPSB.cc:414
void getDTBX(std::vector< L1MuRegionalCand > const *data, int bx)
get muons from barrel Muon Trigger Track Finder
Definition: L1MuGMTPSB.cc:359
L1MuGMTMatrix< bool > m_Mip
Definition: L1MuGMTPSB.h:133
int numberCSC() const
return number of non-empty CSC muons
Definition: L1MuGMTPSB.cc:295
std::vector< L1MuRegionalCand > m_RpcMuons
Definition: L1MuGMTPSB.h:128
std::vector< L1MuRegionalCand > m_DtbxMuons
Definition: L1MuGMTPSB.h:129
const L1MuGMTMatrix< bool > & isolBits() const
return isolation bits
Definition: L1MuGMTPSB.h:90
const L1MuGMTMatrix< bool > & mipBits() const
return minimum ionizing bits
Definition: L1MuGMTPSB.h:93