13 PlotBase* pParent,
const std::string& sDir)
16 "diff(reco-truth) segment precision hits;hits;Entries", -5,
19 "diff(reco-truth) segment phi layers;#phi layers;Entries", -5,
22 "diff(reco-truth) segment eta trigger layers;#eta trigger "
26 dxpos =
Book1D(
"dxpos",
"Resolution x-position;#Delta x_{pos};Entries", 400,
28 dypos =
Book1D(
"dypos",
"Resolution y-position;#Delta y_{pos};Entries", 400,
30 dzpos =
Book1D(
"dzpos",
"Resolution z-position;#Delta z_{pos};Entries", 500,
34 Book1D(
"detapos",
"Resolution eta-position;#Delta#eta_{pos};Entries",
37 Book1D(
"dphipos",
"Resolution phi-position;#Delta#phi_{pos};Entries",
41 Book1D(
"detadir",
"Resolution eta-direction;#Delta#eta_{dir};Entries",
44 Book1D(
"dphidir",
"Resolution phi-direction;#Delta#phi_{dir};Entries",
62 if (globalPos.mag()) {
64 muSegEta = globalPos.eta();
65 muSegPhi = globalPos.phi();
78 if (globalPos.mag() < DBL_EPSILON || truthGlobalPos.mag() < DBL_EPSILON) {
82 dxpos->Fill(muSeg.
x() - truthMuSeg.
x(), weight);
83 dypos->Fill(muSeg.
y() - truthMuSeg.
y(), weight);
84 dzpos->Fill(muSeg.
z() - truthMuSeg.
z(), weight);
86 detapos->Fill(globalPos.eta() - truthGlobalPos.eta(), weight);
87 dphipos->Fill(globalPos.deltaPhi(truthGlobalPos), weight);
93 dphidir->Fill(globalDir.deltaPhi(truthGlobalDir), weight);
94 detadir->Fill(globalDir.eta() - truthGlobalDir.eta(), weight);
TH1D * Book1D(std::string_view name, std::string_view labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, std::string_view sDir)
float y() const
Returns the x position.
std::uint8_t nTrigEtaLayers() const
Returns the number of trigger eta hits.
float pz() const
Returns the pz.
std::uint8_t nPrecisionHits() const
Returns the number of precision hits.
float py() const
Returns the py.
std::uint8_t nPhiLayers() const
Returns the number of trigger phi hits.
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: