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
void setInputBit(std::bitset< 15 > &, int)
std::map< int, std::vector< RPCData > > m_vecDataperBx
const edm::ESHandle< RPCGeometry > * m_ptr_rpcGeom
std::map< int, RBCInput * > m_data
const edm::Handle< RPCDigiCollection > * m_ptr_digiColl
RPCInputSignal * retrievedata() override
RBCProcessRPCDigis(const edm::ESHandle< RPCGeometry > &, const edm::Handle< RPCDigiCollection > &)
Standard constructor.
std::map< int, l1trigger::Counters > m_digiCounters
void initialize(std::vector< RPCData > &) const
void setDigiAt(int, int, RPCData &)
int getBarrelLayer(const int &, const int &)
std::unique_ptr< RPCInputSignal > m_lbin
~RBCProcessRPCDigis() override
Destructor.