CMS 3D CMS Logo

RBCProcessRPCDigis.h
Go to the documentation of this file.
1 // $Id:
2 #ifndef RBCPROCESSRPCDIGIS_H
3 #define RBCPROCESSRPCDIGIS_H 1
4 
5 // Include files
8 
13 
17 
18 // From project
23 
24 #include <cstdlib>
25 #include <iostream>
26 #include <fstream>
27 #include <ios>
28 #include <cmath>
29 #include <map>
30 #include <vector>
31 
40 public:
43 
44  ~RBCProcessRPCDigis() override;
45 
46  int next() override;
47 
48  void reset();
49 
50  void configure();
51 
52  void builddata();
53 
54  void print_output();
55 
56  RPCInputSignal *retrievedata() override { return m_lbin.get(); };
57 
58  void rewind(){};
59  void showfirst(){};
60 
61 protected:
62 private:
63  void initialize(std::vector<RPCData> &) const;
64 
65  int getBarrelLayer(const int &, const int &);
66 
67  void setDigiAt(int, int, RPCData &);
68 
69  void setInputBit(std::bitset<15> &, int);
70 
73 
74  std::unique_ptr<RPCInputSignal> m_lbin;
75 
76  std::map<int, RBCInput *> m_data;
77 
78  std::map<int, std::vector<RPCData> > m_vecDataperBx;
79 
80  std::map<int, l1trigger::Counters> m_digiCounters;
81  const int m_maxBxWindow;
82  const bool m_debug;
83 };
84 #endif // RBCPROCESSRPCDIGIS_H
RPCData
Definition: RPCData.h:42
RBCProcessRPCDigis::configure
void configure()
Definition: RBCProcessRPCDigis.cc:29
RBCProcessRPCDigis::showfirst
void showfirst()
Definition: RBCProcessRPCDigis.h:59
ESHandle.h
ProcessInputSignal
Definition: ProcessInputSignal.h:18
RBCProcessRPCDigis::m_ptr_digiColl
const edm::Handle< RPCDigiCollection > * m_ptr_digiColl
Definition: RBCProcessRPCDigis.h:72
RBCProcessRPCDigis::builddata
void builddata()
Definition: RBCProcessRPCDigis.cc:171
RBCProcessRPCDigis
Definition: RBCProcessRPCDigis.h:39
RBCProcessRPCDigis::retrievedata
RPCInputSignal * retrievedata() override
Definition: RBCProcessRPCDigis.h:56
RPCRoll.h
RBCProcessRPCDigis::setDigiAt
void setDigiAt(int, int, RPCData &)
Definition: RBCProcessRPCDigis.cc:211
RBCProcessRPCDigis::next
int next() override
Definition: RBCProcessRPCDigis.cc:40
edm::Handle< RPCDigiCollection >
RBCProcessRPCDigis::initialize
void initialize(std::vector< RPCData > &) const
Definition: RBCProcessRPCDigis.cc:144
RBCProcessRPCDigis::m_debug
const bool m_debug
Definition: RBCProcessRPCDigis.h:82
RBCProcessRPCDigis::getBarrelLayer
int getBarrelLayer(const int &, const int &)
Definition: RBCProcessRPCDigis.cc:198
ProcessInputSignal.h
RBCProcessRPCDigis::~RBCProcessRPCDigis
~RBCProcessRPCDigis() override
Destructor.
Definition: RBCProcessRPCDigis.cc:37
edm::ESHandle< RPCGeometry >
RPCDigi.h
RPCDetId.h
RPCInputSignal
Definition: RPCInputSignal.h:12
RBCInput.h
RBCProcessRPCDigis::m_vecDataperBx
std::map< int, std::vector< RPCData > > m_vecDataperBx
Definition: RBCProcessRPCDigis.h:78
RBCProcessRPCDigis::setInputBit
void setInputBit(std::bitset< 15 > &, int)
Definition: RBCProcessRPCDigis.cc:244
RBCProcessRPCDigis::m_maxBxWindow
const int m_maxBxWindow
Definition: RBCProcessRPCDigis.h:81
RBCProcessRPCDigis::m_digiCounters
std::map< int, l1trigger::Counters > m_digiCounters
Definition: RBCProcessRPCDigis.h:80
RBCProcessRPCDigis::m_ptr_rpcGeom
const edm::ESHandle< RPCGeometry > * m_ptr_rpcGeom
Definition: RBCProcessRPCDigis.h:71
RBCProcessRPCDigis::print_output
void print_output()
Definition: RBCProcessRPCDigis.cc:251
RBCProcessRPCDigis::RBCProcessRPCDigis
RBCProcessRPCDigis(const edm::ESHandle< RPCGeometry > &, const edm::Handle< RPCDigiCollection > &)
Standard constructor.
Definition: RBCProcessRPCDigis.cc:18
RBCProcessRPCDigis::m_data
std::map< int, RBCInput * > m_data
Definition: RBCProcessRPCDigis.h:76
RPCData.h
RBCProcessRPCDigis::reset
void reset()
Definition: RBCProcessRPCDigis.cc:142
Frameworkfwd.h
RPCDigiCollection.h
RBCProcessRPCDigis::m_lbin
std::unique_ptr< RPCInputSignal > m_lbin
Definition: RBCProcessRPCDigis.h:74
MuonGeometryRecord.h
RPCInputSignal.h
RBCProcessRPCDigis::rewind
void rewind()
Definition: RBCProcessRPCDigis.h:58
RPCGeometry.h