50 PSimHitContainer::const_iterator simIt;
53 std::map<RPCDetId, std::vector<double> > allsims;
55 for (simIt = simHit->begin(); simIt != simHit->end(); simIt++)
58 const RPCRoll* soll =
dynamic_cast<const RPCRoll*
> (rpcGeom->roll(Rsid));
59 int ptype = simIt->particleType();
61 if (ptype == 13 || ptype == -13)
64 std::vector<double> buff;
65 if (allsims.find(Rsid) != allsims.end())
70 buff.push_back(simIt->localPosition().x());
88 else if (Rsid.
region() == (-1))
99 for (detUnitIt = rpcDigis->begin(); detUnitIt != rpcDigis->end(); ++detUnitIt)
101 const RPCDetId Rsid = (*detUnitIt).first;
102 const RPCRoll* roll =
dynamic_cast<const RPCRoll*
> (rpcGeom->roll(Rsid));
105 std::vector<double> sims;
106 if (allsims.find(Rsid) != allsims.end())
108 sims = allsims[Rsid];
117 if (Rsid.
region() == (+1))
122 else if (Rsid.
region() == (-1))
130 if (sims.size() == 0)
150 if (Rsid.
ring() == 2)
154 if (Rsid.
roll() == 1)
156 if (Rsid.
roll() == 2)
158 if (Rsid.
roll() == 3)
163 if (Rsid.
roll() == 1)
165 if (Rsid.
roll() == 2)
167 if (Rsid.
roll() == 3)
171 if (Rsid.
ring() == 3)
173 if (Rsid.
roll() == 1)
175 if (Rsid.
roll() == 2)
177 if (Rsid.
roll() == 3)
184 if (sims.size() == 1 && ndigi == 1)
186 double dis = roll->
centreOfStrip(range.first->strip()).
x() - sims[0];
191 if (Rsid.
ring() == -2)
193 else if (Rsid.
ring() == -1)
195 else if (Rsid.
ring() == 0)
197 else if (Rsid.
ring() == 1)
199 else if (Rsid.
ring() == 2)
218 if (Rsid.
ring() == 2)
222 if (Rsid.
roll() == 1)
224 if (Rsid.
roll() == 2)
226 if (Rsid.
roll() == 3)
231 if (Rsid.
roll() == 1)
233 if (Rsid.
roll() == 2)
235 if (Rsid.
roll() == 3)
239 if (Rsid.
ring() == 3)
241 if (Rsid.
roll() == 1)
243 if (Rsid.
roll() == 2)
245 if (Rsid.
roll() == 3)
250 if (Rsid.
region() == (+1))
262 if (Rsid.
region() == (-1))
295 xyview =
dbe_->
book2D(
"X_Vs_Y_View",
"X_Vs_Y_View", 155, -775., 775., 155, -775., 775.);
297 xyvDplu4 =
dbe_->
book2D(
"Dplu4_XvsY",
"Dplu4_XvsY", 155, -775., 775., 155, -775., 775.);
298 xyvDmin4 =
dbe_->
book2D(
"Dmin4_XvsY",
"Dmin4_XvsY", 155, -775., 775., 155, -775., 775.);
300 rzview =
dbe_->
book2D(
"R_Vs_Z_View",
"R_Vs_Z_View", 216, -1080., 1080., 52, 260., 780.);
301 Res =
dbe_->
book1D(
"Digi_SimHit_difference",
"Digi_SimHit_difference", 300, -8, 8);
MonitorElement * CLS_Endcap_1_Ring2_A
MonitorElement * CLS_Endcap_123_Ring3_A
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * CLS_Endcap_1_Ring2_B
LocalPoint centreOfStrip(int strip) const
MonitorElement * CLS_Endcap_23_Ring2_A
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * noiseCLSEndcaps
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 * CLS_Endcap_4
MonitorElement * ResWplu2
RPCDigiValid(const edm::ParameterSet &ps)
MonitorElement * BxDisc_4Min
MonitorElement * StripProf
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * ResWzer0
void beginRun(edm::Run const &, edm::EventSetup const &)
MonitorElement * ResDmin3
MonitorElement * ResLayer5_barrel
MonitorElement * ResWmin1
MonitorElement * ResLayer2_barrel
MonitorElement * ResDplu4
MonitorElement * ResDplu3
MonitorElement * ResDmin1
MonitorElement * ResWplu1
MonitorElement * Res_Endcap123_Ring3_C
MonitorElement * BxDisc_4Plus
Abs< T >::type abs(const T &t)
MonitorElement * Res_Endcap123_Ring3_B
MonitorElement * CLS_Endcap_123_Ring3_B
MonitorElement * ResWmin2
MonitorElement * xyvDmin4
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
MonitorElement * CLS_Endcap_1_Ring2_C
MonitorElement * ResDplu2
MonitorElement * Res_Endcap23_Ring2_C
MonitorElement * ResLayer1_barrel
MonitorElement * Res_Endcap1_Ring2_B
MonitorElement * noiseCLS
MonitorElement * ResDmin2
std::vector< RPCDigi >::const_iterator const_iterator
edm::EDGetTokenT< RPCDigiCollection > rpcDigiToken
MonitorElement * Res_Endcap23_Ring2_A
MonitorElement * clsBarrel
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
MonitorElement * ResDmin4
MonitorElement * ResLayer4_barrel
MonitorElement * CLS_Endcap_123_Ring3_C
std::pair< const_iterator, const_iterator > Range
MonitorElement * ResDplu1
edm::EDGetTokenT< edm::PSimHitContainer > simHitToken
void endRun(edm::Run const &, edm::EventSetup const &)
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * Res_Endcap23_Ring2_B
MonitorElement * xyvDplu4
MonitorElement * CLS_Endcap_23_Ring2_C
MonitorElement * Res_Endcap1_Ring2_C
void setCurrentFolder(const std::string &fullpath)
MonitorElement * CLS_Endcap_23_Ring2_B
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
MonitorElement * noiseCLSBarrel