|
|
#include <RPCDigiValid.h>
Definition at line 20 of file RPCDigiValid.h.
◆ RPCDigiValid()
◆ ~RPCDigiValid()
RPCDigiValid::~RPCDigiValid |
( |
| ) |
|
|
override |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 34 of file RPCDigiValid.cc.
44 PSimHitContainer::const_iterator simIt;
47 std::map<RPCDetId, std::vector<double>> allsims;
49 for (simIt =
simHit->begin(); simIt !=
simHit->end(); simIt++) {
51 const RPCRoll *soll = dynamic_cast<const RPCRoll *>(rpcGeom->roll(Rsid));
52 int ptype = simIt->particleType();
55 std::vector<double> buff;
56 if (allsims.find(Rsid) != allsims.end()) {
60 buff.push_back(simIt->localPosition().x());
71 if (Rsid.
region() == (+1)) {
75 }
else if (Rsid.
region() == (-1)) {
84 for (detUnitIt = rpcDigis->begin(); detUnitIt != rpcDigis->end(); ++detUnitIt) {
85 const RPCDetId Rsid = (*detUnitIt).first;
86 const RPCRoll *roll = dynamic_cast<const RPCRoll *>(rpcGeom->roll(Rsid));
89 std::vector<double> sims;
90 if (allsims.find(Rsid) != allsims.end()) {
99 if (Rsid.
region() == (+1)) {
102 }
else if (Rsid.
region() == (-1)) {
108 const double digiTime = digiIt->hasTime() ? digiIt->time() : digiIt->bx() * 25;
110 if (digiIt->hasTime()) {
119 if (sims.size() == 1 && ndigi == 1) {
124 if (Rsid.
ring() == -2)
126 else if (Rsid.
ring() == -1)
128 else if (Rsid.
ring() == 0)
130 else if (Rsid.
ring() == 1)
132 else if (Rsid.
ring() == 2)
150 if (Rsid.
ring() == 2) {
152 if (Rsid.
roll() == 1)
154 if (Rsid.
roll() == 2)
156 if (Rsid.
roll() == 3)
160 if (Rsid.
roll() == 1)
162 if (Rsid.
roll() == 2)
164 if (Rsid.
roll() == 3)
168 if (Rsid.
ring() == 3) {
169 if (Rsid.
roll() == 1)
171 if (Rsid.
roll() == 2)
173 if (Rsid.
roll() == 3)
178 if (Rsid.
region() == (+1)) {
188 if (Rsid.
region() == (-1)) {
References funct::abs(), RPCRoll::centreOfStrip(), edm::EventSetup::getHandle(), RPCRoll::isIRPC(), RPCDetId::layer(), AlCaHLTBitMon_ParallelJobs::p, OfflineHarvestingSequence_cosmic::ptype, FastTimerService_cff::range, RPCDetId::region(), RPCDetId::ring(), RPCDetId::roll(), rpcPointValidation_cfi::simHit, SiPixelPhase1TrackingParticleV_cfi::simHitToken, RPCDetId::station(), and GeomDet::toGlobal().
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 202 of file RPCDigiValid.cc.
205 xyview = booker.
book2D(
"X_Vs_Y_View",
"X_Vs_Y_View", 155, -775., 775., 155, -775., 775.);
207 xyvDplu4 = booker.
book2D(
"Dplu4_XvsY",
"Dplu4_XvsY", 155, -775., 775., 155, -775., 775.);
208 xyvDmin4 = booker.
book2D(
"Dmin4_XvsY",
"Dmin4_XvsY", 155, -775., 775., 155, -775., 775.);
210 rzview = booker.
book2D(
"R_Vs_Z_View",
"R_Vs_Z_View", 216, -1080., 1080., 52, 260., 780.);
211 Res = booker.
book1D(
"Digi_SimHit_difference",
"Digi_SimHit_difference", 300, -8, 8);
212 ResWmin2 = booker.
book1D(
"W_Min2_Residuals",
"W_Min2_Residuals", 400, -8, 8);
213 ResWmin1 = booker.
book1D(
"W_Min1_Residuals",
"W_Min1_Residuals", 400, -8, 8);
214 ResWzer0 = booker.
book1D(
"W_Zer0_Residuals",
"W_Zer0_Residuals", 400, -8, 8);
215 ResWplu1 = booker.
book1D(
"W_Plu1_Residuals",
"W_Plu1_Residuals", 400, -8, 8);
216 ResWplu2 = booker.
book1D(
"W_Plu2_Residuals",
"W_Plu2_Residuals", 400, -8, 8);
225 BxDist = booker.
book1D(
"Bunch_Crossing",
"Bunch_Crossing", 20, -10., 10.);
226 StripProf = booker.
book1D(
"Strip_Profile",
"Strip_Profile", 100, 0, 100);
232 ResDmin1 = booker.
book1D(
"Disk_Min1_Residuals",
"Disk_Min1_Residuals", 400, -8, 8);
233 ResDmin2 = booker.
book1D(
"Disk_Min2_Residuals",
"Disk_Min2_Residuals", 400, -8, 8);
234 ResDmin3 = booker.
book1D(
"Disk_Min3_Residuals",
"Disk_Min3_Residuals", 400, -8, 8);
235 ResDplu1 = booker.
book1D(
"Disk_Plu1_Residuals",
"Disk_Plu1_Residuals", 400, -8, 8);
236 ResDplu2 = booker.
book1D(
"Disk_Plu2_Residuals",
"Disk_Plu2_Residuals", 400, -8, 8);
237 ResDplu3 = booker.
book1D(
"Disk_Plu3_Residuals",
"Disk_Plu3_Residuals", 400, -8, 8);
239 ResDmin4 = booker.
book1D(
"Disk_Min4_Residuals",
"Disk_Min4_Residuals", 400, -8, 8);
240 ResDplu4 = booker.
book1D(
"Disk_Plu4_Residuals",
"Disk_Plu4_Residuals", 400, -8, 8);
256 booker.
book1D(
"DigiTimeAll",
"Digi time including present electronics;Digi time (ns)", 100, -12.5, 12.5);
257 hDigiTime = booker.
book1D(
"DigiTime",
"Digi time only with timing information;Digi time (ns)", 100, -12.5, 12.5);
258 hDigiTimeIRPC = booker.
book1D(
"DigiTimeIRPC",
"IRPC Digi time;Digi time (ns)", 100, -12.5, 12.5);
259 hDigiTimeNoIRPC = booker.
book1D(
"DigiTimeNoIRPC",
"non-IRPC Digi time;Digi time (ns)", 100, -12.5, 12.5);
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), and dqm::implementation::NavigatorBase::setCurrentFolder().
◆ BxDisc_4Min
◆ BxDisc_4Plus
◆ BxDist
◆ digiLabel
std::string RPCDigiValid::digiLabel |
|
private |
◆ hDigiTime
◆ hDigiTimeAll
◆ hDigiTimeIRPC
◆ hDigiTimeNoIRPC
◆ outputFile_
std::string RPCDigiValid::outputFile_ |
|
private |
◆ Res
◆ Res_Endcap123_Ring3_A
◆ Res_Endcap123_Ring3_B
◆ Res_Endcap123_Ring3_C
◆ Res_Endcap1_Ring2_A
◆ Res_Endcap1_Ring2_B
◆ Res_Endcap1_Ring2_C
◆ Res_Endcap23_Ring2_A
◆ Res_Endcap23_Ring2_B
◆ Res_Endcap23_Ring2_C
◆ ResDmin1
◆ ResDmin2
◆ ResDmin3
◆ ResDmin4
◆ ResDplu1
◆ ResDplu2
◆ ResDplu3
◆ ResDplu4
◆ ResLayer1_barrel
◆ ResLayer2_barrel
◆ ResLayer3_barrel
◆ ResLayer4_barrel
◆ ResLayer5_barrel
◆ ResLayer6_barrel
◆ ResWmin1
◆ ResWmin2
◆ ResWplu1
◆ ResWplu2
◆ ResWzer0
◆ rpcDigiToken
◆ rpcGeomToken_
◆ rzview
◆ simHitToken
◆ StripProf
◆ xyvDmin4
◆ xyvDplu4
◆ xyview
MonitorElement * Res_Endcap123_Ring3_B
MonitorElement * ResWmin2
MonitorElement * ResDmin1
MonitorElement * ResLayer4_barrel
MonitorElement * Res_Endcap123_Ring3_C
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
MonitorElement * Res_Endcap23_Ring2_B
MonitorElement * ResLayer1_barrel
MonitorElement * Res_Endcap1_Ring2_C
MonitorElement * ResLayer5_barrel
MonitorElement * Res_Endcap23_Ring2_C
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * ResDplu4
MonitorElement * ResDplu3
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * ResWplu1
std::vector< RPCDigi >::const_iterator const_iterator
MonitorElement * hDigiTimeNoIRPC
MonitorElement * Res_Endcap1_Ring2_A
MonitorElement * ResDplu1
MonitorElement * xyvDplu4
MonitorElement * hDigiTime
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 * ResDmin2
MonitorElement * BxDisc_4Plus
MonitorElement * ResWplu2
edm::EDGetTokenT< edm::PSimHitContainer > simHitToken
MonitorElement * BxDisc_4Min
MonitorElement * StripProf
MonitorElement * ResLayer3_barrel
MonitorElement * xyvDmin4
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * ResDplu2
MonitorElement * ResWzer0
std::pair< const_iterator, const_iterator > Range
MonitorElement * hDigiTimeIRPC
MonitorElement * Res_Endcap1_Ring2_B
MonitorElement * ResDmin3
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Abs< T >::type abs(const T &t)
MonitorElement * ResWmin1
MonitorElement * ResLayer2_barrel
MonitorElement * hDigiTimeAll
edm::EDGetTokenT< RPCDigiCollection > rpcDigiToken
MonitorElement * Res_Endcap123_Ring3_A
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * Res_Endcap23_Ring2_A
MonitorElement * ResDmin4
MonitorElement * ResLayer6_barrel