14constexpr int chIdxMax =
static_cast<int>(ChIdx::ChIndexMax);
21 segmentfitChi2oNdof =
Book1D(
"segmentfitChi2oNdof",
"Segment fit #chi^{2}/N_{dof};Segment fit #chi^{2}/N_{dof};Entries", 100,0,20);
23 t0 =
Book1D(
"t0",
"Segment Refit t_{0};t_{0};Entries",100,-25,25);
24 t0_top =
Book1D(
"t0_top",
"Segment Refit t_{0} for y>0;t_{0};Entries",100,-25,25);
25 t0_bottom =
Book1D(
"t0_bottom",
"Segment Refit t_{0} for y<0;t_{0};Entries",100,-25,25);
26 t0err =
Book1D(
"t0err",
"Segment Refit t_{0} error;t_{0} error;Entries",100,0,10);
27 t0err_top =
Book1D(
"t0err_top",
"Segment Refit t_{0} error for y>0;t_{0} error;Entries",100,0,10);
28 t0err_bottom =
Book1D(
"t0err_bottom",
"Segment Refit t_{0} error for y<0;t_{0} error;Entries",100,0,10);
31 nPhiLayers =
Book1D(
"nPhiLayers",
"Segment phi layers;#phi layers;Entries",10,0,10);
32 nTrigEtaLayers =
Book1D(
"nTrigEtaLayers",
"Segment eta trigger layers;#eta trigger layers;Entries",10,0,10);
34 etaIndex =
Book1D(
"etaIndex",
"Segment #eta Index ;#eta index;Entries",21,-10.5,10.5);
35 sector =
Book1D(
"sector",
"Segment phi sector;#phi sector;Entries",16,0.5,16.5);
37 etadir =
Book1D(
"etadir",
"Segment pointing direction eta;#eta_{dir};Entries",100,-5,5);
38 etadir_barrel =
Book1D(
"etadir_barrel",
"Segment pointing direction eta, barrel;#eta_{dir};Entries",100,-5,5);
39 etadir_endcap =
Book1D(
"etadir_endcap",
"Segment pointing direction eta, endcap;#eta_{dir};Entries",100,-5,5);
40 phidir =
Book1D(
"phidir",
"Segment pointing direction phi;#phi_{dir};Entries",64,-3.2,3.2);
41 etaphidir =
Book2D(
"etaphidir",
"Segment pointing direction phi vs eta;#eta_{dir};#phi_{dir}",64,-3.2,3.2,64,-3.2,3.2);
49 for (
int i=1; i<=
chamberIndex->GetXaxis()->GetNbins(); i++){
51 chamberIndex->GetXaxis()->SetBinLabel(i, temp_chambername);
73 float segt0 = muSeg.
t0();
74 float segt0err = muSeg.
t0error();
76 t0->Fill(segt0, weight);
77 t0err->Fill(segt0err, weight);
79 t0_top->Fill(segt0, weight);
95 int sectorIndex = muSeg.
sector();
97 if (muSeg.
z() < 0) { sectorIndex = - sectorIndex;}
102 sectorIndex = muSeg.
sector();
108 if ( globalDir.mag() < DBL_EPSILON )
return;
110 float eta = globalDir.eta();
111 float phi = globalDir.phi();
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
void fill(const xAOD::MuonSegment &muonSeg, float weight=1.0)
TH2 * eff_chamberIndex_perSector_denominator
TH1 * segmentfitChi2oNdof
static constexpr std::array< float, 17 > Chamberexpectedhits
static constexpr std::array< float, 17 > Chamberarea
TH2 * eff_chamberIndex_perSector
TH2 * chamberIndex_perSector
TH2 * eff_chamberIndex_perSector_numerator
MuonSegmentSlimPlots(PlotBase *pParent, const std::string &sDir)
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)
TH2F * Book2D(const std::string &name, const std::string &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.
float pz() const
Returns the pz.
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
float numberDoF() const
Returns the numberDoF.
int nPrecisionHits() const
float py() const
Returns the py.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
int nPhiLayers() const
Returns the number of phi layers.
float t0error() const
Returns the time error.
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: