ATLAS Offline Software
Loading...
Searching...
No Matches
D3PDMCTruthClassifier.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4*/
13
14
17#include "GaudiKernel/ServiceHandle.h"
18
19
20#ifndef D3PDMCTRUTHCLASSIFIER_H
21#define D3PDMCTRUTHCLASSIFIER_H
22
23
24namespace D3PD {
25
26
42 : public MCTruthClassifier
43{
44public:
51 D3PDMCTruthClassifier(const std::string& type,
52 const std::string& name,
53 const IInterface* parent);
54
55
57 virtual StatusCode initialize();
58
59
61
62
70
71
79
80
88
89
90private:
98 bool get_tptruth_name (const std::string& tp_name,
99 std::string& tptruth_name);
100
101
107 void getProperty1 (const std::string& pname, std::string& value);
108
109
115 void setProperty1 (const std::string& pname, const std::string& value);
116
117
120};
121
122
123} // namespace D3PD
124
125
126
127#endif // not D3PDMCTRUTHCLASSIFIER_H
D3PDMCTruthClassifier(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
bool get_tptruth_name(const std::string &tp_name, std::string &tptruth_name)
Try to find a TrackParticleTruthCollection pointing at TP_NAME.
void setProperty1(const std::string &pname, const std::string &value)
Helper to set the value of a Gaudi property.
virtual StatusCode initialize()
Standard Gaudi initialize method.
ServiceHandle< StoreGateSvc > m_sg
The StoreGate service.
virtual std::pair< MCTruthPartClassifier::ParticleType, MCTruthPartClassifier::ParticleOrigin > particleTruthClassifier(const xAOD::Electron *el)
Run the classifier for an electron.
void getProperty1(const std::string &pname, std::string &value)
Helper to retrieve the value of a Gaudi property.
virtual std::pair< MCTruthPartClassifier::ParticleType, MCTruthPartClassifier::ParticleOrigin > particleTruthClassifier(const xAOD::TruthParticle *, MCTruthPartClassifier::Info *info=nullptr) const override final
MCTruthClassifier(const std::string &type)
Block filler tool for noisy FEB information.
Muon_v1 Muon
Reference the current persistent version:
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".