6#include "GaudiKernel/ITHistSvc.h"
21 const char* fN =
m_name.c_str();
23 histoMap[
"pT"] =
new TH1D(Form(
"%s_pT",fN),
";p_{T} [GeV];Tracks", 100, 0., 100.);
25 histoMap[
"PrecisionHitFraction"] =
new TH1D(Form(
"%s_PrecisionHitFraction",fN),
";Precision hit fraction;Tracks", 20, 0., 1.);
26 histoMap[
"PrecisionHitFraction_lowmu"] =
new TH1D(Form(
"%s_PrecisionHitFraction_lowmu",fN),
";Precision hit fraction;Tracks", 20, 0., 1.);
27 histoMap[
"PrecisionHitFraction_highmu"] =
new TH1D(Form(
"%s_PrecisionHitFraction_highmu",fN),
";Precision hit fraction;Tracks", 20, 0., 1.);
29 histoMap[
"eProbabilityHT"] =
new TH1D(Form(
"%s_eProbabilityHT",fN),
";eProbabilityHT;Tracks", 20, 0., 1.);
30 histoMap[
"eProbabilityHT_lowmu"] =
new TH1D(Form(
"%s_eProbabilityHT_lowmu",fN),
";eProbabilityHT;Tracks", 20, 0., 1.);
31 histoMap[
"eProbabilityHT_highmu"] =
new TH1D(Form(
"%s_eProbabilityHT_highmu",fN),
";eProbabilityHT;Tracks", 20, 0., 1.);
33 profileMap[
"PrecisionHitFractionvsmu"] =
new TProfile(Form(
"%s_PrecisionHitFractionvsmu",fN),
";mu;Precision hit fraction", 35, 0., 70., 0., 1.);
34 profileMap[
"eProbabilityHTvsmu"] =
new TProfile(Form(
"%s_eProbabilityHTvsmu",fN),
";mu;eProbabilityHT", 35, 0., 70., 0., 1.);
49 return StatusCode::SUCCESS;
67 float precHitFrac = (nTRTHits > 0 && nTRTTubeHits >= 0)
68 ? (1. - ((
float)nTRTTubeHits) / ((
float)nTRTHits))
73 histoMap[
"pT"]->Fill(tp->pt() / 1000.);
75 histoMap[
"PrecisionHitFraction"]->Fill(precHitFrac);
76 histoMap[
"eProbabilityHT"]->Fill(eProbabilityHT);
79 histoMap[
"PrecisionHitFraction_lowmu"]->Fill(precHitFrac);
80 histoMap[
"eProbabilityHT_lowmu"]->Fill(eProbabilityHT);
84 histoMap[
"PrecisionHitFraction_highmu"]->Fill(precHitFrac);
85 histoMap[
"eProbabilityHT_highmu"]->Fill(eProbabilityHT);
88 profileMap[
"PrecisionHitFractionvsmu"]->Fill(mu, precHitFrac);
89 profileMap[
"eProbabilityHTvsmu"]->Fill(mu, eProbabilityHT);
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
#define ATH_CHECK
Evaluate an expression and check for errors.
float summaryValueFloat(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, float deflt=-999.)
return the summary value for a TrackParticle or default value (-999)
SmartIF< ITHistSvc > m_rootHistSvc
std::map< std::string, TH1D * > histoMap
StatusCode initializePlots()
std::map< std::string, TProfile * > profileMap
void fill(const xAOD::IParticle &track, float mu)
Class providing the definition of the 4-vector interface.
float summaryValueFloat(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, float deflt=-999.)
return the summary value for a TrackParticle or default value (-999)
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
TrackParticle_v1 TrackParticle
Reference the current persistent version:
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ numberOfTRTTubeHits
number of TRT tube hits [unit8_t].
@ eProbabilityHT
Electron probability from High Threshold (HT) information [float].