ATLAS Offline Software
Loading...
Searching...
No Matches
PhotonIDBDT::PhotonBDTCalculator Class Reference

#include <PhotonBDTCalculator.h>

Inheritance diagram for PhotonIDBDT::PhotonBDTCalculator:
Collaboration diagram for PhotonIDBDT::PhotonBDTCalculator:

Public Member Functions

 PhotonBDTCalculator (const std::string &name)
virtual ~PhotonBDTCalculator () override
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function.
virtual double evaluate (const xAOD::Photon *photon) const override
StatusCode decorate (const xAOD::Photon &ph) const
 Compute and decorate the photon with the BDT score.
StatusCode getScore (const xAOD::Photon &ph, float &score) const
 Return the score (computes if needed if m_forceRecompute is true).
double evaluate (const xAOD::IParticle *particle) const override final
 Evaluate the BDT score for a given photon (fails loudly if it cannot be computed) Inherited from IPhotonObservableTool.
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode fillVariablesConv (const xAOD::Photon &ph, std::vector< float > &vars) const
StatusCode fillVariablesUnconv (const xAOD::Photon &ph, std::vector< float > &vars) const
bool isConverted (const xAOD::Photon &ph) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< unsigned > m_reserveVarsConv {this, "ReserveVarsConv", 16, "Reserve size for input vector (converted photons)"}
Gaudi::Property< unsigned > m_reserveVarsUnconv {this, "ReserveVarsUnconv", 16, "Reserve size for input vector (unconverted photons)"}
ToolHandle< PhotonSingleBDTCalculatorm_toolConv {this, "ToolConv", "", "BDT calculator for converted photons"}
ToolHandle< PhotonSingleBDTCalculatorm_toolUnconv {this, "ToolUnconv", "", "BDT calculator for unconverted photons"}
Gaudi::Property< std::string > m_decorationName {this, "DecorationName", "PhotonBDTScore", "Aux decoration name for BDT score"}
Gaudi::Property< bool > m_excludeTRT {this, "ExcludeTRT", true, "Exclude TRT conversions (for Run 3 conversion definition)"}
Gaudi::Property< bool > m_forceRecompute {this, "ForceRecompute", false, "If true, recompute even if decoration exists"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 39 of file PhotonBDTCalculator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ PhotonBDTCalculator()

PhotonBDTCalculator::PhotonBDTCalculator ( const std::string & name)

Definition at line 34 of file PhotonBDTCalculator.cxx.

35 : asg::AsgTool(name)
36{}

◆ ~PhotonBDTCalculator()

PhotonBDTCalculator::~PhotonBDTCalculator ( )
overridevirtualdefault

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ decorate()

StatusCode PhotonBDTCalculator::decorate ( const xAOD::Photon & ph) const

Compute and decorate the photon with the BDT score.

Definition at line 147 of file PhotonBDTCalculator.cxx.

147 {
148 const SG::AuxElement::Decorator<float> decScore(m_decorationName);
149 float score = 0.f;
150 ATH_CHECK(getScore(ph, score));
151 decScore(ph) = score;
152 return StatusCode::SUCCESS;
153}
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode getScore(const xAOD::Photon &ph, float &score) const
Return the score (computes if needed if m_forceRecompute is true).
Gaudi::Property< std::string > m_decorationName

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evaluate() [1/2]

double IPhotonObservableTool::evaluate ( const xAOD::IParticle * particle) const
inlinefinaloverridevirtual

Evaluate the BDT score for a given photon (fails loudly if it cannot be computed) Inherited from IPhotonObservableTool.

Reimplemented from IPhotonObservableTool.

Definition at line 22 of file IPhotonObservableTool.h.

22 {
23 if (const auto* photon = dynamic_cast<const xAOD::Photon*>(particle)) {
24 return evaluate(photon);
25 } else {
26 throw std::invalid_argument("Wrong particle type, input=" + std::to_string(particle->type()));
27 }
28 }
virtual double evaluate(const xAOD::Photon *photon) const override
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Photon_v1 Photon
Definition of the current "egamma version".

◆ evaluate() [2/2]

double PhotonBDTCalculator::evaluate ( const xAOD::Photon * photon) const
overridevirtual

Implements IPhotonObservableTool.

Definition at line 172 of file PhotonBDTCalculator.cxx.

173{
174 if (!photon) {
175 throw std::invalid_argument("PhotonBDTCalculator::evaluate called with nullptr photon");
176 }
177
178 float score = 0.f;
179 const StatusCode sc = getScore(*photon, score);
180 if (sc.isFailure()) {
181 // Fails loudly if it cannot be computed
182 throw std::runtime_error("PhotonBDTCalculator::evaluate failed to compute BDT score");
183 }
184 return static_cast<double>(score);
185}
static Double_t sc
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillVariablesConv()

StatusCode PhotonBDTCalculator::fillVariablesConv ( const xAOD::Photon & ph,
std::vector< float > & vars ) const
private

Definition at line 49 of file PhotonBDTCalculator.cxx.

49 {
50 vars.clear();
51 vars.reserve(m_reserveVarsConv.value());
52 // Get photon kinematics from cluster
53 float eta = 0.f, ptGeV = 0.f;
54 ATH_CHECK(getClusterKinematics(ph, eta, ptGeV));
55
56 const float ptGeV_capped = std::min(ptGeV, 700.f); // Cap pt at 700 GeV
57 // Get shower shape variables
58 float reta = 0.f, rphi = 0.f, weta2 = 0.f, fracs1 = 0.f, weta1 = 0.f, wtots1 = 0.f, rhad = 0.f, rhad1 = 0.f, eratio = 0.f, deltaE = 0.f;
59 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Reta, reta));
60 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rphi, rphi));
61 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::weta2, weta2));
62 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::fracs1, fracs1));
63 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::weta1, weta1));
64 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::wtots1, wtots1));
65 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rhad, rhad));
66 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rhad1, rhad1));
67 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Eratio, eratio));
68 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::DeltaE, deltaE));
69
70 // LAr cell energies are quantised to integer MeV (LArRawChannel stores an int),
71 // so deltaE lives on a 1 MeV lattice. Normalizing flows produce a smooth
72 // distribution and cannot reproduce it, which gives the BDT artificial
73 // separation power. Round the BDT input back onto the lattice to match the
74 // training preprocessing. This is specific to this training.
75 // NB: this runs *after* the fudge/NF correction (see EGPhotonBDTToolWrapper),
76 // so it also quantises that correction.
77 deltaE = std::round(deltaE);
78
79 // Fill variables in the order expected by the BDT tool
80 vars.push_back(ptGeV_capped);
81 vars.push_back(eta);
82 vars.push_back(reta);
83 vars.push_back(rphi);
84 vars.push_back(weta2);
85 vars.push_back(fracs1);
86 vars.push_back(weta1);
87 vars.push_back(wtots1);
88 vars.push_back(rhad);
89 vars.push_back(rhad1);
90 vars.push_back(eratio);
91 vars.push_back(deltaE);
92 // The end!
93 return StatusCode::SUCCESS;
94}
Scalar eta() const
pseudorapidity method
Gaudi::Property< unsigned > m_reserveVarsConv
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
@ DeltaE
e2tsts1-emins1
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...
@ weta1
shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(E...
Definition EgammaEnums.h:98
setCharge setNTRTHiThresholdHits eratio

◆ fillVariablesUnconv()

StatusCode PhotonBDTCalculator::fillVariablesUnconv ( const xAOD::Photon & ph,
std::vector< float > & vars ) const
private

Definition at line 96 of file PhotonBDTCalculator.cxx.

96 {
97 vars.clear();
98 vars.reserve(m_reserveVarsUnconv.value());
99 // Get photon kinematics from cluster
100 float eta = 0.f, ptGeV = 0.f;
101 ATH_CHECK(getClusterKinematics(ph, eta, ptGeV));
102
103 const float ptGeV_capped = std::min(ptGeV, 700.f); // Cap pt at 700 GeV
104 // Get shower shape variables
105 float reta = 0.f, rphi = 0.f, weta2 = 0.f, fracs1 = 0.f, weta1 = 0.f, wtots1 = 0.f, rhad = 0.f, rhad1 = 0.f, eratio = 0.f, deltaE = 0.f;
106 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Reta, reta));
107 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rphi, rphi));
108 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::weta2, weta2));
109 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::fracs1, fracs1));
110 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::weta1, weta1));
111 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::wtots1, wtots1));
112 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rhad, rhad));
113 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Rhad1, rhad1));
114 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::Eratio, eratio));
115 ATH_CHECK(getShowerShape(ph, xAOD::EgammaParameters::DeltaE, deltaE));
116
117 // LAr cell energies are quantised to integer MeV (LArRawChannel stores an int),
118 // so deltaE lives on a 1 MeV lattice. Normalizing flows produce a smooth
119 // distribution and cannot reproduce it, which gives the BDT artificial
120 // separation power. Round the BDT input back onto the lattice to match the
121 // training preprocessing. This is specific to this training.
122 // NB: this runs *after* the fudge/NF correction (see EGPhotonBDTToolWrapper),
123 // so it also quantises that correction.
124 deltaE = std::round(deltaE);
125
126 // Fill variables in the order expected by the BDT tool
127 vars.push_back(ptGeV_capped);
128 vars.push_back(eta);
129 vars.push_back(reta);
130 vars.push_back(rphi);
131 vars.push_back(weta2);
132 vars.push_back(fracs1);
133 vars.push_back(weta1);
134 vars.push_back(wtots1);
135 vars.push_back(rhad);
136 vars.push_back(rhad1);
137 vars.push_back(eratio);
138 vars.push_back(deltaE);
139 // The end!
140 return StatusCode::SUCCESS;
141}
Gaudi::Property< unsigned > m_reserveVarsUnconv

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::Event, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::Event, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ getScore()

StatusCode PhotonBDTCalculator::getScore ( const xAOD::Photon & ph,
float & score ) const

Return the score (computes if needed if m_forceRecompute is true).

Definition at line 155 of file PhotonBDTCalculator.cxx.

155 {
156 const SG::AuxElement::Accessor<float> accScore(m_decorationName);
157 if (!m_forceRecompute && accScore.isAvailable(ph)) {
158 score = accScore(ph);
159 return StatusCode::SUCCESS;
160 }
161 std::vector<float> vars;
162 if (isConverted(ph)) {
163 ATH_CHECK(fillVariablesConv(ph, vars));
164 ATH_CHECK(m_toolConv->computeScore(vars, score));
165 } else {
167 ATH_CHECK(m_toolUnconv->computeScore(vars, score));
168 }
169 return StatusCode::SUCCESS;
170}
StatusCode fillVariablesConv(const xAOD::Photon &ph, std::vector< float > &vars) const
Gaudi::Property< bool > m_forceRecompute
bool isConverted(const xAOD::Photon &ph) const
StatusCode fillVariablesUnconv(const xAOD::Photon &ph, std::vector< float > &vars) const
ToolHandle< PhotonSingleBDTCalculator > m_toolConv
ToolHandle< PhotonSingleBDTCalculator > m_toolUnconv

◆ initialize()

StatusCode PhotonBDTCalculator::initialize ( void )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 40 of file PhotonBDTCalculator.cxx.

40 {
41 // Base tools for BDT evaluation
42 ATH_CHECK(m_toolConv.retrieve());
43 ATH_CHECK(m_toolUnconv.retrieve());
44
45 return StatusCode::SUCCESS;
46}

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isConverted()

bool PhotonBDTCalculator::isConverted ( const xAOD::Photon & ph) const
private

Definition at line 143 of file PhotonBDTCalculator.cxx.

143 {
145}
Gaudi::Property< bool > m_excludeTRT
bool isConvertedPhoton(const xAOD::Egamma *eg, bool excludeTRT=false)
is the object a converted photon

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_decorationName

Gaudi::Property<std::string> PhotonIDBDT::PhotonBDTCalculator::m_decorationName {this, "DecorationName", "PhotonBDTScore", "Aux decoration name for BDT score"}
private

Definition at line 74 of file PhotonBDTCalculator.h.

74{this, "DecorationName", "PhotonBDTScore", "Aux decoration name for BDT score"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_excludeTRT

Gaudi::Property<bool> PhotonIDBDT::PhotonBDTCalculator::m_excludeTRT {this, "ExcludeTRT", true, "Exclude TRT conversions (for Run 3 conversion definition)"}
private

Definition at line 75 of file PhotonBDTCalculator.h.

75{this, "ExcludeTRT", true, "Exclude TRT conversions (for Run 3 conversion definition)"};

◆ m_forceRecompute

Gaudi::Property<bool> PhotonIDBDT::PhotonBDTCalculator::m_forceRecompute {this, "ForceRecompute", false, "If true, recompute even if decoration exists"}
private

Definition at line 76 of file PhotonBDTCalculator.h.

76{this, "ForceRecompute", false, "If true, recompute even if decoration exists"};

◆ m_reserveVarsConv

Gaudi::Property<unsigned> PhotonIDBDT::PhotonBDTCalculator::m_reserveVarsConv {this, "ReserveVarsConv", 16, "Reserve size for input vector (converted photons)"}
private

Definition at line 66 of file PhotonBDTCalculator.h.

66{this, "ReserveVarsConv", 16, "Reserve size for input vector (converted photons)"};

◆ m_reserveVarsUnconv

Gaudi::Property<unsigned> PhotonIDBDT::PhotonBDTCalculator::m_reserveVarsUnconv {this, "ReserveVarsUnconv", 16, "Reserve size for input vector (unconverted photons)"}
private

Definition at line 67 of file PhotonBDTCalculator.h.

67{this, "ReserveVarsUnconv", 16, "Reserve size for input vector (unconverted photons)"};

◆ m_toolConv

ToolHandle<PhotonSingleBDTCalculator> PhotonIDBDT::PhotonBDTCalculator::m_toolConv {this, "ToolConv", "", "BDT calculator for converted photons"}
private

Definition at line 70 of file PhotonBDTCalculator.h.

70{this, "ToolConv", "", "BDT calculator for converted photons"};

◆ m_toolUnconv

ToolHandle<PhotonSingleBDTCalculator> PhotonIDBDT::PhotonBDTCalculator::m_toolUnconv {this, "ToolUnconv", "", "BDT calculator for unconverted photons"}
private

Definition at line 71 of file PhotonBDTCalculator.h.

71{this, "ToolUnconv", "", "BDT calculator for unconverted photons"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: