ATLAS Offline Software
MuonSegmentSlimPlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONHISTUTILS_MUONSEGMENTSLIMPLOTS_H
6 #define MUONHISTUTILS_MUONSEGMENTSLIMPLOTS_H
7 
9 
10 #include "xAODMuon/MuonSegment.h"
13 #include <vector>
14 #include <string>
15 
16 namespace Muon{
17 
19  public:
20  MuonSegmentSlimPlots(PlotBase* pParent, const std::string& sDir);
22 
23  void fill(const xAOD::MuonSegment& muonSeg, float weight=1.0);
24 
25  TH1* segmentfitChi2{nullptr};
26  TH1* segmentfitNdof{nullptr};
27  TH1* segmentfitChi2oNdof{nullptr};
28 
29  TH1* t0{nullptr};
30  TH1* t0_top{nullptr};
31  TH1* t0_bottom{nullptr};
32  TH1* t0err{nullptr};
33  TH1* t0err_top{nullptr};
34  TH1* t0err_bottom{nullptr};
35 
36  TH1* nPrecisionHits{nullptr};
37  TH1* nPhiLayers{nullptr};
38  TH1* nTrigEtaLayers{nullptr};
39 
40  TH1* etaIndex{nullptr};
41  TH1* sector{nullptr};
42  TH1* etadir{nullptr};
43  TH1* etadir_barrel{nullptr};
44  TH1* etadir_endcap{nullptr};
45  TH1* phidir{nullptr};
46  TH2* etaphidir{nullptr};
47 
48  TH1* chamberIndex{nullptr};
49  TH2* chamberIndex_perSector{nullptr};
53 
54  static constexpr std::array<float,17> Chamberarea {0.465313, 0.589744, 0.393503, 0.516815, 0.404094,
55  0.588759, 0.0700091, 0.204258, 0.50283, 0.577781,
56  0.902194, 0.484968, 0.746214, 0.111742, 0.192025,
57  0.380506, 0.380506};//eta * phi for each chamber
58  static constexpr std::array<float,17> Chamberexpectedhits {8.0, 8.0, 6.0, 6.0, 6.0, 6.0, 4.0,
59  8.0, 8.0, 6.0, 6.0, 6.0, 6.0, 6.0, 6.0, 4.0, 4.0};//number of expected hits for each chamber
60  // BIS, BIL, BMS, BML, BOS, BOL, BEE, EIS, EIL, EMS, EML, EOS, EOL, EES, EEL, CSS, CSL
61  // 5 and 3 are sacled down from 6 and 4 based on Z MC; could be wrong
62  static constexpr std::array<float,17> Chamberexpectedtrighits {1.0, 1.0, 5.0, 5.0, 3.0, 3.0, 1.0,
63  2.0, 2.0, 7.0, 7.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0};//number of expected hits for each chamber
64 
65 
66 };
67 }
68 
69 #endif
Muon::MuonSegmentSlimPlots::segmentfitChi2
TH1 * segmentfitChi2
Definition: MuonSegmentSlimPlots.h:25
Muon::MuonSegmentSlimPlots::t0_bottom
TH1 * t0_bottom
Definition: MuonSegmentSlimPlots.h:31
PlotBase
Definition: PlotBase.h:34
Muon::MuonSegmentSlimPlots::MuonSegmentSlimPlots
MuonSegmentSlimPlots(PlotBase *pParent, const std::string &sDir)
Definition: MuonSegmentSlimPlots.cxx:12
Muon::MuonSegmentSlimPlots::chamberIndex_perSector
TH2 * chamberIndex_perSector
Definition: MuonSegmentSlimPlots.h:49
Muon::MuonSegmentSlimPlots::segmentfitNdof
TH1 * segmentfitNdof
Definition: MuonSegmentSlimPlots.h:26
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Muon::MuonSegmentSlimPlots::etadir_barrel
TH1 * etadir_barrel
Definition: MuonSegmentSlimPlots.h:43
Muon::MuonSegmentSlimPlots::etadir_endcap
TH1 * etadir_endcap
Definition: MuonSegmentSlimPlots.h:44
Muon::MuonSegmentSlimPlots::chamberIndex
TH1 * chamberIndex
Definition: MuonSegmentSlimPlots.h:48
Muon::MuonSegmentSlimPlots::etadir
TH1 * etadir
Definition: MuonSegmentSlimPlots.h:42
MuonSegment.h
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::MuonSegmentSlimPlots::Chamberexpectedtrighits
static constexpr std::array< float, 17 > Chamberexpectedtrighits
Definition: MuonSegmentSlimPlots.h:62
Muon::MuonSegmentSlimPlots::nTrigEtaLayers
TH1 * nTrigEtaLayers
Definition: MuonSegmentSlimPlots.h:38
Muon::MuonSegmentSlimPlots::segmentfitChi2oNdof
TH1 * segmentfitChi2oNdof
Definition: MuonSegmentSlimPlots.h:27
MuonSegmentContainer.h
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
Muon::MuonSegmentSlimPlots::eff_chamberIndex_perSector_numerator
TH2 * eff_chamberIndex_perSector_numerator
Definition: MuonSegmentSlimPlots.h:50
Muon::MuonSegmentSlimPlots::t0_top
TH1 * t0_top
Definition: MuonSegmentSlimPlots.h:30
Muon::MuonSegmentSlimPlots::nPrecisionHits
TH1 * nPrecisionHits
Definition: MuonSegmentSlimPlots.h:36
Muon::MuonSegmentSlimPlots::eff_chamberIndex_perSector
TH2 * eff_chamberIndex_perSector
Definition: MuonSegmentSlimPlots.h:52
Muon::MuonSegmentSlimPlots::Chamberarea
static constexpr std::array< float, 17 > Chamberarea
Definition: MuonSegmentSlimPlots.h:54
Muon::MuonSegmentSlimPlots::nPhiLayers
TH1 * nPhiLayers
Definition: MuonSegmentSlimPlots.h:37
Muon::MuonSegmentSlimPlots::~MuonSegmentSlimPlots
~MuonSegmentSlimPlots()
Definition: MuonSegmentSlimPlots.cxx:55
Muon::MuonSegmentSlimPlots::t0
TH1 * t0
Definition: MuonSegmentSlimPlots.h:29
Muon::MuonSegmentSlimPlots::sector
TH1 * sector
Definition: MuonSegmentSlimPlots.h:41
Muon::MuonSegmentSlimPlots
Definition: MuonSegmentSlimPlots.h:18
Muon::MuonSegmentSlimPlots::t0err_bottom
TH1 * t0err_bottom
Definition: MuonSegmentSlimPlots.h:34
Muon::MuonSegmentSlimPlots::t0err_top
TH1 * t0err_top
Definition: MuonSegmentSlimPlots.h:33
Muon::MuonSegmentSlimPlots::phidir
TH1 * phidir
Definition: MuonSegmentSlimPlots.h:45
Muon::MuonSegmentSlimPlots::eff_chamberIndex_perSector_denominator
TH2 * eff_chamberIndex_perSector_denominator
Definition: MuonSegmentSlimPlots.h:51
Muon::MuonSegmentSlimPlots::Chamberexpectedhits
static constexpr std::array< float, 17 > Chamberexpectedhits
Definition: MuonSegmentSlimPlots.h:58
Muon::MuonSegmentSlimPlots::etaIndex
TH1 * etaIndex
Definition: MuonSegmentSlimPlots.h:40
Muon::MuonSegmentSlimPlots::fill
void fill(const xAOD::MuonSegment &muonSeg, float weight=1.0)
Definition: MuonSegmentSlimPlots.cxx:59
PlotBase.h
Muon::MuonSegmentSlimPlots::t0err
TH1 * t0err
Definition: MuonSegmentSlimPlots.h:32
TrackParticleContainer.h
Muon::MuonSegmentSlimPlots::etaphidir
TH2 * etaphidir
Definition: MuonSegmentSlimPlots.h:46