20 const std::string& dirName,
21 const std::string& anaTag,
22 const std::string& testType,
23 const std::string& refType,
24 bool isITk,
bool doGlobalPlots,
bool doTruthMuPlots,
bool do1D,
bool doExpert ) :
25 PlotMgr( dirName, anaTag, pParent ),
41 const std::string& dirName,
42 const std::string& anaTag,
43 const std::string& trackType,
44 bool isITk,
bool doGlobalPlots,
bool doTruthMuPlots,
bool doExpert ) :
45 PlotMgr( dirName, anaTag, pParent ),
62 if(
sc.isFailure() ) {
86 for(
unsigned int i=0; i<
NPARAMS; i++ ) {
103 for(
unsigned int j=i+1; j<
NPARAMS; j++ ) {
119 for(
unsigned int i=0; i<
NPARAMSMU; i++ ) {
139 for(
unsigned int j=0; j<
NPARAMS; j++ ) {
155 return StatusCode::SUCCESS;
164template<
typename PTEST,
typename PREF >
166 const PTEST& ptest,
const PREF&
pref,
float truthMu,
float actualMu,
float weight )
209 refP[
PT ] =
pT(
pref ) / Gaudi::Units::GeV;
233 for(
unsigned int i=0; i<
NPARAMS; i++ ) {
246 for(
unsigned int j=i+1; j<
NPARAMS; j++ ) {
260 for(
unsigned int i=0; i<
NPARAMSMU; i++ ) {
276 for(
unsigned int j=0; j<
NPARAMS; j++ ) {
290 return StatusCode::SUCCESS;
311template<
typename PARTICLE >
313 const PARTICLE& particle,
float truthMu,
float actualMu,
float weight )
316 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
Utility methods to access track/truth particles parmeters in a consitent way in this package.
std::string m_run3HitParamName[NRUN3HITPARAMSTOT]
TProfile2D * m_hitsRun3_vsMu_vs[NRUN3HITPARAMSTOT][NPARAMSMU][NPARAMS]
@ NTRTHighThresholdHitsXe
@ NTRTHighThresholdHitsAr
HitsOnTracksPlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, const std::string &testType, const std::string &refType, bool isITk, bool doGlobalPlots=false, bool doTruthMuPlots=false, bool do1D=false, bool doExpert=false)
Constructor A for test_Hits-vs-reference plots e.g.
std::string m_paramName[NPARAMS]
TProfile * m_hits_vsMu[NHITPARAMSTOT][NPARAMSMU]
TProfile plots vs mu (truth and actual)
TProfile2D * m_hits_vs2D[NHITPARAMSTOT][NPARAMS][NPARAMS]
TProfile2D plots vs NPARAMS vs NPARAMS.
TProfile * m_hits_vs[NHITPARAMSTOT][NPARAMS]
TProfile plots vs NPARAMS.
TProfile2D * m_hitsRun3_vs2D[NRUN3HITPARAMSTOT][NPARAMS][NPARAMS]
unsigned int m_NHITPARAMS
void finalizePlots()
Print out final stats on histograms.
TProfile * m_hitsRun3_vs[NRUN3HITPARAMSTOT][NPARAMS]
unsigned int m_NRUN3HITPARAMS
TH1 * m_hitsRun3[NRUN3HITPARAMSTOT]
StatusCode fillPlots(const PTEST &ptest, const PREF &pref, float truthMu, float actualMu, float weight)
Dedicated fill method A (for tracks and/or truth particles) for test_Hits-vs-reference plots.
TH1 * m_hits[NHITPARAMSTOT]
1D plots
void initializePlots()
Book the histograms.
std::string m_hitParamName[NHITPARAMSTOT]
std::string m_paramMuName[NPARAMSMU]
TProfile * m_hitsRun3_vsMu[NRUN3HITPARAMSTOT][NPARAMSMU]
TProfile2D * m_hits_vsMu_vs[NHITPARAMSTOT][NPARAMSMU][NPARAMS]
TProfile2D plots vs mu (truth and actual) vs NPARAMS.
@ NInnerMostPixelSplitEndcapHits
@ NInnerMostPixelEndcapOutliers
@ NNextToInnerMostPixelEndcapHits
@ NExpectedNextToInnerMostPixelHits
@ NInnerMostPixelSharedHits
@ NPixelGangedHitsFlaggedFakes
@ NInnerMostPixelSplitHits
@ NInnerMostPixelOutliers
for greater detail level plots
@ NInnerMostPixelEndcapHits
@ NNextToInnerMostPixelHits
@ NInnerMostPixelSharedEndcapHits
@ NExpectedInnerMostPixelHits
StatusCode retrieveAndBook(P *&pHisto, const std::string &identifier, const std::string &folderOverride="", const std::string &nameOverride="")
PlotMgr(const std::string &dirName, const std::string &anaTag, PlotMgr *pParent=nullptr)
Constructor taking parent node and directory name for plots pParent = nullptr by default to book plot...
const std::string & getDirectory()
float nTRTHighThresholdHits(const U &p)
float nInnerMostPixelSharedEndcapHits(const U &p)
float nInnerMostPixelSplitHits(const U &p)
float nInnerMostPixelSplitEndcapHits(const U &p)
float nExpectedInnerMostPixelHits(const U &p)
float nPixelHoles(const U &p)
float nPixelSharedHits(const U &p)
float pT(const U &p)
Accessor utility function for getting the value of pT.
float nNextToInnerMostPixelHits(const U &p)
float nPixelContribLayers(const U &p)
float nPixelGangedHits(const U &p)
float nInnerMostPixelEndcapOutliers(const U &p)
float nSCTSharedHits(const U &p)
float nPixelDeadSensors(const U &p)
float nSCTHoles(const U &p)
float nTRTHighThresholdHitsXe(const U &p)
float nNextToInnerMostPixelEndcapHits(const U &p)
float nSCTHits(const U &p)
float nSCTDeadSensors(const U &p)
float nSCTDoubleHoles(const U &p)
float nInnerMostPixelSharedHits(const U &p)
float nTRTHits(const U &p)
float nTRTHitsAr(const U &p)
float pixeldEdx(const U &p)
float nTRTHighThresholdHitsAr(const U &p)
float nTRTHitsXe(const U &p)
float nInnerMostPixelHits(const U &p)
float nPixelOutliers(const U &p)
float nInnerMostPixelOutliers(const U &p)
float nPixelSplitHits(const U &p)
float nPixelHits(const U &p)
float nExpectedNextToInnerMostPixelHits(const U &p)
float nSCTOutliers(const U &p)
float nInnerMostPixelEndcapHits(const U &p)
float nPixelGangedHitsFlaggedFakes(const U &p)
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.
void fill(H5::Group &out_file, size_t iterations)