ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
HFORSelectionTool Class Referenceabstract

Example usage code: Athena only: To configure the tool, add the following to your joboptions: myTool = CfgMgr.HFORSelectionTool("ToolInstanceName",Property=4.0) import ROOT myTool.ENumProperty = ROOT.HFORSelectionTool.Val2 To use the tool in your algorithm (can use regular ToolHandle or asg::AnaToolHandle): #include "HFORTools/IHFORSelectionTool.h" ToolHandle<IHFORSelectionTool> myTool("HFORSelectionTool/ToolInstanceName") CHECK( myTool.retrieve() ); myTool->isSelected(...); //or whatever methods are implemented in IHFORSelectionTool. More...

#include <HFORSelectionTool.h>

Inheritance diagram for HFORSelectionTool:
Collaboration diagram for HFORSelectionTool:

Public Member Functions

 HFORSelectionTool (const std::string &name)
 
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function. More...
 
virtual StatusCode beginInputFile () override
 Function called when a new input file is opened. More...
 
virtual StatusCode endInputFile () override
 Function called when the currently open input file got completely processed. More...
 
virtual bool isSelected () override
 
HFORType getSampleType () override
 
std::string getSampleName () override
 
HFORType getDecisionType () override
 
virtual StatusCode sysInitialize ()
 Function initialising the tool in the correct way in Athena. More...
 
virtual void print () const
 Print the state of the tool. 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 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
 
 ASG_TOOL_INTERFACE (IHFORSelectionTool) virtual bool isSelected()=0
 

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

StatusCode setSampleType ()
 
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

double m_matchCone
 
std::string m_truthJetCollectionName
 
HFORType m_sampleType
 
HFORType m_decisionType
 
unsigned long int m_sampleRunNumber
 
std::string m_sampleName
 
unsigned long int m_evtCounterAll
 
unsigned long int m_evtCounterKilled
 
HFOR_Truth m_hforTruth
 
std::string m_runConfigFile
 
std::string m_HFORStrategy
 
bool m_isConfigured
 
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store. More...
 
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store. More...
 
bool m_beginInputFileCalled
 Flag helping to discover when the tool misses the opening of the first input file. More...
 
bool m_useIncidents
 
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
 

Callback functions helping in metadata reading/writing

void setUseIncidents (const bool flag)
 
virtual void handle (const Incident &inc)
 Function receiving incidents from IncidentSvc/TEvent. More...
 
virtual StatusCode beginEvent ()
 Function called when a new events is loaded. More...
 
virtual StatusCode metaDataStop ()
 Function called when the tool should write out its metadata. More...
 

Detailed Description

Example usage code: Athena only: To configure the tool, add the following to your joboptions: myTool = CfgMgr.HFORSelectionTool("ToolInstanceName",Property=4.0) import ROOT myTool.ENumProperty = ROOT.HFORSelectionTool.Val2 To use the tool in your algorithm (can use regular ToolHandle or asg::AnaToolHandle): #include "HFORTools/IHFORSelectionTool.h" ToolHandle<IHFORSelectionTool> myTool("HFORSelectionTool/ToolInstanceName") CHECK( myTool.retrieve() ); myTool->isSelected(...); //or whatever methods are implemented in IHFORSelectionTool.

Dual use: Alternative for c++ configuration and usage (with or without athena): #include "AsgTools/AnaToolHandle.h" #include "HFORTools/IHFORSelectionTool.h" asg::AnaToolHandle<IHFORSelectionTool> myTool("HFORSelectionTool/ToolInstanceName"); myTool.setProperty( "Property", 4.0 ); myTool.setProperty( "ENumProperty", myTool.initialize(); myTool->isSelected(....); //or whatever methods are implemented in IHFORSelectionTool

Definition at line 42 of file HFORSelectionTool.h.

Member Typedef Documentation

◆ MetaStore_t

Type of the metadata store object in Athena.

Definition at line 66 of file AsgMetadataTool.h.

◆ MetaStorePtr_t

Type of the metadata store pointer in standalone mode.

Definition at line 68 of file AsgMetadataTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ HFORSelectionTool()

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

Definition at line 36 of file HFORSelectionTool.cxx.

41  m_sampleName ("unknown"),
42  m_evtCounterAll (0),
44  m_isConfigured (false) {
45  declareProperty( "MatchCone", m_matchCone = 0.4 );
46  declareProperty( "runConfigFile", m_runConfigFile = "HFORTools/mc15_AlpgenPythia_2016.cfg" ) ;
47  declareProperty( "HFORStrategy", m_HFORStrategy = "DRBased" );
48  declareProperty( "TruthJetCollectionName", m_truthJetCollectionName = "AntiKt4TruthWZJets" );
49 }

Member Function Documentation

◆ ASG_TOOL_INTERFACE()

IHFORSelectionTool::ASG_TOOL_INTERFACE ( IHFORSelectionTool  )
pure virtualinherited

◆ beginEvent()

StatusCode asg::AsgMetadataTool::beginEvent ( )
protectedvirtualinherited

Function called when a new events is loaded.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, TauAnalysisTools::TauSelectionTool, TauAnalysisTools::DiTauSelectionTool, TauAnalysisTools::CommonSmearingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, Trig::TrigDecisionTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, Trig::TrigConfBunchCrossingTool, xAODMaker::TriggerMenuMetaDataTool, and Trig::xAODBunchCrossingTool.

Definition at line 196 of file AsgMetadataTool.cxx.

196  {
197 
198  // Return gracefully:
199  return StatusCode::SUCCESS;
200  }

◆ beginInputFile()

StatusCode HFORSelectionTool::beginInputFile ( )
overridevirtual

Function called when a new input file is opened.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 97 of file HFORSelectionTool.cxx.

97  {
98 
99  //ATH_MSG_DEBUG( __PRETTY_FUNCTION__ << " File change detected, will check the sample type " ) ;
100  //ATH_CHECK( setSampleType() ) ;
101  m_isConfigured = false ;
102 
103  return StatusCode::SUCCESS ;
104 }

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

◆ endInputFile()

StatusCode HFORSelectionTool::endInputFile ( )
overridevirtual

Function called when the currently open input file got completely processed.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 112 of file HFORSelectionTool.cxx.

112  {
113 
114  ATH_MSG_DEBUG( __PRETTY_FUNCTION__ << " End Of File detected ");
115  m_isConfigured = false ;
116 
117  if (m_evtCounterAll != 0) {
118  ATH_MSG_DEBUG(" ") ;
119  ATH_MSG_DEBUG("****************************************************************************") ;
120  ATH_MSG_DEBUG(__PRETTY_FUNCTION__ << ": Sample type : " << m_sampleName ) ;
121  ATH_MSG_DEBUG(__PRETTY_FUNCTION__ << ": Total Events : " << m_evtCounterAll );
122  ATH_MSG_DEBUG(__PRETTY_FUNCTION__ << ": Killed Events : " << m_evtCounterKilled <<
123  " (" << 100*float(m_evtCounterKilled)/float(m_evtCounterAll) << "%)");
124  ATH_MSG_DEBUG("****************************************************************************") ;
125  ATH_MSG_DEBUG(" ") ;
126  }
127 
128  //Reset the counters
129  m_evtCounterAll = 0;
130  m_evtCounterKilled = 0;
131 
132  return StatusCode::SUCCESS ;
133 }

◆ 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

◆ getDecisionType()

HFORType HFORSelectionTool::getDecisionType ( )
overridevirtual

Implements IHFORSelectionTool.

Definition at line 296 of file HFORSelectionTool.cxx.

296  {
297  //TODO: Provide a method to return a string (like "isBB" etc.)
298  return m_decisionType ;
299 }

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

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

◆ getSampleName()

std::string HFORSelectionTool::getSampleName ( )
overridevirtual

Implements IHFORSelectionTool.

Definition at line 282 of file HFORSelectionTool.cxx.

282  {
283  if (! m_isConfigured) {
284  ATH_CHECK( setSampleType(), "unknown" );
285  m_isConfigured = true;
286  }
287  //Return a string with the type of the sample (bb, cc, c, light or unknown)
288  return m_sampleName ;
289 }

◆ getSampleType()

HFORType HFORSelectionTool::getSampleType ( )
overridevirtual

Implements IHFORSelectionTool.

Definition at line 269 of file HFORSelectionTool.cxx.

269  {
270  if (! m_isConfigured) {
272  m_isConfigured = true;
273  }
274  //Return an enum object with the type of the sample
275  return m_sampleType ;
276 }

◆ handle()

void asg::AsgMetadataTool::handle ( const Incident &  inc)
protectedvirtualinherited

Function receiving incidents from IncidentSvc/TEvent.

Reimplemented in Trig::TrigDecisionTool.

Definition at line 130 of file AsgMetadataTool.cxx.

130  {
131 
132  // Tell the user what's happening:
133  ATH_MSG_VERBOSE( "Callback received with incident: " << inc.type() );
134 
135  // Call the appropriate member function:
136  if( inc.type() == IncidentType::BeginInputFile ) {
137  m_beginInputFileCalled = true;
138  if( beginInputFile().isFailure() ) {
139  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
140  throw std::runtime_error( "Couldn't call beginInputFile()" );
141  }
142  } else if( inc.type() == IncidentType::EndInputFile ) {
143  if( endInputFile().isFailure() ) {
144  ATH_MSG_FATAL( "Failed to call endInputFile()" );
145  throw std::runtime_error( "Couldn't call endInputFile()" );
146  }
147  } else if( inc.type() == IncidentType::BeginEvent ) {
148  // If the tool didn't catch the begin input file incident for the
149  // first input file of the job, then call the appropriate function
150  // now.
151  if( ! m_beginInputFileCalled ) {
152  m_beginInputFileCalled = true;
153  if( beginInputFile().isFailure() ) {
154  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
155  throw std::runtime_error( "Couldn't call beginInputFile()" );
156  }
157  }
158  if( beginEvent().isFailure() ) {
159  ATH_MSG_FATAL( "Failed to call beginEvent()" );
160  throw std::runtime_error( "Couldn't call beginEvent()" );
161  }
162 
163  #ifdef XAOD_STANDALONE
164  } else if( inc.type() == IncidentType::MetaDataStop ) {
165  if( metaDataStop().isFailure() ) {
166  ATH_MSG_FATAL( "Failed to call metaDataStop()" );
167  throw std::runtime_error( "Couldn't call metaDataStop()" );
168  }
169 
170  #endif // XAOD_STANDALONE
171  } else {
172  ATH_MSG_WARNING( "Unknown incident type received in AsgMetaDataTool: " << inc.type() );
173  }
174 
175  return;
176  }

◆ initialize()

StatusCode HFORSelectionTool::initialize ( )
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 57 of file HFORSelectionTool.cxx.

57  {
58 
59  // Greet the user:
60  ATH_MSG_INFO( __PRETTY_FUNCTION__ << ": Starting tool initialization ..." );
61  ATH_MSG_INFO( __PRETTY_FUNCTION__ << ": Using matching cone deltaR = " << m_matchCone );
62  ATH_MSG_INFO(" ") ;
63  ATH_MSG_INFO( __PRETTY_FUNCTION__ << " ************************************ " );
64  ATH_MSG_INFO( __PRETTY_FUNCTION__ << " ** THIS TOOL IS UNDER DEVELOPMENT ** " );
65  ATH_MSG_INFO( __PRETTY_FUNCTION__ << " ************************************ " );
66  ATH_MSG_INFO(" ") ;
67 
68  //Initialize the Overlap Removal engine
70 
71  if(m_HFORStrategy == "DRBased"){
73  ATH_MSG_INFO( __PRETTY_FUNCTION__ << " ** Angular-Based HFOR ** " );
74  } else if(m_HFORStrategy == "JetBased"){
76  ATH_MSG_INFO( __PRETTY_FUNCTION__ << " ** Jet-Based HFOR ** " );
77  } else {
78  ATH_MSG_ERROR( __PRETTY_FUNCTION__ << " ** HFORStrategy is not known! ** " );
79  return StatusCode::FAILURE;
80  }
81 
82  //FIXME: Check the return of this also ..
85 
86  ATH_MSG_INFO( __PRETTY_FUNCTION__ << ": Initialization done.");
87  m_isConfigured = false ;
88 
89  return StatusCode::SUCCESS ;
90 }

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

◆ inputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore ( ) const
inherited

Accessor for the input metadata store.

Definition at line 88 of file AsgMetadataTool.cxx.

88  {
89 
90 #ifdef XAOD_STANDALONE
91  return &m_inputMetaStore;
92 #else // XAOD_STANDALONE
93  return m_inputMetaStore;
94 #endif // XAOD_STANDALONE
95  }

◆ isSelected()

bool HFORSelectionTool::isSelected ( )
overridevirtual

Definition at line 144 of file HFORSelectionTool.cxx.

144  {
145 
146  if (! m_isConfigured) {
147  ATH_CHECK( setSampleType(), false ) ;
148  m_isConfigured = true ;
149  }
150 
151  //This toll will tell if this event is to removed (returns 0) or kept
152  //(returns 1)
153  //In case of error (container not present) it returns -1
154 
155  bool selected = true ;
156 
158 
159  // Only run this function on Monte Carlo
160  const xAOD::EventInfo* eventInfo = nullptr;
161  ATH_CHECK( evtStore()->retrieve(eventInfo, "EventInfo"), false );
162  const bool isSim = eventInfo->eventType(xAOD::EventInfo::EventType::IS_SIMULATION);
163  if ( !isSim ) {
164  ATH_MSG_DEBUG (__PRETTY_FUNCTION__ << "It is a data event... nothing to be done...");
165  return selected;
166  }
167 
168 
169  //===========================
170  // Truth Event
171  //===========================
172  std::string truthCollectionName = "TruthEvents" ;
173  const xAOD::TruthEventContainer* truthEvent = nullptr ;
174  ATH_CHECK ( evtStore()->retrieve(truthEvent, truthCollectionName ), false ) ;
175 
176  //=========================================
177  // truth JET info (not needed for DR-HFOR)
178  //=========================================
179  const xAOD::JetContainer* jets = nullptr ;
181 
182  //=========================================================
183  // Truth Event DeltaR based and Jet Based switched in init
184  //=========================================================
185  m_decisionType = m_hforTruth.findOverlap(*truthEvent, jets) ;
186 
187 
188  ATH_MSG_DEBUG( __PRETTY_FUNCTION__ << " Event Type " << (unsigned int) m_decisionType) ;
189 
190  selected = m_decisionType != HFORType::kill ;
191 
192  //BookKeeping of how many kills/passed we have.
193  //TODO: create a dictionary with key as sample type so we can count per type,
194  //and per run. This allows for debugging
195  m_evtCounterAll++ ;
196  if (! selected) {
198  }
199 
200  return selected ;
201 
202 }

◆ metaDataStop()

StatusCode asg::AsgMetadataTool::metaDataStop ( )
protectedvirtualinherited

Function called when the tool should write out its metadata.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in xAODMaker::FileMetaDataTool, BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 204 of file AsgMetadataTool.cxx.

204  {
205 
206  // Return gracefully:
207  return StatusCode::SUCCESS;
208  }

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

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

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

◆ outputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore ( ) const
inherited

Accessor for the output metadata store.

Definition at line 97 of file AsgMetadataTool.cxx.

97  {
98 
99 #ifdef XAOD_STANDALONE
100  return &m_outputMetaStore;
101 #else // XAOD_STANDALONE
102  return m_outputMetaStore;
103 #endif // XAOD_STANDALONE
104  }

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

◆ setSampleType()

StatusCode HFORSelectionTool::setSampleType ( )
private

Definition at line 215 of file HFORSelectionTool.cxx.

215  {
216 
217  //Check what type of MC sample we have.
218 
219  //=============
220  // Event Info
221  //=============
222  const xAOD::EventInfo* eventInfo = nullptr;
223  ATH_CHECK( evtStore()->retrieve( eventInfo, "EventInfo" ) );
224 
225  // Only run this function on Monte Carlo
226  const bool isSim = eventInfo->eventType(xAOD::EventInfo::EventType::IS_SIMULATION);
227  if ( !isSim ) {
228  ATH_MSG_DEBUG (__PRETTY_FUNCTION__ << "It is a data event... nothing to be done...");
229  return StatusCode::SUCCESS;
230  }
231 
232 
233  //Derivations changes runNumber due to pileup reweight,
234  //while mcChannelNumber is 0 in Truth derivations
235  m_sampleRunNumber = eventInfo->mcChannelNumber() ;
236  if (m_sampleRunNumber == 0 ) {
237  ATH_MSG_WARNING(__PRETTY_FUNCTION__ << "mcChannelNumber is 0, falling back to runNumber" ) ;
238  m_sampleRunNumber = eventInfo->runNumber() ;
239  }
240 
242 
243  //Some bookkeeping
246 
248  ATH_MSG_WARNING(__PRETTY_FUNCTION__ <<
249  ": This MC (Run " << m_sampleRunNumber <<
250  " ) is not an mc15 Alpgen+Pythia6 sample - this tool is useless ") ;
251  }
252  else {
253  ATH_MSG_INFO(__PRETTY_FUNCTION__ <<
254  ": Good ! This is a valid Alpgen+Pythia6 sample ( " << m_sampleName << " )" ) ;
255  ATH_MSG_INFO(__PRETTY_FUNCTION__ << ": MC Channel Number = " << eventInfo->mcChannelNumber()
256  << " , MC Run Number = " << eventInfo->runNumber() );
257  }
258 
259  //This routine never fails (unless it cannot get the container)
260  //It may not identify the sample, in this case it will do nothing
261  return StatusCode::SUCCESS;
262 }

◆ setUseIncidents()

void asg::AsgMetadataTool::setUseIncidents ( const bool  flag)
inlineprotectedinherited

Definition at line 132 of file AsgMetadataTool.h.

133  {
135  }

◆ sysInitialize()

StatusCode asg::AsgMetadataTool::sysInitialize ( )
virtualinherited

Function initialising the tool in the correct way in Athena.

This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.

Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.

Definition at line 110 of file AsgMetadataTool.cxx.

110  {
111 
112 #ifndef XAOD_STANDALONE
113  if (m_useIncidents) {
114  // Connect to the IncidentSvc:
115  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
116  ATH_CHECK( incSvc.retrieve() );
117 
118  // Set up the right callbacks: don't rethrow exceptions, any failure and we should end
119  incSvc->addListener( this, IncidentType::BeginEvent, 0, false );
120  }
121  // Let the base class do its thing:
122  ATH_CHECK( AlgTool::sysInitialize() );
123 
124 #endif // not XAOD_STANDALONE
125 
126  // Return gracefully:
127  return StatusCode::SUCCESS;
128  }

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

bool asg::AsgMetadataTool::m_beginInputFileCalled
privateinherited

Flag helping to discover when the tool misses the opening of the first input file.

Definition at line 126 of file AsgMetadataTool.h.

◆ m_decisionType

HFORType HFORSelectionTool::m_decisionType
private

Definition at line 82 of file HFORSelectionTool.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_evtCounterAll

unsigned long int HFORSelectionTool::m_evtCounterAll
private

Definition at line 86 of file HFORSelectionTool.h.

◆ m_evtCounterKilled

unsigned long int HFORSelectionTool::m_evtCounterKilled
private

Definition at line 87 of file HFORSelectionTool.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_HFORStrategy

std::string HFORSelectionTool::m_HFORStrategy
private

Definition at line 92 of file HFORSelectionTool.h.

◆ m_hforTruth

HFOR_Truth HFORSelectionTool::m_hforTruth
private

Definition at line 89 of file HFORSelectionTool.h.

◆ m_inputMetaStore

MetaStore_t asg::AsgMetadataTool::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 119 of file AsgMetadataTool.h.

◆ m_isConfigured

bool HFORSelectionTool::m_isConfigured
private

Definition at line 93 of file HFORSelectionTool.h.

◆ m_matchCone

double HFORSelectionTool::m_matchCone
private

Definition at line 79 of file HFORSelectionTool.h.

◆ m_outputMetaStore

MetaStore_t asg::AsgMetadataTool::m_outputMetaStore
privateinherited

Object accessing the output metadata store.

Definition at line 121 of file AsgMetadataTool.h.

◆ m_runConfigFile

std::string HFORSelectionTool::m_runConfigFile
private

Definition at line 91 of file HFORSelectionTool.h.

◆ m_sampleName

std::string HFORSelectionTool::m_sampleName
private

Definition at line 84 of file HFORSelectionTool.h.

◆ m_sampleRunNumber

unsigned long int HFORSelectionTool::m_sampleRunNumber
private

Definition at line 83 of file HFORSelectionTool.h.

◆ m_sampleType

HFORType HFORSelectionTool::m_sampleType
private

Definition at line 81 of file HFORSelectionTool.h.

◆ m_truthJetCollectionName

std::string HFORSelectionTool::m_truthJetCollectionName
private

Definition at line 80 of file HFORSelectionTool.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.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:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
HFORSelectionTool::m_sampleType
HFORType m_sampleType
Definition: HFORSelectionTool.h:81
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
HFOR_Truth
Definition: HFOR_Truth.h:30
asg::AsgMetadataTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new events is loaded.
Definition: AsgMetadataTool.cxx:196
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
HFORSelectionTool::m_HFORStrategy
std::string m_HFORStrategy
Definition: HFORSelectionTool.h:92
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
HFORSelectionTool::m_sampleName
std::string m_sampleName
Definition: HFORSelectionTool.h:84
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
HFORType::noType
@ noType
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
HFOR_Truth::setSampleType
void setSampleType(unsigned int runNumber)
Definition: HFOR_Truth.cxx:687
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
HFORSelectionTool::m_runConfigFile
std::string m_runConfigFile
Definition: HFORSelectionTool.h:91
asg::AsgMetadataTool::m_beginInputFileCalled
bool m_beginInputFileCalled
Flag helping to discover when the tool misses the opening of the first input file.
Definition: AsgMetadataTool.h:126
asg::AsgMetadataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: AsgMetadataTool.cxx:188
asg::AsgMetadataTool::m_outputMetaStore
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
Definition: AsgMetadataTool.h:121
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HFORSelectionTool::m_evtCounterAll
unsigned long int m_evtCounterAll
Definition: HFORSelectionTool.h:86
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
HFORSelectionTool::m_isConfigured
bool m_isConfigured
Definition: HFORSelectionTool.h:93
HFOR_Truth::readRunConfig
int readRunConfig(std::string runConfigFile)
Definition: HFOR_Truth.cxx:658
xAOD::EventInfo_v1::runNumber
uint32_t runNumber() const
The current event's run number.
HFORSelectionTool::m_hforTruth
HFOR_Truth m_hforTruth
Definition: HFORSelectionTool.h:89
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
HFORSelectionTool::m_decisionType
HFORType m_decisionType
Definition: HFORSelectionTool.h:82
xAOD::EventInfo_v1::mcChannelNumber
uint32_t mcChannelNumber() const
The MC generator's channel number.
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
HFOR_Truth::getSampleName
std::string getSampleName()
Definition: HFOR_Truth.cxx:720
HFORSelectionTool::m_sampleRunNumber
unsigned long int m_sampleRunNumber
Definition: HFORSelectionTool.h:83
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
asg::AsgMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
Definition: AsgMetadataTool.cxx:180
master.flag
bool flag
Definition: master.py:29
HFORSelectionTool::setSampleType
StatusCode setSampleType()
Definition: HFORSelectionTool.cxx:215
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:204
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
HFOR_Truth::getSampleType
HFORType getSampleType()
Definition: HFOR_Truth.cxx:712
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
asg::AsgMetadataTool::m_inputMetaStore
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
Definition: AsgMetadataTool.h:119
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
HFOR_Truth::findOverlap
HFORType findOverlap(const xAOD::TruthEventContainer &truthEvent, const xAOD::JetContainer *jets=nullptr)
Definition: HFOR_Truth.cxx:106
HFORType::kill
@ kill
a
TList * a
Definition: liststreamerinfos.cxx:10
h
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
HFORSelectionTool::m_truthJetCollectionName
std::string m_truthJetCollectionName
Definition: HFORSelectionTool.h:80
HFORSelectionTool::m_evtCounterKilled
unsigned long int m_evtCounterKilled
Definition: HFORSelectionTool.h:87
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
HFORSelectionTool::m_matchCone
double m_matchCone
Definition: HFORSelectionTool.h:79
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
SG::DataProxy
Definition: DataProxy.h:44
HFOR_Truth::setAngularBasedHFOR
void setAngularBasedHFOR()
Definition: HFOR_Truth.h:57
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
xAOD::EventInfo_v1::eventType
bool eventType(EventType type) const
Check for one particular bitmask value.
HFOR_Truth::setJetBasedHFOR
void setJetBasedHFOR()
Definition: HFOR_Truth.h:54
ServiceHandle< IIncidentSvc >
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128