#include <RecoElectronHistograms.h>
Definition at line 16 of file RecoElectronHistograms.h.
◆ fill() [1/3]
Definition at line 39 of file RecoElectronHistograms.cxx.
39 {
40
42
44 static const SG::AuxElement::ConstAccessor<int> accType("truthType");
45 static const SG::AuxElement::ConstAccessor<int> accOrigin("truthOrigin");
46 if (accOrigin.isAvailable(elrec))
47 histoMap[
"truthOrigin"]->Fill(accOrigin(elrec));
48 else
50 if (accType.isAvailable(elrec))
51 histoMap[
"truthType"]->Fill(accType(elrec));
52 else
54 }
55
59
60}
std::map< std::string, TH1D * > histoMap
void fill(const xAOD::IParticle &egamma)
std::map< std::string, TH2D * > histo2DMap
std::map< std::string, TH3D * > histo3DMap
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
size_t nTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
◆ fill() [2/3]
| void egammaMonitoring::ParticleHistograms::fill |
( |
const xAOD::IParticle & | egamma | ) |
|
|
virtual |
◆ fill() [3/3]
| void egammaMonitoring::ParticleHistograms::fill |
( |
const xAOD::IParticle & | egamma, |
|
|
float | mu ) |
|
virtual |
◆ hasFwd()
| void egammaMonitoring::ParticleHistograms::hasFwd |
( |
bool | a = true | ) |
|
|
inlineinherited |
◆ IHistograms() [1/2]
| egammaMonitoring::IHistograms::IHistograms |
( |
| ) |
|
|
inherited |
◆ IHistograms() [2/2]
| egammaMonitoring::IHistograms::IHistograms |
( |
std::string | name, |
|
|
std::string | title, |
|
|
std::string | folder, |
|
|
SmartIF< ITHistSvc > | rootHistSvc ) |
|
inlineinherited |
Definition at line 26 of file IHistograms.h.
30 :
31 m_name(std::move(std::move(name))),
32 m_title(std::move(std::move(title))),
33 m_folder(std::move(std::move(folder))),
SmartIF< ITHistSvc > m_rootHistSvc
◆ initializePlots()
| StatusCode RecoElectronHistograms::initializePlots |
( |
| ) |
|
|
virtual |
Reimplemented from egammaMonitoring::ParticleHistograms.
Definition at line 14 of file RecoElectronHistograms.cxx.
14 {
15
17
18 const char* fN =
m_name.c_str();
19
21 histoMap[
"truthType"] =
new TH1D(Form(
"%s_truthType",fN),
";truth type; Events", 41,-1,40);
22 histoMap[
"truthOrigin"] =
new TH1D(Form(
"%s_truthOrigin",fN),
";truth origin; Events",51,-1,50);
25 }
26
27 histo2DMap[
"eta_nTracks"] =
new TH2D(Form(
"%s_eta_nTracks",fN),
28 ";#eta;n_{trk}; Events", 90, -4.5, 4.5, 10, 0,10);
30
31 histo3DMap[
"eteta_eop"] =
new TH3D(Form(
"%s_eteta_eop",fN),
32 ";E_{T} [GeV];#eta;E/p; Events", 20, 0, 200, 25, 0, 2.5, 250, 0.5,3.);
34
35 return StatusCode::SUCCESS;
36
37}
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode initializePlots()
◆ isData()
| void egammaMonitoring::RecoElectronHistograms::isData |
( |
bool | b = true | ) |
|
|
inline |
◆ histo2DMap
| std::map<std::string, TH2D*> egammaMonitoring::RecoElectronHistograms::histo2DMap |
◆ histo3DMap
| std::map<std::string, TH3D*> egammaMonitoring::RecoElectronHistograms::histo3DMap |
◆ histoMap
| std::map<std::string, TH1D*> egammaMonitoring::IHistograms::histoMap |
|
inherited |
◆ m_folder
| std::string egammaMonitoring::IHistograms::m_folder |
|
protectedinherited |
◆ m_hasFwd
| bool egammaMonitoring::ParticleHistograms::m_hasFwd = false |
|
privateinherited |
◆ m_isData
| bool egammaMonitoring::RecoElectronHistograms::m_isData = false |
|
private |
◆ m_name
| std::string egammaMonitoring::IHistograms::m_name |
|
protectedinherited |
◆ m_rootHistSvc
| SmartIF<ITHistSvc> egammaMonitoring::IHistograms::m_rootHistSvc |
|
protectedinherited |
◆ m_title
| std::string egammaMonitoring::IHistograms::m_title |
|
protectedinherited |
The documentation for this class was generated from the following files: