43 std::cout <<
"looping over digis 1 ..." << std::endl;
45 int bx = (*m_digiItr).getBx();
49 std::cout <<
"RBCProcessRPCSimDigis> found a bx bigger than max allowed: " << bx << std::endl;
53 uint32_t detid =
m_digiItr->getDetUnitId();
55 const RPCRoll* roll =
dynamic_cast<const RPCRoll*
>((*m_ptr_rpcGeom)->roll(
id));
59 std::cout <<
"RBCProcessRPCSimDigis: roll is forward" << std::endl;
63 int wheel = roll->
id().
ring();
68 int rollid =
id.roll();
70 int digipos = (station * 100) + (layer * 10) + rollid;
72 if ((wheel == -1 || wheel == 0 || wheel == 1) && station == 2 && layer == 1)
73 digipos = 30000 + digipos;
74 if ((wheel == -2 || wheel == 2) && station == 2 && layer == 2)
75 digipos = 30000 + digipos;
77 if ((wheel == -1 || wheel == 0 || wheel == 1) && station == 2 && layer == 2)
78 digipos = 20000 + digipos;
79 if ((wheel == -2 || wheel == 2) && station == 2 && layer == 1)
80 digipos = 20000 + digipos;
83 std::cout <<
"Bx: " << bx <<
'\t' <<
"Wheel: " << wheel <<
'\t' <<
"Sector: " << sector <<
'\t'
84 <<
"Station: " << station <<
'\t' <<
"Layer: " << layer <<
'\t' <<
"B-Layer: " << blayer <<
'\t'
85 <<
"Roll id: " << rollid <<
'\t' <<
"Digi at: " << digipos <<
'\n';
92 std::cout <<
"Found a new Bx: " << bx << std::endl;
95 auto&
block = wheelData[(wheel + 2)];
98 auto&
block = (*itr).second[(wheel + 2)];
103 std::cout <<
"looping over digis 2 ..." << std::endl;
120 std::cout <<
"RBCProcessRPCSimDigis: DataSize: " <<
m_data.size() <<
" ndigis " << ndigis << std::endl;
uint16_t *__restrict__ id
std::map< int, std::vector< RPCData > > m_vecDataperBx
constexpr std::array< uint8_t, layerIndexSize > layer
int getBarrelLayer(const int &, const int &)
void setDigiAt(int, int, RPCData &)
Abs< T >::type abs(const T &t)
void initialize(std::vector< RPCData > &)
iterator end()
Return the off-the-end iterator.
edm::DetSet< RPCDigiSimLink >::const_iterator m_digiItr
std::map< int, RBCInput * > m_data
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
iterator begin()
Return an iterator to the first DetSet.
edm::DetSetVector< RPCDigiSimLink >::const_iterator m_linkItr