- Author
- Andres Felipe Osorio Oliveros
- Date
- 2009-09-20
Definition at line 40 of file RBCProcessRPCSimDigis.h.
int RBCProcessRPCSimDigis::next |
( |
void |
| ) |
|
|
overridevirtual |
Implements ProcessInputSignal.
Definition at line 33 of file RBCProcessRPCSimDigis.cc.
References funct::abs(), groupFilesInBlocks::block, l1GtPatternGenerator_cfi::bx, gather_cfg::cout, RPCRoll::id(), triggerObjects_cff::id, initialize(), RPCRoll::isForward(), RPCDetId::layer(), reset(), RPCDetId::ring(), RPCDetId::sector(), relativeConstraints::station, RPCDetId::station(), and makeMuonMisalignmentScenario::wheel.
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;
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;
std::map< int, std::vector< RPCData > > m_vecDataperBx
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