Implements edm::EDAnalyzer.
Definition at line 50 of file RPCDigiValid.cc.
References BxDist, RPCRoll::centreOfStrip(), digiLabel, MonitorElement::Fill(), edm::EventSetup::get(), L1TEmulatorMonitor_cff::p, PV3DBase< T, PVType, FrameType >::perp(), RPCDetId::region(), Res, ResWmin1, ResWmin2, ResWplu1, ResWplu2, ResWzer0, RPCDetId::ring(), RPCDetId, rzview, StripProf, GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), ExpressReco_HICollisions_FallBack::x, xyview, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
60 event.getByLabel(
"g4SimHits",
"MuonRPCHits", simHit);
66 PSimHitContainer::const_iterator simIt;
69 std::map<RPCDetId, std::vector<double> > allsims;
71 for (simIt = simHit->begin(); simIt != simHit->end(); simIt++) {
73 const RPCRoll* soll =
dynamic_cast<const RPCRoll*
>( rpcGeom->roll(Rsid));
74 int ptype = simIt->particleType();
77 if (ptype == 13 || ptype == -13) {
78 std::vector<double> buff;
79 if (allsims.find(Rsid) != allsims.end() ){
82 buff.push_back(simIt->localPosition().x());
97 for (detUnitIt=rpcDigis->begin(); detUnitIt!=rpcDigis->end();++detUnitIt){
98 const RPCDetId Rsid = (*detUnitIt).first;
99 const RPCRoll* roll =
dynamic_cast<const RPCRoll*
>( rpcGeom->roll(Rsid));
101 std::vector<double> sims;
102 if (allsims.find(Rsid) != allsims.end() ){
103 sims = allsims[Rsid];
107 digiIt != range.second; ++digiIt){
116 if (sims.size() == 1 && ndigi == 1){
117 double dis = roll->
centreOfStrip(range.first->strip()).
x()-sims[0];
121 if (Rsid.
ring() == -2)
123 else if (Rsid.
ring() == -1)
125 else if (Rsid.
ring() == 0)
127 else if (Rsid.
ring() == 1)
129 else if (Rsid.
ring() == 2)
LocalPoint centreOfStrip(int strip) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MonitorElement * ResWplu2
MonitorElement * StripProf
MonitorElement * ResWzer0
MonitorElement * ResWmin1
MonitorElement * ResWplu1
MonitorElement * ResWmin2
std::vector< DigiType >::const_iterator const_iterator
std::pair< const_iterator, const_iterator > Range
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.