CMS 3D CMS Logo

RBCProcessRPCSimDigis.h
Go to the documentation of this file.
1 #ifndef INTERFACE_RBCPROCESSRPCSIMDIGIS_H
2 #define INTERFACE_RBCPROCESSRPCSIMDIGIS_H 1
3 
4 // Include files
7 
12 
14 
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 #include <memory>
32 
41 public:
44 
46 
47  int next() override;
48 
49  void reset();
50 
51  void builddata();
52 
53  void print_output();
54 
55  RPCInputSignal *retrievedata() override { return m_lbin.get(); };
56 
57  void rewind(){};
58  void showfirst(){};
59 
60  ~RBCProcessRPCSimDigis() override;
61 
62 protected:
63 private:
64  int getBarrelLayer(const int &, const int &);
65 
66  void setDigiAt(int, int, RPCData &);
67 
68  void setInputBit(std::bitset<15> &, int);
69 
70  void initialize(std::vector<RPCData> &);
71 
74 
77 
78  std::unique_ptr<RPCInputSignal> m_lbin;
79 
80  std::map<int, RBCInput *> m_data;
81 
82  std::map<int, std::vector<RPCData> > m_vecDataperBx;
83 
84  bool m_debug;
86 };
87 #endif // INTERFACE_RBCPROCESSRPCSIMDIGIS_H
edm::DetSetVector< RPCDigiSimLink >
RPCData
Definition: RPCData.h:42
RBCProcessRPCSimDigis::showfirst
void showfirst()
Definition: RBCProcessRPCSimDigis.h:58
RBCProcessRPCSimDigis::print_output
void print_output()
Definition: RBCProcessRPCSimDigis.cc:239
ESHandle.h
ProcessInputSignal
Definition: ProcessInputSignal.h:18
RBCProcessRPCSimDigis::m_debug
bool m_debug
Definition: RBCProcessRPCSimDigis.h:84
RBCProcessRPCSimDigis::m_data
std::map< int, RBCInput * > m_data
Definition: RBCProcessRPCSimDigis.h:80
RPCRoll.h
RBCProcessRPCSimDigis::next
int next() override
Definition: RBCProcessRPCSimDigis.cc:33
edm::Handle
Definition: AssociativeIterator.h:50
RBCProcessRPCSimDigis::builddata
void builddata()
Definition: RBCProcessRPCSimDigis.cc:157
ProcessInputSignal.h
RBCProcessRPCSimDigis::rewind
void rewind()
Definition: RBCProcessRPCSimDigis.h:57
edm::ESHandle< RPCGeometry >
RBCProcessRPCSimDigis::initialize
void initialize(std::vector< RPCData > &)
Definition: RBCProcessRPCSimDigis.cc:130
RPCDetId.h
RBCProcessRPCSimDigis::m_ptr_rpcGeom
const edm::ESHandle< RPCGeometry > * m_ptr_rpcGeom
Definition: RBCProcessRPCSimDigis.h:72
RBCProcessRPCSimDigis::setInputBit
void setInputBit(std::bitset< 15 > &, int)
Definition: RBCProcessRPCSimDigis.cc:232
RBCProcessRPCSimDigis::m_vecDataperBx
std::map< int, std::vector< RPCData > > m_vecDataperBx
Definition: RBCProcessRPCSimDigis.h:82
RPCInputSignal
Definition: RPCInputSignal.h:12
RBCInput.h
edm::DetSetVector::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
RBCProcessRPCSimDigis::retrievedata
RPCInputSignal * retrievedata() override
Definition: RBCProcessRPCSimDigis.h:55
DetSetVector.h
RPCData.h
RBCProcessRPCSimDigis::m_digiItr
edm::DetSet< RPCDigiSimLink >::const_iterator m_digiItr
Definition: RBCProcessRPCSimDigis.h:76
Frameworkfwd.h
RBCProcessRPCSimDigis::getBarrelLayer
int getBarrelLayer(const int &, const int &)
Definition: RBCProcessRPCSimDigis.cc:186
RBCProcessRPCSimDigis::m_ptr_digiSimLink
const edm::Handle< edm::DetSetVector< RPCDigiSimLink > > * m_ptr_digiSimLink
Definition: RBCProcessRPCSimDigis.h:73
RBCProcessRPCSimDigis::setDigiAt
void setDigiAt(int, int, RPCData &)
Definition: RBCProcessRPCSimDigis.cc:199
RBCProcessRPCSimDigis::reset
void reset()
Definition: RBCProcessRPCSimDigis.cc:128
RBCProcessRPCSimDigis::m_maxBxWindow
int m_maxBxWindow
Definition: RBCProcessRPCSimDigis.h:85
RBCProcessRPCSimDigis::m_linkItr
edm::DetSetVector< RPCDigiSimLink >::const_iterator m_linkItr
Definition: RBCProcessRPCSimDigis.h:75
RBCProcessRPCSimDigis::~RBCProcessRPCSimDigis
~RBCProcessRPCSimDigis() override
Destructor.
Definition: RBCProcessRPCSimDigis.cc:30
RBCProcessRPCSimDigis
Definition: RBCProcessRPCSimDigis.h:40
RBCProcessRPCSimDigis::m_lbin
std::unique_ptr< RPCInputSignal > m_lbin
Definition: RBCProcessRPCSimDigis.h:78
RBCProcessRPCSimDigis::RBCProcessRPCSimDigis
RBCProcessRPCSimDigis()
Standard constructor.
MuonGeometryRecord.h
RPCInputSignal.h
RPCGeometry.h
edm::DetSet::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSet.h:31