Skip to content
Snippets Groups Projects
Commit d0894292 authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Merge branch 'master-egammaPhysValConfigFix' into 'master'

Migrate EgammaPhysValMonitoringTool to data handles, fix ATLASRECTS-4974

Closes ATLASRECTS-4974

See merge request atlas/athena!23700
parents 6fecb0f2 8d466e56
No related branches found
No related tags found
No related merge requests found
......@@ -9,5 +9,9 @@ tool1.ElectronContainerName = "Electrons"
tool1.ElectronContainerFrwdName = "ForwardElectrons"
tool1.TruthParticleContainerName = "TruthParticles"
tool1.isMC = rec.doTruth()
from MCTruthClassifier.MCTruthClassifierBase import MCTruthClassifier
tool1.MCTruthClassifier = MCTruthClassifier
monMan = CfgMgr.AthenaMonManager("PhysValMonManager")
monMan.AthenaMonTools += [ tool1 ]
......@@ -36,6 +36,7 @@
#include "xAODEventInfo/EventInfo.h"
#include "StoreGate/ReadHandleKey.h"
......@@ -67,8 +68,6 @@ class EgammaPhysValMonitoringTool
virtual StatusCode fillHistograms();
virtual StatusCode procHistograms();
int m_eventCounter;
bool is_MC;
///////////////////////////////////////////////////////////////////
// Const methods:
......@@ -87,28 +86,35 @@ class EgammaPhysValMonitoringTool
/// Default constructor:
EgammaPhysValMonitoringTool();
StatusCode fillRecoElecHistograms();
StatusCode fillRecoFrwdElecHistograms();
StatusCode fillRecoPhotHistograms();
StatusCode fillRecoElecHistograms(const xAOD::TruthParticleContainer* truthParticles);
StatusCode fillRecoFrwdElecHistograms(const xAOD::TruthParticleContainer* truthParticles);
StatusCode fillRecoPhotHistograms(const xAOD::TruthParticleContainer* truthParticles);
const xAOD::TruthParticle* Match(const xAOD::Egamma* particle, int pdg);
const xAOD::TruthParticle* Match(const xAOD::Egamma* particle, int pdg,
const xAOD::TruthParticleContainer* truthParticles) const;
// Containers
std::string m_photonContainerName;
std::string m_electronContainerName;
std::string m_electronContainerFrwdName;
std::string m_truthParticleContainerName;
std::string m_egammaTruthContainerName;
SG::ReadHandleKey<xAOD::PhotonContainer> m_photonContainerKey {this,
"PhotonContainerName", "Photons", "Input photon container"};
SG::ReadHandleKey<xAOD::ElectronContainer> m_electronContainerKey {this,
"ElectronContainerName", "Electrons", "Input electron container"};
SG::ReadHandleKey<xAOD::ElectronContainer> m_electronContainerFrwdKey {this,
"ElectronContainerFrwdName", "ForwardElectrons", "Input forward electron container"};
SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthParticleContainerKey {this,
"TruthParticleContainerName", "TruthParticles", "Input global truth particles"};
SG::ReadHandleKey<xAOD::TruthParticleContainer> m_egammaTruthContainerKey {this,
"EgammaTruthContainerName", "egammaTruthParticles", "Input egamma truth particles"};
Gaudi::Property<bool> m_isMC {this, "isMC", false, "Should be set from file peeking"};
// Hists
ElectronValidationPlots m_oElectronValidationPlots;
PhotonValidationPlots m_oPhotonValidationPlots;
ToolHandle<IMCTruthClassifier> m_truthClassifier;
ToolHandle<IMCTruthClassifier> m_truthClassifier {this,
"MCTruthClassifier", "EMMCTruthClassifier", "Handle of MCTruthClassifier"};
const xAOD::TruthParticleContainer* m_truthallParticles;
const xAOD::TruthParticleContainer* m_truthParticles;
};
// I/O operators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment