ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Muon::TrackPlots Struct Reference

track based plots More...

#include <MuonInsideOutAnalysisPlots.h>

Collaboration diagram for Muon::TrackPlots:

Public Member Functions

TimePlotsgetTimePlots (int typeIndex)
 
void book (TDirectory *dir, const TString &prefix)
 
void fill (int ntruth_, int nseg_, int nseg1_, int nseg2_, int nseg3_, int nhough_)
 
void fill (const MuonValidationTrackParticleBlock &tracks, int index)
 

Public Attributes

TH1 * pt
 
TH1 * eta
 
TH1 * phi
 
TH1 * beta
 
TH1 * pdg
 
TH1 * ntruth
 
TH1 * nseg
 
TH1 * nseg1
 
TH1 * nseg2
 
TH1 * nseg3
 
TH1 * nhough
 
TH2 * ntruth_seg
 
TH2 * ntruth_seg1
 
TH2 * ntruth_hough
 
HitPlots hits
 
HoughPlots hough
 
SegmentPlots segments
 
SegmentPlots segments1
 
SegmentPlots segments2
 
SegmentPlots segments3
 
std::vector< TimePlotstimePlots
 
BetaFitRegionPlots barrel
 
BetaFitRegionPlots endcap
 
std::vector< StageSummaryPlotscandidateStages
 

Detailed Description

track based plots

Definition at line 205 of file MuonInsideOutAnalysisPlots.h.

Member Function Documentation

◆ book()

void Muon::TrackPlots::book ( TDirectory *  dir,
const TString &  prefix 
)

Definition at line 356 of file MuonInsideOutAnalysisPlots.cxx.

356  {
357  pt = new TH1F(prefix+"pt","pt",100,0,300.);
358  eta = new TH1F(prefix+"eta","eta",100,-3,3);
359  phi = new TH1F(prefix+"phi","phi",100,-3,3);
360  beta = new TH1F(prefix+"beta","beta",100,0,1);
361  pdg = new TH1F(prefix+"pdg","pdg",31,-15.5,15.5);
362  ntruth = new TH1F(prefix+"ntruth","ntruth",10,-0.5,9.5);
363  nseg = new TH1F(prefix+"nseg","nseg",10,-0.5,9.5);
364  nseg1 = new TH1F(prefix+"nseg1","nseg",10,-0.5,9.5);
365  nseg2 = new TH1F(prefix+"nseg2","nseg",10,-0.5,9.5);
366  nseg3 = new TH1F(prefix+"nseg3","nseg",10,-0.5,9.5);
367  nhough = new TH1F(prefix+"nhough","nhough",10,-0.5,9.5);
368  ntruth_seg = new TH2F(prefix+"ntruth_seg","ntruth_seg",10,-0.5,9.5,10,-0.5,9.5);
369  ntruth_seg1 = new TH2F(prefix+"ntruth_seg1","ntruth_seg",10,-0.5,9.5,10,-0.5,9.5);
370  ntruth_hough = new TH2F(prefix+"ntruth_hough","ntruth_hough",10,-0.5,9.5,10,-0.5,9.5);
371 
372  TDirectory* ldir = dir->mkdir("hits");
373  ldir->cd();
374  hits.book(ldir,prefix+"h_");
375 
376  ldir = dir->mkdir("hough");
377  ldir->cd();
378  hough.book(ldir,prefix+"ho_");
379 
380  ldir = dir->mkdir("segments");
381  ldir->cd();
382  segments.book(ldir,prefix+"s0_");
383  segments1.book(ldir,prefix+"s1_");
384  segments2.book(ldir,prefix+"s2_");
385  segments3.book(ldir,prefix+"s3_");
386 
387  ldir = dir->mkdir("times");
388  ldir->cd();
389  std::vector<int> types = { 1,2,10,12,1001,1010};
390  std::vector<std::string> typeNames = { "BarrelMDT","BarrelRPC","BarrelMDTT","BarrelRPCT","EndcapMDT","EndcapMDTT"};
391  for( unsigned int i=0;i<types.size();++i ){
392  auto type = types[i];
393  TString name = typeNames[i].c_str();
394  name += "_";
395  timePlots.push_back(TimePlots());
396  timePlots.back().book(ldir,name,type);
397  timePlots.back().typeIndex = type;
398  }
399 
400 
401  ldir = dir->mkdir("betaFits");
402  ldir->cd();
403  barrel.book(ldir,prefix+"barrel_",true);
404  endcap.book(ldir,prefix+"endcap_",false);
405 
406  ldir = dir->mkdir("candidates");
407  ldir->cd();
408  for( unsigned int i=0;i<4;++i ){
409  TString name = "stage";
410  name += i;
411  candidateStages.push_back(StageSummaryPlots());
412  candidateStages.back().book(ldir,name);
413  }
414  dir->cd();
415  }

◆ fill() [1/2]

void Muon::TrackPlots::fill ( const MuonValidationTrackParticleBlock tracks,
int  index 
)

Definition at line 417 of file MuonInsideOutAnalysisPlots.cxx.

417  {
418  pt->Fill( (*tracks.pt)[index]*0.001 );
419  eta->Fill( (*tracks.eta)[index] );
420  phi->Fill( (*tracks.phi)[index] );
421  beta->Fill( (*tracks.truth.beta)[index] );
422  }

◆ fill() [2/2]

void Muon::TrackPlots::fill ( int  ntruth_,
int  nseg_,
int  nseg1_,
int  nseg2_,
int  nseg3_,
int  nhough_ 
)

Definition at line 424 of file MuonInsideOutAnalysisPlots.cxx.

424  {
425  ntruth->Fill(ntruth_);
426  nseg->Fill(nseg_);
427  nseg1->Fill(nseg1_);
428  nseg2->Fill(nseg2_);
429  nseg3->Fill(nseg3_);
430  nhough->Fill(nhough_);
431  ntruth_seg->Fill(ntruth_,nseg_);
432  ntruth_seg1->Fill(ntruth_,nseg1_);
433  ntruth_hough->Fill(ntruth_,nhough_);
434  }

◆ getTimePlots()

TimePlots* Muon::TrackPlots::getTimePlots ( int  typeIndex)
inline

Definition at line 230 of file MuonInsideOutAnalysisPlots.h.

230  {
231  for( auto& plot : timePlots ){
232  if( plot.typeIndex == typeIndex ) return &plot;
233  }
234  return nullptr;
235  }

Member Data Documentation

◆ barrel

BetaFitRegionPlots Muon::TrackPlots::barrel

Definition at line 237 of file MuonInsideOutAnalysisPlots.h.

◆ beta

TH1* Muon::TrackPlots::beta

Definition at line 209 of file MuonInsideOutAnalysisPlots.h.

◆ candidateStages

std::vector<StageSummaryPlots> Muon::TrackPlots::candidateStages

Definition at line 240 of file MuonInsideOutAnalysisPlots.h.

◆ endcap

BetaFitRegionPlots Muon::TrackPlots::endcap

Definition at line 238 of file MuonInsideOutAnalysisPlots.h.

◆ eta

TH1* Muon::TrackPlots::eta

Definition at line 207 of file MuonInsideOutAnalysisPlots.h.

◆ hits

HitPlots Muon::TrackPlots::hits

Definition at line 221 of file MuonInsideOutAnalysisPlots.h.

◆ hough

HoughPlots Muon::TrackPlots::hough

Definition at line 222 of file MuonInsideOutAnalysisPlots.h.

◆ nhough

TH1* Muon::TrackPlots::nhough

Definition at line 216 of file MuonInsideOutAnalysisPlots.h.

◆ nseg

TH1* Muon::TrackPlots::nseg

Definition at line 212 of file MuonInsideOutAnalysisPlots.h.

◆ nseg1

TH1* Muon::TrackPlots::nseg1

Definition at line 213 of file MuonInsideOutAnalysisPlots.h.

◆ nseg2

TH1* Muon::TrackPlots::nseg2

Definition at line 214 of file MuonInsideOutAnalysisPlots.h.

◆ nseg3

TH1* Muon::TrackPlots::nseg3

Definition at line 215 of file MuonInsideOutAnalysisPlots.h.

◆ ntruth

TH1* Muon::TrackPlots::ntruth

Definition at line 211 of file MuonInsideOutAnalysisPlots.h.

◆ ntruth_hough

TH2* Muon::TrackPlots::ntruth_hough

Definition at line 219 of file MuonInsideOutAnalysisPlots.h.

◆ ntruth_seg

TH2* Muon::TrackPlots::ntruth_seg

Definition at line 217 of file MuonInsideOutAnalysisPlots.h.

◆ ntruth_seg1

TH2* Muon::TrackPlots::ntruth_seg1

Definition at line 218 of file MuonInsideOutAnalysisPlots.h.

◆ pdg

TH1* Muon::TrackPlots::pdg

Definition at line 210 of file MuonInsideOutAnalysisPlots.h.

◆ phi

TH1* Muon::TrackPlots::phi

Definition at line 208 of file MuonInsideOutAnalysisPlots.h.

◆ pt

TH1* Muon::TrackPlots::pt

Definition at line 206 of file MuonInsideOutAnalysisPlots.h.

◆ segments

SegmentPlots Muon::TrackPlots::segments

Definition at line 223 of file MuonInsideOutAnalysisPlots.h.

◆ segments1

SegmentPlots Muon::TrackPlots::segments1

Definition at line 224 of file MuonInsideOutAnalysisPlots.h.

◆ segments2

SegmentPlots Muon::TrackPlots::segments2

Definition at line 225 of file MuonInsideOutAnalysisPlots.h.

◆ segments3

SegmentPlots Muon::TrackPlots::segments3

Definition at line 226 of file MuonInsideOutAnalysisPlots.h.

◆ timePlots

std::vector<TimePlots> Muon::TrackPlots::timePlots

Definition at line 228 of file MuonInsideOutAnalysisPlots.h.


The documentation for this struct was generated from the following files:
Muon::TrackPlots::timePlots
std::vector< TimePlots > timePlots
Definition: MuonInsideOutAnalysisPlots.h:228
Muon::TrackPlots::nseg1
TH1 * nseg1
Definition: MuonInsideOutAnalysisPlots.h:213
Muon::TrackPlots::pdg
TH1 * pdg
Definition: MuonInsideOutAnalysisPlots.h:210
Muon::TrackPlots::barrel
BetaFitRegionPlots barrel
Definition: MuonInsideOutAnalysisPlots.h:237
index
Definition: index.py:1
Muon::TrackPlots::nseg2
TH1 * nseg2
Definition: MuonInsideOutAnalysisPlots.h:214
Muon::TrackPlots::segments2
SegmentPlots segments2
Definition: MuonInsideOutAnalysisPlots.h:225
Muon::TrackPlots::endcap
BetaFitRegionPlots endcap
Definition: MuonInsideOutAnalysisPlots.h:238
plot
Definition: PhysicsAnalysis/ElectronPhotonID/ElectronPhotonFourMomentumCorrection/python/plot.py:1
Muon::TrackPlots::ntruth
TH1 * ntruth
Definition: MuonInsideOutAnalysisPlots.h:211
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
Muon::SegmentPlots::book
void book(TDirectory *dir, const TString &prefix)
Definition: MuonInsideOutAnalysisPlots.cxx:210
Muon::TrackPlots::ntruth_seg1
TH2 * ntruth_seg1
Definition: MuonInsideOutAnalysisPlots.h:218
Muon::TrackPlots::nhough
TH1 * nhough
Definition: MuonInsideOutAnalysisPlots.h:216
Muon::BetaFitRegionPlots::book
void book(TDirectory *dir, const TString &prefix, bool isBarrel)
Definition: MuonInsideOutAnalysisPlots.cxx:309
Muon::TrackPlots::phi
TH1 * phi
Definition: MuonInsideOutAnalysisPlots.h:208
Muon::TrackPlots::ntruth_hough
TH2 * ntruth_hough
Definition: MuonInsideOutAnalysisPlots.h:219
lumiFormat.i
int i
Definition: lumiFormat.py:85
Muon::TrackPlots::beta
TH1 * beta
Definition: MuonInsideOutAnalysisPlots.h:209
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Muon::TrackPlots::hough
HoughPlots hough
Definition: MuonInsideOutAnalysisPlots.h:222
Muon::TrackPlots::segments
SegmentPlots segments
Definition: MuonInsideOutAnalysisPlots.h:223
Muon::TrackPlots::candidateStages
std::vector< StageSummaryPlots > candidateStages
Definition: MuonInsideOutAnalysisPlots.h:240
Muon::TrackPlots::pt
TH1 * pt
Definition: MuonInsideOutAnalysisPlots.h:206
beamspotman.dir
string dir
Definition: beamspotman.py:623
Muon::HoughPlots::book
void book(TDirectory *dir, const TString &prefix)
Definition: MuonInsideOutAnalysisPlots.cxx:190
python.root_lsr_rank.types
types
Definition: root_lsr_rank.py:35
Muon::TrackPlots::ntruth_seg
TH2 * ntruth_seg
Definition: MuonInsideOutAnalysisPlots.h:217
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Muon::TrackPlots::eta
TH1 * eta
Definition: MuonInsideOutAnalysisPlots.h:207
Muon::TrackPlots::segments3
SegmentPlots segments3
Definition: MuonInsideOutAnalysisPlots.h:226
Muon::TrackPlots::nseg3
TH1 * nseg3
Definition: MuonInsideOutAnalysisPlots.h:215
Muon::TrackPlots::segments1
SegmentPlots segments1
Definition: MuonInsideOutAnalysisPlots.h:224
plot
bool plot
Definition: listroot.cxx:44
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::TrackPlots::hits
HitPlots hits
Definition: MuonInsideOutAnalysisPlots.h:221
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
Muon::TrackPlots::nseg
TH1 * nseg
Definition: MuonInsideOutAnalysisPlots.h:212
RunTileMonitoring.typeNames
typeNames
Definition: RunTileMonitoring.py:285
Muon::HitPlots::book
void book(TDirectory *dir, const TString &prefix)
Definition: MuonInsideOutAnalysisPlots.cxx:62