ATLAS Offline Software
Loading...
Searching...
No Matches
Trig::TrigEgammaEmulationPrecisionPhotonHypoTool Class Reference

#include <TrigEgammaEmulationPrecisionPhotonHypoTool.h>

Inheritance diagram for Trig::TrigEgammaEmulationPrecisionPhotonHypoTool:
Collaboration diagram for Trig::TrigEgammaEmulationPrecisionPhotonHypoTool:

Public Member Functions

 TrigEgammaEmulationPrecisionPhotonHypoTool (const std::string &myname)
 ~TrigEgammaEmulationPrecisionPhotonHypoTool ()=default
virtual bool emulate (const TrigData &input, bool &pass) const override
 ==========================================================================
virtual StatusCode initialize () override
 ==========================================================================
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

float avgmu () const
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.

Protected Attributes

ToolHandle< Trig::TrigDecisionToolm_trigdec
 Trigger decision tool.
ToolHandle< ILumiBlockMuToolm_lumiBlockMuTool

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

bool decide (const TrigData &input, const xAOD::Photon *ph) const
 ==========================================================================
int findCutIndex (float eta) 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< std::string > m_pidName { this, "PidName", "" }
Gaudi::Property< float > m_detacluster { this, "dETACLUSTERthr", 0. , "" }
Gaudi::Property< float > m_dphicluster { this, "dPHICLUSTERthr", 0. , "" }
Gaudi::Property< float > m_RelTopoEtConeCut { this, "RelTopoEtConeCut", -999. , "Calo isolation cut" }
Gaudi::Property< std::vector< float > > m_etabin { this, "EtaBins", {} , "Bins of eta" }
Gaudi::Property< std::vector< float > > m_eTthr { this, "ETthr", {}, "ET Threshold" }
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 20 of file TrigEgammaEmulationPrecisionPhotonHypoTool.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

◆ TrigEgammaEmulationPrecisionPhotonHypoTool()

TrigEgammaEmulationPrecisionPhotonHypoTool::TrigEgammaEmulationPrecisionPhotonHypoTool ( const std::string & myname)

◆ ~TrigEgammaEmulationPrecisionPhotonHypoTool()

Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::~TrigEgammaEmulationPrecisionPhotonHypoTool ( )
default

Member Function Documentation

◆ avgmu()

float TrigEgammaEmulationBaseHypoTool::avgmu ( ) const
protectedinherited

Definition at line 26 of file TrigEgammaEmulationBaseHypoTool.cxx.

27{
28 return m_lumiBlockMuTool->averageInteractionsPerCrossing(Gaudi::Hive::currentContext());
29}

◆ decide()

bool TrigEgammaEmulationPrecisionPhotonHypoTool::decide ( const TrigData & input,
const xAOD::Photon * ph ) const
private

==========================================================================

Definition at line 44 of file TrigEgammaEmulationPrecisionPhotonHypoTool.cxx.

48{
49
50 const TrigRoiDescriptor *roi = input.roi;
51 unsigned PassedCuts=0;
52
53
54 // when leaving scope it will ship data to monTool
55 PassedCuts = PassedCuts + 1; //got called (data in place)
56
57 if ( std::abs( roi->eta() ) > 2.6 ) {
58 ATH_MSG_DEBUG( "REJECT The photon had eta coordinates beyond the EM fiducial volume : "
59 << roi->eta() << "; stop the chain now" );
60 return false;
61 }
62
63 ATH_MSG_DEBUG( "; RoI ID = " << roi->roiId() << ": Eta = " << roi->eta() << ", Phi = " << roi->phi() );
64
65 // fill local variables for RoI reference position
66 double etaRef = roi->eta();
67 double phiRef = roi->phi();
68 // correct phi the to right range ( probably not needed anymore )
69 if ( std::abs( phiRef ) > M_PI ) phiRef -= 2*M_PI; // correct phi if outside range
70
71 auto pClus = ph->caloCluster();
72
73 if(!pClus){
74 ATH_MSG_DEBUG("No calo cluster for this photon");
75 return false;
76 }
77
78
79 float absEta = std::abs( pClus->eta() );
80 const int cutIndex = findCutIndex( absEta );
81
82
83
84 float dEta = pClus->eta() - etaRef;
85 // Deal with angle diferences greater than Pi
86 float dPhi = std::abs( pClus->phi() - phiRef );
87 dPhi = ( dPhi < M_PI ? dPhi : 2*M_PI - dPhi ); // TB why only <
88 float ET = pClus->et();
89
90
91 // eta range
92 if ( absEta > 2.47) { // VD
93 ATH_MSG_DEBUG( "Photon : " << absEta << " outside eta range " );
94 return false;
95 }
96 PassedCuts = PassedCuts + 1; // passed eta cut
97
98 // eta range
99 if ( cutIndex == -1 ) { // VD
100 ATH_MSG_DEBUG( "Photon : " << absEta << " outside eta range " << m_etabin[m_etabin.size()-1] );
101 return false;
102 } else {
103 ATH_MSG_DEBUG( "eta bin used for cuts " << cutIndex );
104 }
105 PassedCuts = PassedCuts + 1; // passed eta cut
106
107 // ET_em
108 ATH_MSG_DEBUG( "Photon: ET_em=" << ET << " cut: >" << m_eTthr[cutIndex] );
109 if ( ET < m_eTthr[cutIndex] ) {
110 ATH_MSG_DEBUG("REJECT et cut failed");
111 return false;
112 }
113 PassedCuts = PassedCuts + 1; // ET_em
114
115
116
117
118 // apply cuts: DeltaEta( clus-ROI )
119 ATH_MSG_DEBUG( "Photon : eta=" << pClus->eta() << " roi eta=" << etaRef << " DeltaEta=" << dEta
120 << " cut: <" << m_detacluster );
121
122 if ( std::abs( pClus->eta() - etaRef ) > m_detacluster ) {
123 ATH_MSG_DEBUG("REJECT Photon a cut failed");
124 return false;
125 }
126 PassedCuts = PassedCuts + 1; //Deta
127
128 // DeltaPhi( clus-ROI )
129 ATH_MSG_DEBUG( ": phi=" << pClus->phi() << " roi phi="<< phiRef << " DeltaPhi="<< dPhi
130 << " cut: <" << m_dphicluster );
131
132 if( dPhi > m_dphicluster ) {
133 ATH_MSG_DEBUG("REJECT Clsuter dPhi cut failed");
134 return false;
135 }
136 PassedCuts = PassedCuts + 1; //DPhi
137
138
139 // Apply phootn offline like selection
140 bool pass = input.isPassed(ph, m_pidName);
141
142
143
144 float Rhad1(0), Rhad(0), Reta(0), Rphi(0), e277(0), weta2c(0), //emax2(0),
145 Eratio(0), DeltaE(0), f1(0), weta1c(0), wtot(0), fracm(0);
146 float ptcone20(999), ptcone30(999), ptcone40(999), etcone20(999), etcone30(999), etcone40(999), topoetcone20(999), topoetcone30(999), topoetcone40(999), reletcone20(999);
147
148
149 // variables based on HCAL
150 // transverse energy in 1st scintillator of hadronic calorimeter/ET
152 // transverse energy in hadronic calorimeter/ET
154
155 // variables based on S2 of EM CAL
156 // E(7*7) in 2nd sampling
158 // E(3*7)/E(7*7) in 2nd sampling
160 // E(3*3)/E(3*7) in 2nd sampling
162 // shower width in 2nd sampling
164
165 // variables based on S1 of EM CAL
166 // fraction of energy reconstructed in the 1st sampling
168 // shower width in 3 strips in 1st sampling
170 // E of 2nd max between max and min in strips [NOT USED]
171 // eg->showerShapeValue(emax2, xAOD::EgammaParameters::e2tsts1);
172 // (E of 1st max in strips-E of 2nd max)/(E of 1st max+E of 2nd max)
174 // E(2nd max)-E(min) in strips
176 // total shower width in 1st sampling
178 // E(+/-3)-E(+/-1)/E(+/-1)
180
181 ph->isolationValue(ptcone20, xAOD::Iso::ptcone20);
182
183 ph->isolationValue(ptcone30, xAOD::Iso::ptcone30);
184
185 ph->isolationValue(ptcone40, xAOD::Iso::ptcone40);
186
187 ph->isolationValue(etcone20, xAOD::Iso::etcone20);
188
189 ph->isolationValue(etcone30, xAOD::Iso::etcone30);
190
191 ph->isolationValue(etcone40, xAOD::Iso::etcone40);
192
193 ph->isolationValue(topoetcone20, xAOD::Iso::topoetcone20);
194
195 ph->isolationValue(topoetcone30, xAOD::Iso::topoetcone30);
196
197 ph->isolationValue(topoetcone40, xAOD::Iso::topoetcone40);
198
199 ATH_MSG_DEBUG( " Rhad1 " << Rhad1 ) ;
200 ATH_MSG_DEBUG( " Rhad " << Rhad ) ;
201 ATH_MSG_DEBUG( " e277 " << e277 ) ;
202 ATH_MSG_DEBUG( " Reta " << Reta ) ;
203 ATH_MSG_DEBUG( " Rphi " << Rphi ) ;
204 ATH_MSG_DEBUG( " weta2c " << weta2c ) ;
205 ATH_MSG_DEBUG( " f1 " << f1 ) ;
206 ATH_MSG_DEBUG( " weta1c " << weta1c ) ;
207 ATH_MSG_DEBUG( " Eratio " << Eratio ) ;
208 ATH_MSG_DEBUG( " DeltaE " << DeltaE ) ;
209 ATH_MSG_DEBUG( " wtot " << wtot ) ;
210 ATH_MSG_DEBUG( " fracm " << fracm ) ;
211 ATH_MSG_DEBUG( " ptcone20 " << ptcone20 ) ;
212 ATH_MSG_DEBUG( " ptcone30 " << ptcone30 ) ;
213 ATH_MSG_DEBUG( " ptcone40 " << ptcone40 ) ;
214 ATH_MSG_DEBUG( " etcone20 " << etcone20 ) ;
215 ATH_MSG_DEBUG( " etcone30 " << etcone30 ) ;
216 ATH_MSG_DEBUG( " etcone40 " << etcone40 ) ;
217 ATH_MSG_DEBUG( " topoetcone20 " << topoetcone20 ) ;
218 ATH_MSG_DEBUG( " topoetcone30 " << topoetcone30 ) ;
219 ATH_MSG_DEBUG( " topoetcone40 " << topoetcone40 ) ;
220 // Monitor showershapes
221 reletcone20 = etcone20/ph->caloCluster()->et();
222 ATH_MSG_DEBUG("reletcone20 = " <<reletcone20 );
223 ATH_MSG_DEBUG("m_RelEtConeCut = " << m_RelTopoEtConeCut );
224
225
226 // Decode isEM bits of result to see which bits passed and which bits fialed
227 if ( !pass ){
228 ATH_MSG_DEBUG("REJECT isEM failed");
229 return false;
230 } else {
231 ATH_MSG_DEBUG("ACCEPT isEM passed");
232 }
233
234
235 // Check if need to apply isolation
236 // First check logic. if cut is very negative, then no isolation cut is defined
237 // if m_RelEtConeCut <-100 then hypo is configured not to apply isolation
238 if (m_RelTopoEtConeCut < -100){
239 ATH_MSG_DEBUG(" not applying isolation. Returning NOW");
240 ATH_MSG_DEBUG("TAccept = " << pass);
241 return true;
242 }
243 // Then, It will pass if reletcone20 is less than cut:
244 pass = (reletcone20 < m_RelTopoEtConeCut);
245 //
246 // Reach this point successfully
247 ATH_MSG_DEBUG( "pass = " << pass );
248
249 return pass;
250
251}
#define M_PI
#define ATH_MSG_DEBUG(x)
Athena::TPCnvVers::Current TrigRoiDescriptor
virtual double phi() const override final
Methods to retrieve data members.
virtual double eta() const override final
virtual unsigned int roiId() const override final
these quantities probably don't need to be used any more
int findCutIndex(float eta) const
==========================================================================
bool showerShapeValue(float &value, const EgammaParameters::ShowerShapeType information) const
Accessor for ShowerShape values.
bool isolationValue(float &value, const Iso::IsolationType information) const
old Accessor for Isolation values.
Definition Egamma_v1.h:251
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
bool dPhi(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
bool absEta(const xAOD::TauJet &tau, float &out)
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
Definition EgammaEnums.h:81
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
Definition EgammaEnums.h:53
@ 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
@ topoetcone20
Topo-cluster ET-sum.
@ etcone20
Calorimeter isolation.
@ ptcone20
Track isolation.

◆ 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>

◆ 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.

◆ emulate()

bool TrigEgammaEmulationPrecisionPhotonHypoTool::emulate ( const TrigData & input,
bool & pass ) const
overridevirtual

==========================================================================

Reimplemented from Trig::TrigEgammaEmulationBaseHypoTool.

Definition at line 23 of file TrigEgammaEmulationPrecisionPhotonHypoTool.cxx.

25{
26 pass=false;
27 if( !input.roi ) return false;
28 if( input.photons.empty() ) return false;
29
30 for ( const auto& ph : input.photons )
31 {
32 if( decide( input, ph ) ){
33 pass=true;
34 return true;
35 }
36 }
37
38 return true;
39
40}
bool decide(const TrigData &input, const xAOD::Photon *ph) const
==========================================================================

◆ 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

◆ findCutIndex()

int TrigEgammaEmulationPrecisionPhotonHypoTool::findCutIndex ( float eta) const
private

==========================================================================

Definition at line 255 of file TrigEgammaEmulationPrecisionPhotonHypoTool.cxx.

255 {
256 const float absEta = std::abs(eta);
257 auto binIterator = std::adjacent_find( m_etabin.begin(), m_etabin.end(), [=](float left, float right){ return left < absEta and absEta < right; } );
258 if ( binIterator == m_etabin.end() ) {
259 return -1;
260 }
261 return binIterator - m_etabin.begin();
262}
Scalar eta() const
pseudorapidity method

◆ 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::TEvent 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::TEvent, 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::TEvent 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::TEvent, 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.

◆ initialize()

StatusCode TrigEgammaEmulationPrecisionPhotonHypoTool::initialize ( void )
overridevirtual

==========================================================================

Reimplemented from Trig::TrigEgammaEmulationBaseHypoTool.

Definition at line 15 of file TrigEgammaEmulationPrecisionPhotonHypoTool.cxx.

16{
18 return StatusCode::SUCCESS;
19}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.

◆ 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.

◆ 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()

◆ 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 >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ 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_detacluster

Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_detacluster { this, "dETACLUSTERthr", 0. , "" }
private

Definition at line 42 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

42{ this, "dETACLUSTERthr", 0. , "" };

◆ 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_dphicluster

Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_dphicluster { this, "dPHICLUSTERthr", 0. , "" }
private

Definition at line 43 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

43{ this, "dPHICLUSTERthr", 0. , "" };

◆ m_etabin

Gaudi::Property< std::vector<float> > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_etabin { this, "EtaBins", {} , "Bins of eta" }
private

Definition at line 45 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

45{ this, "EtaBins", {} , "Bins of eta" };

◆ m_eTthr

Gaudi::Property< std::vector<float> > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_eTthr { this, "ETthr", {}, "ET Threshold" }
private

Definition at line 46 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

46{ this, "ETthr", {}, "ET Threshold" };

◆ 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_lumiBlockMuTool

ToolHandle<ILumiBlockMuTool> Trig::TrigEgammaEmulationBaseHypoTool::m_lumiBlockMuTool
protectedinherited

Definition at line 41 of file TrigEgammaEmulationBaseHypoTool.h.

◆ m_pidName

Gaudi::Property< std::string > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_pidName { this, "PidName", "" }
private

Definition at line 41 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

41{ this, "PidName", "" };

◆ m_RelTopoEtConeCut

Gaudi::Property< float > Trig::TrigEgammaEmulationPrecisionPhotonHypoTool::m_RelTopoEtConeCut { this, "RelTopoEtConeCut", -999. , "Calo isolation cut" }
private

Definition at line 44 of file TrigEgammaEmulationPrecisionPhotonHypoTool.h.

44{ this, "RelTopoEtConeCut", -999. , "Calo isolation cut" };

◆ m_trigdec

ToolHandle<Trig::TrigDecisionTool> Trig::TrigEgammaEmulationBaseHypoTool::m_trigdec
protectedinherited

Trigger decision tool.

Definition at line 40 of file TrigEgammaEmulationBaseHypoTool.h.

◆ 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: