#include <RecoPhotonHistograms.h>
|
| std::map< std::string, TH1D * > | histoMap |
Definition at line 15 of file RecoPhotonHistograms.h.
◆ fill() [1/3]
| void egammaMonitoring::ParticleHistograms::fill |
( |
const xAOD::IParticle & | egamma | ) |
|
|
virtual |
◆ fill() [2/3]
| void egammaMonitoring::ParticleHistograms::fill |
( |
const xAOD::IParticle & | egamma, |
|
|
float | mu ) |
|
virtual |
◆ fill() [3/3]
| void RecoPhotonHistograms::fill |
( |
const xAOD::Photon & | phrec | ) |
|
Definition at line 34 of file RecoPhotonHistograms.cxx.
34 {
35
37
38 static const SG::AuxElement::ConstAccessor<int> accType("truthType");
39 static const SG::AuxElement::ConstAccessor<int> accOrigin("truthOrigin");
40 if (accOrigin.isAvailable(phrec))
41 histoMap[
"truthOrigin"]->Fill(accOrigin(phrec));
42 else
44 if (accType.isAvailable(phrec))
45 histoMap[
"truthType"]->Fill(accType(phrec));
46 else
48
49 double trueR(-999);
51 if (tmp) {
52 if (
tmp->pdgId() == 22 &&
tmp->hasDecayVtx()) {
53
54 float x =
tmp->decayVtx()->x();
55 float y =
tmp->decayVtx()->y();
56 trueR = std::sqrt(
x*
x +
y*
y );
57
58 }
59 }
61
62
63}
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
TruthParticle_v1 TruthParticle
Typedef to implementation.
◆ 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 RecoPhotonHistograms::initializePlots |
( |
| ) |
|
|
virtual |
Reimplemented from egammaMonitoring::ParticleHistograms.
Definition at line 17 of file RecoPhotonHistograms.cxx.
17 {
18
20
21 const char* fN =
m_name.c_str();
22
23 histoMap[
"convRadius"] =
new TH1D(Form(
"%s_convRadius",fN),
";Conversion Radius [mm]; Events", 14,
m_cR_bins);
24 histoMap[
"truthType"] =
new TH1D(Form(
"%s_truthType",fN),
";truth type; Events", 41,-1,40);
25 histoMap[
"truthOrigin"] =
new TH1D(Form(
"%s_truthOrigin",fN),
";truth origin; Events",51,-1,50);
26
30
31 return StatusCode::SUCCESS;
32}
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode initializePlots()
◆ histoMap
| std::map<std::string, TH1D*> egammaMonitoring::IHistograms::histoMap |
|
inherited |
◆ m_cR_bins
| float egammaMonitoring::RecoPhotonHistograms::m_cR_bins[15] |
|
private |
Initial value:=
{0, 50, 89, 123, 170, 210, 250, 299, 335, 371, 443, 514, 554, 800, 1085}
Definition at line 26 of file RecoPhotonHistograms.h.
27 {0, 50, 89, 123, 170, 210, 250, 299, 335, 371, 443, 514, 554, 800, 1085};
◆ m_folder
| std::string egammaMonitoring::IHistograms::m_folder |
|
protectedinherited |
◆ m_hasFwd
| bool egammaMonitoring::ParticleHistograms::m_hasFwd = false |
|
privateinherited |
◆ 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: