|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "TDirectory.h"
41 TDirectory* ndir =
dir->mkdir(
prefix+
"Chamber");
45 for(
unsigned int i=0;
i<
plots.size();++
i ){
56 plots[chIndex_].fill(res_,pull_,exerr_);
57 plots_p[chIndex_].fill(res_,pull_,exerr_,p_);
74 void HitPlots::fill(
int chIndex_,
float res_,
float pull_,
float exerr_,
float p_ ) {
82 bool isMDT = (
type == 1 ||
type == 10);
89 if(
type == 10 ) timeRange = 800;
123 }
else if(
type == 1 ){
136 float timeTrack = betaUtils.
calculateTof(betaTrack,dist);
144 beta->Fill(betaMeas);
145 float res = t0_-timeTrack;
151 float betaResidual = betaMeas-betaTrack;
153 betaPull->Fill(betaResidual/betaError);
154 float invBetaResidual = invBetaMeas-1./betaTrack;
165 float errRT = sqrt(
err*
err-errTrk*errTrk);
169 float pullcor = rescor/
err;
184 }
else if(
type == 1 &&
err > 7 ){
203 void HoughPlots::fill(
int chIndex_,
float res_,
float pull_,
float exerr_,
float p_,
float max_ ){
273 float t0_ = (*segments.
t0)[
index]+tof;
281 beta2->Fill(betaSeg,betaTrack);
283 t0Res->Fill(t0_-t0Track);
285 betaRes->Fill(betaSeg-betaTrack);
304 if( ndof_ > 0 )
chi2Ndof->Fill(chi2_/ndof_);
306 res->Fill(beta_-betaTruth_);
372 TDirectory* ldir =
dir->mkdir(
"hits");
376 ldir =
dir->mkdir(
"hough");
380 ldir =
dir->mkdir(
"segments");
387 ldir =
dir->mkdir(
"times");
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];
401 ldir =
dir->mkdir(
"betaFits");
406 ldir =
dir->mkdir(
"candidates");
408 for(
unsigned int i=0;
i<4;++
i ){
409 TString
name =
"stage";
424 void TrackPlots::fill(
int ntruth_,
int nseg_,
int nseg1_,
int nseg2_,
int nseg3_,
int nhough_ ) {
438 TDirectory* ndir =
dir->mkdir(
"Muon");
441 ndir =
dir->mkdir(
"Stau");
444 ndir =
dir->mkdir(
"Rest");
CandidatePlots tagCandidates
std::vector< float > * phi
std::vector< float > * pt
MuonValidationTruthBlock truth
std::vector< TimePlots > timePlots
float calculateBeta(float time, float dist)
BetaFitRegionPlots barrel
Block with timing information.
void fill(int ntruth_, int nseg_, int nseg1_, int nseg2_, int nseg3_, int nhough_)
void book(TDirectory *dir, const TString &prefix)
std::vector< float > * pull
void book(TDirectory *dir, const TString &prefix)
std::vector< int > * quality
MuonValidationResidualBlock combinedYZ
BetaFitRegionPlots endcap
This class provides conversion from CSC RDO data to CSC Digits.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
void fill(float res_, float pull_, float exerr_)
void book(TDirectory *dir, const TString &prefix)
void book(TDirectory *dir, const TString &prefix)
std::vector< float > * beta
MuonValidationResidualBlock xresiduals
std::vector< float > * t0
BetaFitPlots betaCandidates
void fill(int ntruth_, int nseg_, int nseg1_, int nhough_)
void fill(const MuonValidationTimeBlock ×, int index, float betaTrack)
void book(TDirectory *dir, const TString &prefix, bool isBarrel)
ChamberResPlots chambercy
void fill(int chIndex_, float res_, float pull_, float exerr_, float p_)
std::vector< int > * chIndex
std::vector< float > * residual
Block with hough maxima information.
CandidatePlots combinedCandidates
void fill(const MuonValidationHoughBlock &hough, int index, float p_)
std::vector< float > * eta
std::pair< std::vector< unsigned int >, bool > res
MuonValidationResidualBlock yresiduals
void fill(const MuonValidationHitBlock &hits, int index, float p_)
void book(const TString &prefix)
void book(TDirectory *dir, const TString &prefix, int type)
std::vector< float > * expos_err
std::vector< int > * sector
Block with information on the incoming track particle.
MuonValidationResidualBlock angleYZ
std::vector< StageSummaryPlots > candidateStages
TH1 * ncombinedCandidates
void book(TDirectory *dir, const TString &prefix)
void book(TDirectory *dir, const TString &prefix)
candidate based plots
void book(TDirectory *dir, const TString &prefix)
Block with segment information.
std::string to_string(const DetectorType &type)
float calculateInverseBetaError(float error, float dist)
CandidatePlots allCandidates
void fill(int chIndex_, int sector_, int quality_)
std::vector< float > * t0Trig
float calculateInverseBeta(float time, float dist)
std::vector< ResPlotsPt > plots_p
void fill(float beta_, float betaTruth_, float chi2_, int ndof_)
void book(const TString &prefix)
ChamberResPlots chamberxz
ChamberResPlots chamberyz
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
float calculateBetaError(float time, float error, float dist)
void book(TDirectory *dir, const TString &prefix)
candidates based plots
BetaFitPlots betaBestCandidate
std::vector< ResPlots > plots
MuonValidationResidualBlock angleXZ
void fill(float res_, float pull_, float exerr_, float pt)
float calculateTof(float beta, float dist)
void book(TDirectory *dir, const TString &prefix)