13 nPrecisionHits(this,
"diff_nPrecisionHits",
"diff(reco-truth) segment precision hits;hits;Entries",-5,5),
14 nPhiLayers(this,
"diff_nPhiLayers",
"diff(reco-truth) segment phi layers;#phi layers;Entries",-5,5),
15 nTrigEtaLayers(this,
"diff_nTrigEtaLayers",
"diff(reco-truth) segment eta trigger layers;#eta trigger layers;Entries",-5,5)
18 dxpos =
Book1D(
"dxpos",
"Resolution x-position;#Delta x_{pos};Entries",400,-14000,14000);
19 dypos =
Book1D(
"dypos",
"Resolution y-position;#Delta y_{pos};Entries",400,-14000,14000);
20 dzpos =
Book1D(
"dzpos",
"Resolution z-position;#Delta z_{pos};Entries",500,-22000,22000);
22 detapos =
Book1D(
"detapos",
"Resolution eta-position;#Delta#eta_{pos};Entries",64,-3.2,3.2);
23 dphipos =
Book1D(
"dphipos",
"Resolution phi-position;#Delta#phi_{pos};Entries",64,-3.2,3.2);
25 detadir =
Book1D(
"detadir",
"Resolution eta-direction;#Delta#eta_{dir};Entries",100,-10.,10.);
26 dphidir =
Book1D(
"dphidir",
"Resolution phi-direction;#Delta#phi_{dir};Entries",100,-10.,10.);
44 if (globalPos.mag()) {
46 muSegEta = globalPos.eta();
47 muSegPhi = globalPos.phi();
58 if (globalPos.mag() < DBL_EPSILON || truthGlobalPos.mag() < DBL_EPSILON )
return;
60 dxpos->Fill(muSeg.
x()-truthMuSeg.
x(), weight);
61 dypos->Fill(muSeg.
y()-truthMuSeg.
y(), weight);
62 dzpos->Fill(muSeg.
z()-truthMuSeg.
z(), weight);
64 detapos->Fill(globalPos.eta()-truthGlobalPos.eta(), weight);
65 dphipos->Fill(globalPos.deltaPhi(truthGlobalPos), weight);
70 dphidir->Fill(globalDir.deltaPhi(truthGlobalDir),weight);
71 detadir->Fill(globalDir.eta()-truthGlobalDir.eta(),weight);
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
float y() const
Returns the x position.
float pz() const
Returns the pz.
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
int nPrecisionHits() const
float py() const
Returns the py.
int nPhiLayers() const
Returns the number of phi layers.
float z() const
Returns the y position.
Eigen::Matrix< double, 3, 1 > Vector3D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
MuonSegment_v1 MuonSegment
Reference the current persistent version: