45 PSimHitContainer::const_iterator simIt;
48 std::map<RPCDetId, std::vector<double>> allsims;
50 for (simIt = simHit->begin(); simIt != simHit->end(); simIt++) {
53 int ptype = simIt->particleType();
55 if (ptype == 13 || ptype == -13) {
56 std::vector<double> buff;
57 if (allsims.find(Rsid) != allsims.end()) {
61 buff.push_back(simIt->localPosition().x());
72 if (Rsid.
region() == (+1)) {
76 }
else if (Rsid.
region() == (-1)) {
85 for (detUnitIt = rpcDigis->begin(); detUnitIt != rpcDigis->end(); ++detUnitIt) {
86 const RPCDetId Rsid = (*detUnitIt).first;
90 std::vector<double> sims;
91 if (allsims.find(Rsid) != allsims.end()) {
100 if (Rsid.
region() == (+1)) {
103 }
else if (Rsid.
region() == (-1)) {
109 const double digiTime = digiIt->hasTime() ? digiIt->time() : digiIt->bx() * 25;
111 if (digiIt->hasTime()) {
120 if (sims.size() == 1 && ndigi == 1) {
121 double dis = roll->
centreOfStrip(range.first->strip()).
x() - sims[0];
125 if (Rsid.
ring() == -2)
127 else if (Rsid.
ring() == -1)
129 else if (Rsid.
ring() == 0)
131 else if (Rsid.
ring() == 1)
133 else if (Rsid.
ring() == 2)
151 if (Rsid.
ring() == 2) {
153 if (Rsid.
roll() == 1)
155 if (Rsid.
roll() == 2)
157 if (Rsid.
roll() == 3)
161 if (Rsid.
roll() == 1)
163 if (Rsid.
roll() == 2)
165 if (Rsid.
roll() == 3)
169 if (Rsid.
ring() == 3) {
170 if (Rsid.
roll() == 1)
172 if (Rsid.
roll() == 2)
174 if (Rsid.
roll() == 3)
179 if (Rsid.
region() == (+1)) {
189 if (Rsid.
region() == (-1)) {
MonitorElement * hDigiTime
LocalPoint centreOfStrip(int strip) const
MonitorElement * ResLayer6_barrel
MonitorElement * Res_Endcap1_Ring2_A
MonitorElement * Res_Endcap123_Ring3_A
MonitorElement * ResLayer3_barrel
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MonitorElement * ResWplu2
MonitorElement * BxDisc_4Min
MonitorElement * StripProf
MonitorElement * ResWzer0
MonitorElement * ResDmin3
MonitorElement * ResLayer5_barrel
MonitorElement * ResWmin1
MonitorElement * ResLayer2_barrel
MonitorElement * hDigiTimeIRPC
MonitorElement * ResDplu4
MonitorElement * ResDplu3
MonitorElement * ResDmin1
MonitorElement * ResWplu1
MonitorElement * Res_Endcap123_Ring3_C
MonitorElement * BxDisc_4Plus
MonitorElement * hDigiTimeNoIRPC
Abs< T >::type abs(const T &t)
MonitorElement * Res_Endcap123_Ring3_B
MonitorElement * ResWmin2
MonitorElement * xyvDmin4
MonitorElement * ResDplu2
MonitorElement * Res_Endcap23_Ring2_C
MonitorElement * ResLayer1_barrel
MonitorElement * Res_Endcap1_Ring2_B
MonitorElement * ResDmin2
std::vector< RPCDigi >::const_iterator const_iterator
edm::EDGetTokenT< RPCDigiCollection > rpcDigiToken
MonitorElement * hDigiTimeAll
MonitorElement * Res_Endcap23_Ring2_A
MonitorElement * ResDmin4
MonitorElement * ResLayer4_barrel
std::pair< const_iterator, const_iterator > Range
MonitorElement * ResDplu1
edm::EDGetTokenT< edm::PSimHitContainer > simHitToken
MonitorElement * Res_Endcap23_Ring2_B
MonitorElement * xyvDplu4
MonitorElement * Res_Endcap1_Ring2_C
const RPCRoll * roll(RPCDetId id) const
Return a roll given its id.
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.