ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DerivationFramework::KinkTrkZeeTagTool Class Reference

#include <KinkTrkZeeTagTool.h>

Inheritance diagram for DerivationFramework::KinkTrkZeeTagTool:
Collaboration diagram for DerivationFramework::KinkTrkZeeTagTool:

Public Member Functions

 KinkTrkZeeTagTool (const std::string &t, const std::string &n, const IInterface *p)
 Constructor with parameters. More...
 
 ~KinkTrkZeeTagTool ()
 Destructor. More...
 
StatusCode initialize ()
 
StatusCode finalize ()
 
virtual StatusCode addBranches () const
 Check that the current event passes this filter. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 AlgTool interface methods. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool passTrigger (const std::vector< std::string > &triggers) const
 
bool checkTagElectron (const xAOD::Electron *ele) const
 
bool checkCluster (const xAOD::CaloCluster *clu) const
 
bool checkEleClusPair (const xAOD::Electron *ele, const xAOD::CaloCluster *clu) const
 
bool passElectronQuality (const xAOD::Electron *ele) const
 
bool passClusterQuality (const xAOD::CaloCluster *clu) const
 
bool passElectronTrigMatch (const xAOD::Electron *ele, const std::vector< std::string > &triggers) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< Trig::TrigDecisionToolm_trigDecisionTool
 
ToolHandle< TrigMatchToolm_trigMatchTool
 
std::vector< std::string > m_trigNames
 
float m_trigMatchDeltaR
 
bool m_doTrigMatch
 
SG::ReadHandleKey< xAOD::ElectronContainerm_electronSGKey { this, "ElectronContainerKey", "ElectronCollection", ""}
 
std::vector< std::string > m_electronIDKeys
 
float m_electronPtCut
 
float m_electronEtaMax
 
SG::ReadHandleKey< xAOD::CaloClusterContainerm_clusterSGKey { this, "ClusterContainerKey", "egammaClusters", ""}
 
float m_clusterEtCut
 
float m_clusterEtaMax
 
float m_diEleMassLow
 
float m_diEleMassHigh
 
float m_dPhiMax
 
SG::WriteHandleKey< std::vector< float > > m_KinkTrkDiEleMassKey { this, "KinkTrkDiEleMassKey", "KinkTrkDiEleMass", ""}
 
SG::WriteHandleKey< std::vector< float > > m_KinkTrkProbeEleEtKey { this, "KinkTrkProbeEleEtKey", "KinkTrkProbeEleEt", ""}
 
SG::WriteHandleKey< std::vector< float > > m_diEleMassKey
 
SG::WriteHandleKey< std::vector< float > > m_probeEleEtKey
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Author
shimp.nosp@m.ei.y.nosp@m.amamo.nosp@m.to@c.nosp@m.ern.c.nosp@m.h

Definition at line 35 of file KinkTrkZeeTagTool.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

◆ KinkTrkZeeTagTool()

DerivationFramework::KinkTrkZeeTagTool::KinkTrkZeeTagTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor with parameters.

Definition at line 15 of file KinkTrkZeeTagTool.cxx.

17  :
18  AthAlgTool(t, n, p),
19  m_trigDecisionTool("Trig::TrigDecisionTool/TrigDecisionTool"),
20  m_trigMatchTool("TrigMatchTool/TrigMatchTool"),
21  m_trigNames(std::vector<std::string>()),
22  m_trigMatchDeltaR(0.1),
23  m_doTrigMatch(false),
24  m_electronIDKeys(std::vector<std::string>()),
25  m_electronPtCut(0),
26  m_electronEtaMax(9999),
27  m_clusterEtCut(0),
28  m_clusterEtaMax(2.8),
29  m_diEleMassLow(50.),
30  m_diEleMassHigh(-1),
31  m_dPhiMax(10)
32 {
33  declareInterface<DerivationFramework::IAugmentationTool>(this);
34  declareProperty("TriggerDecisionTool", m_trigDecisionTool);
35  declareProperty("TriggerMatchTool", m_trigMatchTool);
36  declareProperty("Triggers", m_trigNames);
37  declareProperty("TriggerMatchDeltaR", m_trigMatchDeltaR);
38  declareProperty("RequireTriggerMatch", m_doTrigMatch);
39  declareProperty("ElectronIDKeys", m_electronIDKeys),
40  declareProperty("ElectronPtMin", m_electronPtCut);
41  declareProperty("ElectronEtaMax", m_electronEtaMax);
42  declareProperty("ClusterEtMin", m_clusterEtCut);
43  declareProperty("ClusterEtaMax", m_clusterEtaMax);
44  declareProperty("DiEleMassLow", m_diEleMassLow);
45  declareProperty("DiEleMassHigh", m_diEleMassHigh);
46  declareProperty("DeltaPhiMax", m_dPhiMax);
47 }

◆ ~KinkTrkZeeTagTool()

DerivationFramework::KinkTrkZeeTagTool::~KinkTrkZeeTagTool ( )

Destructor.

Definition at line 51 of file KinkTrkZeeTagTool.cxx.

51  {
52 }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::KinkTrkZeeTagTool::addBranches ( ) const
virtual

Check that the current event passes this filter.

Implements DerivationFramework::IAugmentationTool.

Definition at line 94 of file KinkTrkZeeTagTool.cxx.

95 {
97  ATH_CHECK(diEleMass.record(std::make_unique< std::vector<float> >()));
98 
100  ATH_CHECK(probeEleEt.record(std::make_unique< std::vector<float> >()));
101 
104 
105  for (const auto ele: *electrons) {
106  if (!checkTagElectron(ele)) continue;
107  for (const auto clu: *clusters) {
108  if (!checkCluster(clu)) continue;
109  if (!checkEleClusPair(ele, clu)) continue;
110  diEleMass->push_back((ele->p4()+clu->p4()).M());
111  probeEleEt->push_back(clu->et());
112  }
113  }
114 
115  return StatusCode::SUCCESS;
116 }

◆ checkCluster()

bool DerivationFramework::KinkTrkZeeTagTool::checkCluster ( const xAOD::CaloCluster clu) const
private

Definition at line 138 of file KinkTrkZeeTagTool.cxx.

139 {
140  if (!passClusterQuality(clu)) return false;
141  return true;
142 }

◆ checkEleClusPair()

bool DerivationFramework::KinkTrkZeeTagTool::checkEleClusPair ( const xAOD::Electron ele,
const xAOD::CaloCluster clu 
) const
private

Definition at line 145 of file KinkTrkZeeTagTool.cxx.

146 {
147  if (std::abs(ele->p4().DeltaPhi(clu->p4())) > m_dPhiMax) return false;
148  float mass = (ele->p4()+clu->p4()).M();
149  if (mass < m_diEleMassLow) return false;
150  if (mass > m_diEleMassHigh) return false;
151  return true;
152 }

◆ checkTagElectron()

bool DerivationFramework::KinkTrkZeeTagTool::checkTagElectron ( const xAOD::Electron ele) const
private

Definition at line 128 of file KinkTrkZeeTagTool.cxx.

129 {
130  if (!passElectronQuality(ele)) return false;
131  if (m_doTrigMatch) {
132  if (!passElectronTrigMatch(ele, m_trigNames)) return false;
133  }
134  return true;
135 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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

◆ finalize()

StatusCode DerivationFramework::KinkTrkZeeTagTool::finalize ( )

Definition at line 85 of file KinkTrkZeeTagTool.cxx.

86 {
87  ATH_MSG_VERBOSE("finalize() ...");
88  return StatusCode::SUCCESS;
89 }

◆ initialize()

StatusCode DerivationFramework::KinkTrkZeeTagTool::initialize ( )

Definition at line 56 of file KinkTrkZeeTagTool.cxx.

57 {
58  ATH_MSG_VERBOSE("initialize() ...");
59 
60  // trigger decision tool
61  if (m_trigNames.size()>0) {
62  if (m_trigDecisionTool.retrieve().isFailure()) {
63  ATH_MSG_FATAL("Failed to retrieve tool: " << m_trigDecisionTool);
64  return StatusCode::FAILURE;
65  }
66  ATH_MSG_INFO("TriggerDecisionTool: " << m_trigDecisionTool);
67 
68  if (m_trigMatchTool.empty()) {
69  ATH_MSG_FATAL("TrigMatchTool is not specified.");
70  return StatusCode::FAILURE;
71  }
72  CHECK(m_trigMatchTool.retrieve());
73  ATH_MSG_INFO("TrgMatchTool retrived successfully");
74  }
75 
80 
81  return StatusCode::SUCCESS;
82 }

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

◆ interfaceID()

static const InterfaceID& DerivationFramework::IAugmentationTool::interfaceID ( )
inlinestaticinherited

AlgTool interface methods.

Definition at line 31 of file IAugmentationTool.h.

31 { return IID_IAugmentationTool; }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

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

◆ passClusterQuality()

bool DerivationFramework::KinkTrkZeeTagTool::passClusterQuality ( const xAOD::CaloCluster clu) const
private

Definition at line 172 of file KinkTrkZeeTagTool.cxx.

173 {
174  if (clu->et() < m_clusterEtCut) return false;
175  if (std::abs(clu->eta()) > m_clusterEtaMax) return false;
176  return true;
177 }

◆ passElectronQuality()

bool DerivationFramework::KinkTrkZeeTagTool::passElectronQuality ( const xAOD::Electron ele) const
private

Definition at line 155 of file KinkTrkZeeTagTool.cxx.

156 {
157  if (ele->pt() < m_electronPtCut) return false;
158  if (std::abs(ele->eta()) > m_electronEtaMax) return false;
159  bool passID(false);
160  for (unsigned int i=0; i<m_electronIDKeys.size(); i++) {
161  if (ele->passSelection(passID, m_electronIDKeys[i])) {
162  if (passID) break;
163  } else {
164  ATH_MSG_WARNING("Cannot find the electron quality flag " << m_electronIDKeys[i]);
165  }
166  }
167  if (!passID) return false;
168  return true;
169 }

◆ passElectronTrigMatch()

bool DerivationFramework::KinkTrkZeeTagTool::passElectronTrigMatch ( const xAOD::Electron ele,
const std::vector< std::string > &  triggers 
) const
private

Definition at line 181 of file KinkTrkZeeTagTool.cxx.

182 {
183  for (unsigned int i=0; i<triggers.size(); i++) {
184  if (m_trigMatchTool->chainPassedByObject<TrigMatch::TrigElectronEF, xAOD::Electron>(ele, triggers[i], m_trigMatchDeltaR)) return true;
185  }
186  return false;
187 }

◆ passTrigger()

bool DerivationFramework::KinkTrkZeeTagTool::passTrigger ( const std::vector< std::string > &  triggers) const
private

Definition at line 119 of file KinkTrkZeeTagTool.cxx.

120 {
121  for (unsigned int i=0; i<triggers.size(); i++) {
122  if (m_trigDecisionTool->isPassed(triggers[i])) return true;
123  }
124  return false;
125 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_clusterEtaMax

float DerivationFramework::KinkTrkZeeTagTool::m_clusterEtaMax
private

Definition at line 73 of file KinkTrkZeeTagTool.h.

◆ m_clusterEtCut

float DerivationFramework::KinkTrkZeeTagTool::m_clusterEtCut
private

Definition at line 72 of file KinkTrkZeeTagTool.h.

◆ m_clusterSGKey

SG::ReadHandleKey<xAOD::CaloClusterContainer> DerivationFramework::KinkTrkZeeTagTool::m_clusterSGKey { this, "ClusterContainerKey", "egammaClusters", ""}
private

Definition at line 71 of file KinkTrkZeeTagTool.h.

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

float DerivationFramework::KinkTrkZeeTagTool::m_diEleMassHigh
private

Definition at line 76 of file KinkTrkZeeTagTool.h.

◆ m_diEleMassKey

SG::WriteHandleKey<std::vector<float> > DerivationFramework::KinkTrkZeeTagTool::m_diEleMassKey
private

Definition at line 82 of file KinkTrkZeeTagTool.h.

◆ m_diEleMassLow

float DerivationFramework::KinkTrkZeeTagTool::m_diEleMassLow
private

Definition at line 75 of file KinkTrkZeeTagTool.h.

◆ m_doTrigMatch

bool DerivationFramework::KinkTrkZeeTagTool::m_doTrigMatch
private

Definition at line 64 of file KinkTrkZeeTagTool.h.

◆ m_dPhiMax

float DerivationFramework::KinkTrkZeeTagTool::m_dPhiMax
private

Definition at line 77 of file KinkTrkZeeTagTool.h.

◆ m_electronEtaMax

float DerivationFramework::KinkTrkZeeTagTool::m_electronEtaMax
private

Definition at line 69 of file KinkTrkZeeTagTool.h.

◆ m_electronIDKeys

std::vector<std::string> DerivationFramework::KinkTrkZeeTagTool::m_electronIDKeys
private

Definition at line 67 of file KinkTrkZeeTagTool.h.

◆ m_electronPtCut

float DerivationFramework::KinkTrkZeeTagTool::m_electronPtCut
private

Definition at line 68 of file KinkTrkZeeTagTool.h.

◆ m_electronSGKey

SG::ReadHandleKey<xAOD::ElectronContainer> DerivationFramework::KinkTrkZeeTagTool::m_electronSGKey { this, "ElectronContainerKey", "ElectronCollection", ""}
private

Definition at line 66 of file KinkTrkZeeTagTool.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_KinkTrkDiEleMassKey

SG::WriteHandleKey<std::vector<float> > DerivationFramework::KinkTrkZeeTagTool::m_KinkTrkDiEleMassKey { this, "KinkTrkDiEleMassKey", "KinkTrkDiEleMass", ""}
private

Definition at line 79 of file KinkTrkZeeTagTool.h.

◆ m_KinkTrkProbeEleEtKey

SG::WriteHandleKey<std::vector<float> > DerivationFramework::KinkTrkZeeTagTool::m_KinkTrkProbeEleEtKey { this, "KinkTrkProbeEleEtKey", "KinkTrkProbeEleEt", ""}
private

Definition at line 80 of file KinkTrkZeeTagTool.h.

◆ m_probeEleEtKey

SG::WriteHandleKey<std::vector<float> > DerivationFramework::KinkTrkZeeTagTool::m_probeEleEtKey
private

Definition at line 83 of file KinkTrkZeeTagTool.h.

◆ m_trigDecisionTool

ToolHandle<Trig::TrigDecisionTool> DerivationFramework::KinkTrkZeeTagTool::m_trigDecisionTool
private

Definition at line 60 of file KinkTrkZeeTagTool.h.

◆ m_trigMatchDeltaR

float DerivationFramework::KinkTrkZeeTagTool::m_trigMatchDeltaR
private

Definition at line 63 of file KinkTrkZeeTagTool.h.

◆ m_trigMatchTool

ToolHandle<TrigMatchTool> DerivationFramework::KinkTrkZeeTagTool::m_trigMatchTool
private

Definition at line 61 of file KinkTrkZeeTagTool.h.

◆ m_trigNames

std::vector<std::string> DerivationFramework::KinkTrkZeeTagTool::m_trigNames
private

Definition at line 62 of file KinkTrkZeeTagTool.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:
DerivationFramework::KinkTrkZeeTagTool::m_doTrigMatch
bool m_doTrigMatch
Definition: KinkTrkZeeTagTool.h:64
DerivationFramework::KinkTrkZeeTagTool::passElectronTrigMatch
bool passElectronTrigMatch(const xAOD::Electron *ele, const std::vector< std::string > &triggers) const
Definition: KinkTrkZeeTagTool.cxx:181
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DerivationFramework::KinkTrkZeeTagTool::m_clusterEtaMax
float m_clusterEtaMax
Definition: KinkTrkZeeTagTool.h:73
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
DerivationFramework::KinkTrkZeeTagTool::m_clusterEtCut
float m_clusterEtCut
Definition: KinkTrkZeeTagTool.h:72
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DerivationFramework::KinkTrkZeeTagTool::m_diEleMassHigh
float m_diEleMassHigh
Definition: KinkTrkZeeTagTool.h:76
DerivationFramework::KinkTrkZeeTagTool::m_trigNames
std::vector< std::string > m_trigNames
Definition: KinkTrkZeeTagTool.h:62
DerivationFramework::KinkTrkZeeTagTool::m_electronEtaMax
float m_electronEtaMax
Definition: KinkTrkZeeTagTool.h:69
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::CaloCluster_v1::et
double et() const
Definition: CaloCluster_v1.h:856
DerivationFramework::KinkTrkZeeTagTool::m_KinkTrkDiEleMassKey
SG::WriteHandleKey< std::vector< float > > m_KinkTrkDiEleMassKey
Definition: KinkTrkZeeTagTool.h:79
DerivationFramework::KinkTrkZeeTagTool::passClusterQuality
bool passClusterQuality(const xAOD::CaloCluster *clu) const
Definition: KinkTrkZeeTagTool.cxx:172
xAOD::Egamma_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle as a TLoretzVector.
Definition: Egamma_v1.cxx:98
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
DerivationFramework::KinkTrkZeeTagTool::checkTagElectron
bool checkTagElectron(const xAOD::Electron *ele) const
Definition: KinkTrkZeeTagTool.cxx:128
egamma
Definition: egamma.h:58
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
DerivationFramework::KinkTrkZeeTagTool::m_trigMatchTool
ToolHandle< TrigMatchTool > m_trigMatchTool
Definition: KinkTrkZeeTagTool.h:61
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
lumiFormat.i
int i
Definition: lumiFormat.py:92
DerivationFramework::KinkTrkZeeTagTool::passElectronQuality
bool passElectronQuality(const xAOD::Electron *ele) const
Definition: KinkTrkZeeTagTool.cxx:155
beamspotman.n
n
Definition: beamspotman.py:731
DerivationFramework::KinkTrkZeeTagTool::m_electronSGKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronSGKey
Definition: KinkTrkZeeTagTool.h:66
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::KinkTrkZeeTagTool::m_trigDecisionTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Definition: KinkTrkZeeTagTool.h:60
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
DerivationFramework::KinkTrkZeeTagTool::m_electronIDKeys
std::vector< std::string > m_electronIDKeys
Definition: KinkTrkZeeTagTool.h:67
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
xAOD::CaloCluster_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: CaloCluster_v1.cxx:465
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
DerivationFramework::KinkTrkZeeTagTool::checkCluster
bool checkCluster(const xAOD::CaloCluster *clu) const
Definition: KinkTrkZeeTagTool.cxx:138
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAOD::Electron_v1
Definition: Electron_v1.h:34
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
DerivationFramework::KinkTrkZeeTagTool::m_dPhiMax
float m_dPhiMax
Definition: KinkTrkZeeTagTool.h:77
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
DerivationFramework::KinkTrkZeeTagTool::checkEleClusPair
bool checkEleClusPair(const xAOD::Electron *ele, const xAOD::CaloCluster *clu) const
Definition: KinkTrkZeeTagTool.cxx:145
xAOD::Egamma_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: Egamma_v1.cxx:65
DerivationFramework::KinkTrkZeeTagTool::m_electronPtCut
float m_electronPtCut
Definition: KinkTrkZeeTagTool.h:68
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
xAOD::Egamma_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: Egamma_v1.cxx:70
DerivationFramework::KinkTrkZeeTagTool::m_KinkTrkProbeEleEtKey
SG::WriteHandleKey< std::vector< float > > m_KinkTrkProbeEleEtKey
Definition: KinkTrkZeeTagTool.h:80
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
DerivationFramework::KinkTrkZeeTagTool::m_trigMatchDeltaR
float m_trigMatchDeltaR
Definition: KinkTrkZeeTagTool.h:63
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDetDD::electrons
@ electrons
Definition: InDetDD_Defs.h:17
xAOD::Egamma_v1::passSelection
bool passSelection(bool &value, const std::string &menu) const
Check if the egamma object pass a selection menu (using the name) If the menu decision is stored in t...
fitman.k
k
Definition: fitman.py:528
DerivationFramework::KinkTrkZeeTagTool::m_clusterSGKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterSGKey
Definition: KinkTrkZeeTagTool.h:71
DerivationFramework::KinkTrkZeeTagTool::m_diEleMassLow
float m_diEleMassLow
Definition: KinkTrkZeeTagTool.h:75