14constexpr int chIdxMax =
static_cast<int>(ChIdx::ChIndexMax);
17 const std::string& sDir)
22 "segmentfitChi2",
"Segment fit #chi^{2};#chi^{2};Entries", 100, 0, 200);
24 "Segment fit N_{dof};N_{dof};Entries", 100, 0, 20);
26 "segmentfitChi2oNdof",
27 "Segment fit #chi^{2}/N_{dof};Segment fit #chi^{2}/N_{dof};Entries",
30 t0 =
Book1D(
"t0",
"Segment Refit t_{0};t_{0};Entries", 100, -25, 25);
31 t0_top =
Book1D(
"t0_top",
"Segment Refit t_{0} for y>0;t_{0};Entries", 100,
33 t0_bottom =
Book1D(
"t0_bottom",
"Segment Refit t_{0} for y<0;t_{0};Entries",
35 t0err =
Book1D(
"t0err",
"Segment Refit t_{0} error;t_{0} error;Entries",
38 "Segment Refit t_{0} error for y>0;t_{0} error;Entries",
41 "t0err_bottom",
"Segment Refit t_{0} error for y<0;t_{0} error;Entries",
45 "Segment precision hits;hits;Entries", 20, 0, 20);
50 "Segment eta trigger layers;#eta trigger layers;Entries", 10, 0, 10);
52 etaIndex =
Book1D(
"etaIndex",
"Segment #eta Index ;#eta index;Entries", 21,
54 sector =
Book1D(
"sector",
"Segment phi sector;#phi sector;Entries", 16, 0.5,
58 Book1D(
"etadir",
"Segment pointing direction eta;#eta_{dir};Entries",
62 "Segment pointing direction eta, barrel;#eta_{dir};Entries", 100,
66 "Segment pointing direction eta, endcap;#eta_{dir};Entries", 100,
69 Book1D(
"phidir",
"Segment pointing direction phi;#phi_{dir};Entries",
73 "Segment pointing direction phi vs eta;#eta_{dir};#phi_{dir}",
74 64, -3.2, 3.2, 64, -3.2, 3.2);
79 Book2D(
"chamberIndex_perSector",
80 "Number of Segments per Chamber, normalized by solid angle; "
81 "Sector; Chamber Index ",
84 Book2D(
"eff_chamberIndex_perSector_numerator",
85 "Number of expected hits for Segments per Chamber; Sector; "
89 Book2D(
"eff_chamberIndex_perSector_denominator",
90 "Number of recorded precision hits for Segments per Chamber; "
91 "Sector; Chamber Index ",
94 "eff_chamberIndex_perSector",
95 "precision layer hit efficiency per chamber; Sector; Chamber Index ",
100 for (
int i = 1; i <=
chamberIndex->GetXaxis()->GetNbins(); i++) {
101 const char* temp_chambername =
106 chamberIndex->GetXaxis()->SetBinLabel(i, temp_chambername);
109 i, temp_chambername);
111 i, temp_chambername);
131 float segt0 = muSeg.
t0();
132 float segt0err = muSeg.
t0error();
134 t0->Fill(segt0, weight);
135 t0err->Fill(segt0err, weight);
137 t0_top->Fill(segt0, weight);
155 int sectorIndex = muSeg.
sector();
158 sectorIndex = -sectorIndex;
170 sectorIndex = muSeg.
sector();
176 if (globalDir.mag() < DBL_EPSILON) {
180 float eta = globalDir.eta();
181 float phi = globalDir.phi();
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
static constexpr std::array< float, 17 > Chamberexpectedhits
void fill(const xAOD::MuonSegment &muonSeg, float weight=1.0)
TH2 * eff_chamberIndex_perSector_denominator
static constexpr std::array< float, 17 > Chamberarea
TH1 * segmentfitChi2oNdof
TH2 * eff_chamberIndex_perSector
TH2 * chamberIndex_perSector
TH2 * eff_chamberIndex_perSector_numerator
MuonSegmentSlimPlots(PlotBase *pParent, const std::string &sDir)
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)
TH2F * Book2D(std::string_view name, std::string_view labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
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.
float numberDoF() const
Returns the numberDoF.
std::uint8_t nPrecisionHits() const
Returns the number of precision hits.
float py() const
Returns the py.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
float t0error() const
Returns the time error.
std::uint8_t nPhiLayers() const
Returns the number of trigger phi hits.
float z() const
Returns the y position.
double chi2(TH1 *h0, TH1 *h1)
Eigen::Matrix< double, 3, 1 > Vector3D
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
const std::string & chName(ChIndex index)
convert ChIndex into a string
ChIndex
enum to classify the different chamber layers in the muon spectrometer
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
MuonStationIndex::ChIndex ChIdx
MuonSegment_v1 MuonSegment
Reference the current persistent version: