7#include "GaudiKernel/IToolSvc.h"
21 const std::string &name,
const IInterface *parent) :
46 return StatusCode::SUCCESS;
51 std::vector<HistData> hists = plots.retrieveBookedHistograms();
53 for (
auto& hist : hists)
55 ATH_MSG_INFO(
"Initializing " << hist.first <<
" " << hist.first->GetName() <<
" " << hist.second <<
"...");
58 return StatusCode::SUCCESS;
63 std::string dir_test(
"nplots/");
74 return StatusCode::SUCCESS;
80 const EventContext& ctx = Gaudi::Hive::currentContext();
92 const std::vector< TLorentzVector > SelectedGeneratorLevel =
m_GeneratorSelector->GetGeneratorLevel(TruthParticles);
93 const std::vector< TLorentzVector > SelectedSimulationLevel =
m_GeneratorSelector->GetSimulationLevel(TruthParticles);
96 for (
const auto particle : *TruthParticles)
99 if (particle->charge()){
117 return StatusCode::SUCCESS;
129 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< StoreGateSvc > & evtStore()
size_type size() const noexcept
Returns the number of elements in the collection.
TruthVertex_v1 TruthVertex
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.