ATLAS Offline Software
Loading...
Searching...
No Matches
MuonInsideOutAnalysisPlots.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUON_MUONINSIDEOUTANALYSISPLOTS_H
6#define MUON_MUONINSIDEOUTANALYSISPLOTS_H
7
9#include "TString.h"
10
11class TH1;
12class TH2;
13class TDirectory;
14
15namespace Muon {
16
18 struct ResPlots {
19 TH1* res;
20 TH1* pull;
21 TH1* exerr;
22
23 void book( const TString& prefix );
24 void fill( float res_, float pull_, float exerr_ );
25 };
26
28 struct ResPlotsPt {
29 TH2* res_p;
30 TH2* pull_p;
31 TH2* exerr_p;
32
33 void book( const TString& prefix );
34 void fill( float res_, float pull_, float exerr_, float pt );
35 };
36
39
40 std::vector<ResPlots> plots;
41 std::vector<ResPlotsPt> plots_p;
42
43 void book( TDirectory* dir, const TString& prefix );
44 void fill( int chIndex_, float res_, float pull_, float exerr_, float p_ );
45
46 };
47
49 struct HitPlots {
53
54 void book( TDirectory* dir, const TString& prefix );
55
56 void fill( const MuonValidationHitBlock& hits, int index, float p_ );
57
58 void fill( int chIndex_, float res_, float pull_, float exerr_, float p_ );
59 };
60
62 struct TimePlots {
64 TH1* time;
65 TH1* error;
66 TH1* timeRes;
68 TH1* beta;
69 TH1* betaRes;
75
77 TH1* errorRT;
87
93
94 void book( TDirectory* dir, const TString& prefix, int type );
95
96 void fill( const MuonValidationTimeBlock& times, int index, float betaTrack );
97 };
98
100 struct HoughPlots {
101 TH1* max;
103
106
107 void book( TDirectory* dir, const TString& prefix );
108 void fill( const MuonValidationHoughBlock& hough, int index, float p_ );
109 void fill( int chIndex_, float res_, float pull_, float exerr_, float p_, float max_ );
110
111 };
112
115 TH1* t0;
116 TH1* t0Trig;
117 TH1* beta;
118 TH2* beta2;
120 TH1* t0Res;
127
130
133
136
139
142
143 void book( TDirectory* dir, const TString& prefix );
144 void fill( int chIndex_, int sector_, int quality_ );
145 void fill( const MuonValidationSegmentBlock& segments, int index, float p_, float betaTrack );
146
147 };
148
149
152 TH1* beta;
154 TH1* ndof;
155 TH1* res;
156
157 void book( TDirectory* dir, const TString& prefix );
158 void fill( float beta_, float betaTruth_, float chi2_, int ndof_ );
159 };
160
172
175 TH1* pt;
176 TH1* eta;
177 TH1* phi;
178 TH1* beta;
179 TH1* nseg;
180
183
184 void book( TDirectory* dir, const TString& prefix );
185 void fill( int ntruth_, int nseg_, int nseg1_, int nhough_ );
186 void fill( const MuonValidationTrackParticleBlock& tracks, int index );
187
188 };
189
203
205 struct TrackPlots {
206 TH1* pt;
207 TH1* eta;
208 TH1* phi;
209 TH1* beta;
210 TH1* pdg;
211 TH1* ntruth;
212 TH1* nseg;
213 TH1* nseg1;
214 TH1* nseg2;
215 TH1* nseg3;
216 TH1* nhough;
220
227
228 std::vector<TimePlots> timePlots;
229 // get the plot for a given index
230 TimePlots* getTimePlots( int typeIndex ) {
231 for( auto& plot : timePlots ){
232 if( plot.typeIndex == typeIndex ) return &plot;
233 }
234 return nullptr;
235 }
236
239
240 std::vector<StageSummaryPlots> candidateStages;
241
242 void book( TDirectory* dir, const TString& prefix );
243 void fill( int ntruth_, int nseg_, int nseg1_, int nseg2_, int nseg3_, int nhough_ );
244 void fill( const MuonValidationTrackParticleBlock& tracks, int index );
245 };
246
251 void book( TDirectory* dir, const TString& prefix );
252 };
253
254}
255
256#endif
bool isBarrel(const ChIndex index)
Returns true if the chamber index points to a barrel chamber.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition index.py:1
void fill(float beta_, float betaTruth_, float chi2_, int ndof_)
void book(TDirectory *dir, const TString &prefix)
void book(TDirectory *dir, const TString &prefix, bool isBarrel)
void book(TDirectory *dir, const TString &prefix)
candidate based plots
void fill(int ntruth_, int nseg_, int nseg1_, int nhough_)
residual plots per chamber index
std::vector< ResPlotsPt > plots_p
std::vector< ResPlots > plots
void fill(int chIndex_, float res_, float pull_, float exerr_, float p_)
void book(TDirectory *dir, const TString &prefix)
void fill(const MuonValidationHitBlock &hits, int index, float p_)
void book(TDirectory *dir, const TString &prefix)
void fill(const MuonValidationHoughBlock &hough, int index, float p_)
void book(TDirectory *dir, const TString &prefix)
void book(TDirectory *dir, const TString &prefix)
Block with hough maxima information.
Block with information on the incoming track particle.
void book(const TString &prefix)
void fill(float res_, float pull_, float exerr_, float pt)
void fill(float res_, float pull_, float exerr_)
void book(const TString &prefix)
void fill(int chIndex_, int sector_, int quality_)
void book(TDirectory *dir, const TString &prefix)
void book(TDirectory *dir, const TString &prefix)
candidates based plots
void book(TDirectory *dir, const TString &prefix, int type)
void fill(const MuonValidationTimeBlock &times, int index, float betaTrack)
void fill(int ntruth_, int nseg_, int nseg1_, int nseg2_, int nseg3_, int nhough_)
std::vector< StageSummaryPlots > candidateStages
void book(TDirectory *dir, const TString &prefix)
TimePlots * getTimePlots(int typeIndex)
std::vector< TimePlots > timePlots