ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
TauAnalysisTools::DiTauSelectionTool Class Referenceabstract

#include <DiTauSelectionTool.h>

Inheritance diagram for TauAnalysisTools::DiTauSelectionTool:
Collaboration diagram for TauAnalysisTools::DiTauSelectionTool:

Public Member Functions

virtual void print () const =0
 Print the state of the tool. More...
 
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
 

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

Protected Attributes

TFile * m_fOutFile
 
std::shared_ptr< TH1F > m_hCutFlow
 
bool m_bCreateControlPlots
 
asg::AcceptInfo m_aAccept
 Object used to store selection information. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

virtual StatusCode initialize () override
 Function initialising the tool. More...
 
virtual const asg::AcceptInfogetAcceptInfo () const override
 Get an object describing the "selection steps" of the tool. More...
 
virtual asg::AcceptData accept (const xAOD::IParticle *p) const override
 Get the decision using a generic IParticle pointer. More...
 
virtual asg::AcceptData accept (const xAOD::DiTauJet &tau) const override
 Get the decision for a specific TauJet object. More...
 
virtual void setOutFile (TFile *fOutFile) override
 Set output file for control histograms. More...
 
virtual void writeControlHistograms () override
 Write control histograms to output file. More...
 
virtual StatusCode beginEvent () override
 Function called when a new events is loaded. More...
 
template<typename T , typename U >
void FillRegionVector (std::vector< T > &vRegion, U tMin, U tMax) const
 
template<typename T , typename U >
void FillValueVector (std::vector< T > &vRegion, U tVal) const
 
template<typename T >
void PrintConfigRegion (const std::string &sCutName, std::vector< T > &vRegion) const
 
template<typename T >
void PrintConfigValue (const std::string &sCutName, std::vector< T > &vRegion) const
 
template<typename T >
void PrintConfigValue (const std::string &sCutName, T &sVal) const
 
void setupCutFlowHistogram ()
 
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

int m_iSelectionCuts
 
std::vector< float > m_vPtRegion
 
std::vector< float > m_vAbsEtaRegion
 
std::vector< float > m_vNSubjetsRegion
 
float m_dPtMin
 
float m_dPtMax
 
float m_dAbsEtaMin
 
float m_dAbsEtaMax
 
float m_dNSubjetsMax
 
float m_dNSubjetsMin
 
std::string m_sConfigPath
 
std::map< DiTauSelectionCuts, std::unique_ptr< TauAnalysisTools::DiTauSelectionCut > > m_cMap
 
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
 

Friends

class DiTauSelectionCut
 need to define cut classes to be friends to access protected variables, needed for access of cut thresholds More...
 
class DiTauSelectionCutPt
 
class DiTauSelectionCutAbsEta
 
class DiTauSelectionCutNSubjets
 

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 beginInputFile ()
 Function called when a new input file is opened. More...
 
virtual StatusCode endInputFile ()
 Function called when the currently open input file got completely processed. More...
 
virtual StatusCode metaDataStop ()
 Function called when the tool should write out its metadata. More...
 

Detailed Description

Definition at line 38 of file DiTauSelectionTool.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.

Member Function Documentation

◆ accept() [1/2]

asg::AcceptData DiTauSelectionTool::accept ( const xAOD::DiTauJet tau) const
overrideprivatevirtual

Get the decision for a specific TauJet object.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 251 of file DiTauSelectionTool.cxx.

252 {
253  asg::AcceptData acceptData (&m_aAccept);
254 
255  int iNBin = 0;
256 
258  {
259  // fill cutflow 'All' bin
260  m_hCutFlow->Fill(iNBin);
261  // fill main distributions before all cuts
262  for (const auto& entry : m_cMap)
263  entry.second->fillHistogramCutPre(xDiTau);
264  }
265  try
266  {
267  for (const auto& entry : m_cMap)
268  {
269  if (m_iSelectionCuts & entry.first)
270  {
271  if (!entry.second->accept(xDiTau, acceptData))
272  return acceptData;
273  else
274  {
276  {
277  // fill cutflow after each passed cut
278  iNBin++;
279  m_hCutFlow->Fill(iNBin);
280  }
281  }
282  }
283  }
284  }
285  catch (const std::runtime_error& error)
286  {
287  // LEGACY: In practical terms this should probably just throw, not
288  // print a warning/error and then continue on. However, I leave
289  // that to the experts who probably had a reason not to let the
290  // exception escape. For now I just downgraded it from error to
291  // warning and limited the number of warnings (04 Jan 22).
292  static std::atomic<uint64_t> warning_count (0u);
293  auto mycount = ++ warning_count;
294  if (mycount < 10u)
295  {
296  ATH_MSG_WARNING(error.what());
297  if (mycount == 9u)
298  ATH_MSG_WARNING ("this is your last warning");
299  }
300  }
301 
302  // fill main distributions after all cuts
304  {
305  for (const auto& entry : m_cMap)
306  entry.second->fillHistogramCut(xDiTau);
307  }
308 
309  // // Return the result:
310  return acceptData;
311 }

◆ accept() [2/2]

asg::AcceptData DiTauSelectionTool::accept ( const xAOD::IParticle p) const
overrideprivatevirtual

Get the decision using a generic IParticle pointer.

Implements IAsgSelectionTool.

Definition at line 229 of file DiTauSelectionTool.cxx.

230 {
231  // Check if this is a jet:
232  if( xP->type() != xAOD::Type::Jet )
233  {
234  ATH_MSG_ERROR( "accept(...) Function received a non-jet" );
235  return asg::AcceptData (&m_aAccept);
236  }
237 
238  // Cast it to a ditau:
239  const xAOD::DiTauJet* xDiTau = dynamic_cast< const xAOD::DiTauJet* >( xP );
240  if( ! xDiTau )
241  {
242  ATH_MSG_FATAL( "accept(...) Failed to cast particle to tau" );
243  return asg::AcceptData (&m_aAccept);
244  }
245 
246  // Let the specific function do the work:
247  return accept( *xDiTau );
248 }

◆ beginEvent()

StatusCode DiTauSelectionTool::beginEvent ( )
overrideprivatevirtual

Function called when a new events is loaded.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 217 of file DiTauSelectionTool.cxx.

218 {
219  return StatusCode::SUCCESS;
220 }

◆ beginInputFile()

StatusCode asg::AsgMetadataTool::beginInputFile ( )
protectedvirtualinherited

Function called when a new input file is opened.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in AsgElectronEfficiencyCorrectionTool, TrigConf::xAODConfigTool, PMGTools::PMGTruthWeightTool, BookkeeperTool, xAODMaker::FileMetaDataTool, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.

Definition at line 180 of file AsgMetadataTool.cxx.

180  {
181 
182  // Return gracefully:
183  return StatusCode::SUCCESS;
184  }

◆ 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 asg::AsgMetadataTool::endInputFile ( )
protectedvirtualinherited

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

Dummy implementation that can be overridden by the derived tool.

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

Definition at line 188 of file AsgMetadataTool.cxx.

188  {
189 
190  // Return gracefully:
191  return StatusCode::SUCCESS;
192  }

◆ 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

◆ FillRegionVector()

template<typename T , typename U >
void DiTauSelectionTool::FillRegionVector ( std::vector< T > &  vRegion,
tMin,
tMax 
) const
private

Definition at line 363 of file DiTauSelectionTool.cxx.

364 {
365  if (!vRegion.empty())
366  return;
367  if (tMin == tMin) // if tMin is NAN, then this assumption fails and -inf is added to the vector
368  vRegion.push_back(tMin);
369  else
370  vRegion.push_back(-std::numeric_limits<T>::infinity());
371 
372  if (tMax == tMax) // if tMax is NAN, then this assumption fails and inf is added to the vector
373  vRegion.push_back(tMax);
374  else
375  vRegion.push_back(std::numeric_limits<T>::infinity());
376 }

◆ FillValueVector()

template<typename T , typename U >
void DiTauSelectionTool::FillValueVector ( std::vector< T > &  vRegion,
tVal 
) const
private

Definition at line 380 of file DiTauSelectionTool.cxx.

381 {
382  if (!vRegion.empty())
383  return;
384  if (tVal == tVal) // if tMax is NAN, then this assumption fails and nothing is added to the vector
385  vRegion.push_back(tVal);
386 }

◆ getAcceptInfo()

const asg::AcceptInfo & DiTauSelectionTool::getAcceptInfo ( ) const
overrideprivatevirtual

Get an object describing the "selection steps" of the tool.

Implements IAsgSelectionTool.

Definition at line 223 of file DiTauSelectionTool.cxx.

224 {
225  return m_aAccept;
226 }

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

◆ 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 DiTauSelectionTool::initialize ( )
overrideprivatevirtual

Function initialising the tool.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 57 of file DiTauSelectionTool.cxx.

58 {
59  bool bConfigViaConfigFile = !m_sConfigPath.empty();
60  bool bConfigViaProperties = false;
61  if (!bConfigViaProperties and !m_vPtRegion.empty()) bConfigViaProperties = true;
62  if (!bConfigViaProperties and m_dPtMin == m_dPtMin) bConfigViaProperties = true;
63  if (!bConfigViaProperties and m_dPtMax == m_dPtMax) bConfigViaProperties = true;
64  if (!bConfigViaProperties and !m_vAbsEtaRegion.empty()) bConfigViaProperties = true;
65  if (!bConfigViaProperties and m_dAbsEtaMin == m_dAbsEtaMin) bConfigViaProperties = true;
66  if (!bConfigViaProperties and m_dAbsEtaMax == m_dAbsEtaMax) bConfigViaProperties = true;
67  if (!bConfigViaProperties and !m_vNSubjetsRegion.empty()) bConfigViaProperties = true;
68  if (!bConfigViaProperties and m_dNSubjetsMin == m_dNSubjetsMin) bConfigViaProperties = true;
69  if (!bConfigViaProperties and m_dNSubjetsMax == m_dNSubjetsMax) bConfigViaProperties = true;
70 
71  if (bConfigViaConfigFile and bConfigViaProperties)
72  {
73  ATH_MSG_WARNING("Configured tool via setProperty and configuration file, which may lead to unexpected configuration.");
74  ATH_MSG_WARNING("In doubt check the configuration that is printed when the tool is initialized and the message level is set to debug");
75  ATH_MSG_WARNING("For further details please refer to the documentation:");
76  ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/master/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst");
77  }
78  if (!bConfigViaConfigFile and !bConfigViaProperties)
79  {
80  ATH_MSG_WARNING("No cut configuration provided, the tool will not do anything. For further details please refer to the documentation:");
81  ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/master/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst");
82  }
83 
84  if (bConfigViaConfigFile)
85  {
86  TEnv rEnv;
87  std::string sInputFilePath = PathResolverFindCalibFile(m_sConfigPath);
88 
89  if (!testFileForEOFContainsCharacters(sInputFilePath))
90  ATH_MSG_WARNING("Config file for DiTauSelectionTool with path "<<sInputFilePath<<" does not contain an empty last line. The tool might not be properly configured!");
91 
92  rEnv.ReadFile(sInputFilePath.c_str(),
93  kEnvAll);
94 
95  std::vector<std::string> vCuts;
96  // if Cuts are specified in the config file take these ones, if not take all
97  // specified in the config
98  if (rEnv.Defined("SelectionCuts"))
99  TauAnalysisTools::split(rEnv, "SelectionCuts", ' ', vCuts);
100  else
101  {
102  auto lList = rEnv.GetTable();
103  for( Int_t i = 0; i < lList->GetEntries(); ++i )
104  {
105  vCuts.push_back( lList->At( i )->GetName() );
106  }
107  }
108 
109  int iSelectionCuts = 0;
110 
111  for (const std::string& sCut : vCuts)
112  {
113  if (sCut == "PtRegion")
114  {
115  iSelectionCuts = iSelectionCuts | DiTauCutPt;
116  if (m_vPtRegion.empty())
117  TauAnalysisTools::split(rEnv,"PtRegion", ';', m_vPtRegion);
118  }
119  else if (sCut == "PtMin")
120  {
121  iSelectionCuts = iSelectionCuts | DiTauCutPt;
122  if (m_dPtMin != m_dPtMin)
123  m_dPtMin = rEnv.GetValue("PtMin",NAN);
124  }
125  else if (sCut == "PtMax")
126  {
127  iSelectionCuts = iSelectionCuts | DiTauCutPt;
128  if (m_dPtMax != m_dPtMax)
129  m_dPtMax = rEnv.GetValue("PtMax",NAN);
130  }
131  else if (sCut == "AbsEtaRegion")
132  {
133  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
134  if (m_vAbsEtaRegion.empty())
135  TauAnalysisTools::split(rEnv,"AbsEtaRegion", ';', m_vAbsEtaRegion);
136  }
137  else if (sCut == "AbsEtaMin")
138  {
139  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
140  if (m_dAbsEtaMin != m_dAbsEtaMin)
141  m_dAbsEtaMin = rEnv.GetValue("AbsEtaMin",NAN);
142  }
143  else if (sCut == "AbsEtaMax")
144  {
145  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
146  if (m_dAbsEtaMax != m_dAbsEtaMax)
147  m_dAbsEtaMax = rEnv.GetValue("AbsEtaMax",NAN);
148  }
149  else if (sCut == "NSubjetsRegion")
150  {
151  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
152  if (m_vNSubjetsRegion.empty())
153  TauAnalysisTools::split(rEnv,"NSubjetsRegion", ';', m_vNSubjetsRegion);
154  }
155  else if (sCut == "NSubjetsMin")
156  {
157  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
159  m_dNSubjetsMin = rEnv.GetValue("NSubjetsMin",NAN);
160  }
161  else if (sCut == "NSubjetsMax")
162  {
163  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
165  m_dNSubjetsMax = rEnv.GetValue("NSubjetsMax",NAN);
166  }
167  else ATH_MSG_WARNING("Cut " << sCut << " is not available");
168  }
169 
171  m_iSelectionCuts = iSelectionCuts;
172  }
173 
174  // specify all available cut descriptions
175  using map_type = std::map<DiTauSelectionCuts, std::unique_ptr<TauAnalysisTools::DiTauSelectionCut>>;
176  using pair_type = map_type::value_type;
177 
178  pair_type elements[] =
179  {
180  {DiTauCutPt, std::make_unique<TauAnalysisTools::DiTauSelectionCutPt>(this)},
181  {DiTauCutAbsEta, std::make_unique<TauAnalysisTools::DiTauSelectionCutAbsEta>(this)},
182  {DiTauCutNSubjets, std::make_unique<TauAnalysisTools::DiTauSelectionCutNSubjets>(this)},
183  };
184 
185  m_cMap = { std::make_move_iterator( begin(elements) ), std::make_move_iterator( end(elements) ) };
186 
187  ATH_MSG_INFO( "Initializing TauSelectionTool" );
191 
194  PrintConfigRegion ("NSubjets", m_vNSubjetsRegion);
195 
196  std::string sCuts = "";
197  if (m_iSelectionCuts & DiTauCutPt) sCuts += "Pt ";
198  if (m_iSelectionCuts & DiTauCutAbsEta) sCuts += "AbsEta ";
199  if (m_iSelectionCuts & DiTauCutNSubjets) sCuts += "NSubjets ";
200 
201  ATH_MSG_DEBUG( "cuts: " << sCuts);
202 
205 
206  for ( const auto& entry : m_cMap ) {
207  if ( m_iSelectionCuts &entry.first ) {
208  entry.second->setAcceptInfo(m_aAccept);
209  }
210  }
211 
212  return StatusCode::SUCCESS;
213 }

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

◆ 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() [1/2]

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

◆ print() [2/2]

virtual void asg::IAsgTool::print ( ) const
pure virtualinherited

◆ PrintConfigRegion()

template<typename T >
void DiTauSelectionTool::PrintConfigRegion ( const std::string &  sCutName,
std::vector< T > &  vRegion 
) const
private

Definition at line 390 of file DiTauSelectionTool.cxx.

391 {
392  unsigned int iNumRegion = vRegion.size()/2;
393  for( unsigned int iRegion = 0; iRegion < iNumRegion; iRegion++ )
394  {
395  ATH_MSG_DEBUG( sCutName<<": " << vRegion.at(iRegion*2) << " to " << vRegion.at(iRegion*2+1) );
396  }
397 }

◆ PrintConfigValue() [1/2]

template<typename T >
void DiTauSelectionTool::PrintConfigValue ( const std::string &  sCutName,
std::vector< T > &  vRegion 
) const
private

Definition at line 401 of file DiTauSelectionTool.cxx.

402 {
403  for (auto tVal : vRegion)
404  ATH_MSG_DEBUG( sCutName<<": " << tVal );
405 }

◆ PrintConfigValue() [2/2]

template<typename T >
void DiTauSelectionTool::PrintConfigValue ( const std::string &  sCutName,
T &  sVal 
) const
private

Definition at line 409 of file DiTauSelectionTool.cxx.

410 {
411  ATH_MSG_DEBUG( sCutName<<": " << tVal );
412 }

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

◆ setOutFile()

void DiTauSelectionTool::setOutFile ( TFile *  fOutFile)
overrideprivatevirtual

Set output file for control histograms.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 314 of file DiTauSelectionTool.cxx.

315 {
316  m_fOutFile = fOutFile;
317 }

◆ setupCutFlowHistogram()

void DiTauSelectionTool::setupCutFlowHistogram ( )
private

Definition at line 339 of file DiTauSelectionTool.cxx.

340 {
341  // count number of cuts
342  int iNBins = 0;
343  for (const auto& entry : m_cMap)
344  if (m_iSelectionCuts & entry.first)
345  iNBins++;
346  // create cutflow histogram with iNBins+1 bins, where first bin is 'All' bin
347  m_hCutFlow = std::make_shared<TH1F>("hCutFlow","CutFlow;; events",iNBins+1,0,iNBins+1);
348  m_hCutFlow->GetXaxis()->SetBinLabel(1,"All");
349 
350  // reusing this variable to reduce overhead
351  iNBins = 2;
352  // set bin labels
353  for (const auto& entry : m_cMap)
354  if (m_iSelectionCuts & entry.first)
355  {
356  m_hCutFlow->GetXaxis()->SetBinLabel(iNBins, entry.second->getName().c_str());
357  iNBins++;
358  }
359 }

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

◆ writeControlHistograms()

void DiTauSelectionTool::writeControlHistograms ( )
overrideprivatevirtual

Write control histograms to output file.

create output directory

write cutflow histogram

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 320 of file DiTauSelectionTool.cxx.

321 {
323  ATH_MSG_WARNING("CreateControlPlots was set to true, but no valid file pointer was provided");
325  {
327  m_fOutFile->mkdir((this->name()+"_control").c_str());
328  m_fOutFile->cd((this->name()+"_control").c_str());
330  m_hCutFlow->Write();
331 
332  for (const auto& entry : m_cMap)
333  entry.second->writeControlHistograms();
334  }
335 }

Friends And Related Function Documentation

◆ DiTauSelectionCut

friend class DiTauSelectionCut
friend

need to define cut classes to be friends to access protected variables, needed for access of cut thresholds

Definition at line 44 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutAbsEta

friend class DiTauSelectionCutAbsEta
friend

Definition at line 46 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutNSubjets

friend class DiTauSelectionCutNSubjets
friend

Definition at line 47 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutPt

friend class DiTauSelectionCutPt
friend

Definition at line 45 of file DiTauSelectionTool.h.

Member Data Documentation

◆ m_aAccept

asg::AcceptInfo TauAnalysisTools::DiTauSelectionTool::m_aAccept
protected

Object used to store selection information.

Definition at line 125 of file DiTauSelectionTool.h.

◆ m_bCreateControlPlots

bool TauAnalysisTools::DiTauSelectionTool::m_bCreateControlPlots
protected

Definition at line 122 of file DiTauSelectionTool.h.

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

std::map<DiTauSelectionCuts, std::unique_ptr<TauAnalysisTools::DiTauSelectionCut> > TauAnalysisTools::DiTauSelectionTool::m_cMap
private

Definition at line 117 of file DiTauSelectionTool.h.

◆ m_dAbsEtaMax

float TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMax
private

Definition at line 106 of file DiTauSelectionTool.h.

◆ m_dAbsEtaMin

float TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMin
private

Definition at line 105 of file DiTauSelectionTool.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_dNSubjetsMax

float TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMax
private

Definition at line 107 of file DiTauSelectionTool.h.

◆ m_dNSubjetsMin

float TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMin
private

Definition at line 108 of file DiTauSelectionTool.h.

◆ m_dPtMax

float TauAnalysisTools::DiTauSelectionTool::m_dPtMax
private

Definition at line 104 of file DiTauSelectionTool.h.

◆ m_dPtMin

float TauAnalysisTools::DiTauSelectionTool::m_dPtMin
private

Definition at line 103 of file DiTauSelectionTool.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_fOutFile

TFile* TauAnalysisTools::DiTauSelectionTool::m_fOutFile
protected

Definition at line 111 of file DiTauSelectionTool.h.

◆ m_hCutFlow

std::shared_ptr<TH1F> TauAnalysisTools::DiTauSelectionTool::m_hCutFlow
protected

Definition at line 112 of file DiTauSelectionTool.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_iSelectionCuts

int TauAnalysisTools::DiTauSelectionTool::m_iSelectionCuts
private

Definition at line 95 of file DiTauSelectionTool.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_sConfigPath

std::string TauAnalysisTools::DiTauSelectionTool::m_sConfigPath
private

Definition at line 115 of file DiTauSelectionTool.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.h.

◆ m_vAbsEtaRegion

std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vAbsEtaRegion
private

Definition at line 99 of file DiTauSelectionTool.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.

◆ m_vNSubjetsRegion

std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vNSubjetsRegion
private

Definition at line 101 of file DiTauSelectionTool.h.

◆ m_vPtRegion

std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vPtRegion
private

Definition at line 97 of file DiTauSelectionTool.h.


The documentation for this class was generated from the following files:
TauAnalysisTools::DiTauSelectionTool::m_bCreateControlPlots
bool m_bCreateControlPlots
Definition: DiTauSelectionTool.h:122
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TauAnalysisTools::DiTauSelectionTool::m_aAccept
asg::AcceptInfo m_aAccept
Object used to store selection information.
Definition: DiTauSelectionTool.h:125
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
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
TauAnalysisTools::DiTauSelectionTool::m_dPtMin
float m_dPtMin
Definition: DiTauSelectionTool.h:103
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TauAnalysisTools::DiTauCutPt
@ DiTauCutPt
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:58
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
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
TauAnalysisTools::DiTauSelectionTool::m_iSelectionCuts
int m_iSelectionCuts
Definition: DiTauSelectionTool.h:95
TauAnalysisTools::testFileForEOFContainsCharacters
bool testFileForEOFContainsCharacters(const std::string &sFileName)
returns true if last line in file is empty or the line starts with the number sign
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:279
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
TauAnalysisTools::NoDiTauCut
@ NoDiTauCut
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:57
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMax
float m_dNSubjetsMax
Definition: DiTauSelectionTool.h:107
TauAnalysisTools::DiTauSelectionTool::m_dPtMax
float m_dPtMax
Definition: DiTauSelectionTool.h:104
TauAnalysisTools::DiTauSelectionTool::m_vAbsEtaRegion
std::vector< float > m_vAbsEtaRegion
Definition: DiTauSelectionTool.h:99
lumiFormat.i
int i
Definition: lumiFormat.py:85
TauAnalysisTools::DiTauSelectionTool::m_hCutFlow
std::shared_ptr< TH1F > m_hCutFlow
Definition: DiTauSelectionTool.h:112
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
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
TauAnalysisTools::DiTauCutNSubjets
@ DiTauCutNSubjets
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:60
TauAnalysisTools::DiTauSelectionTool::setupCutFlowHistogram
void setupCutFlowHistogram()
Definition: DiTauSelectionTool.cxx:339
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TauAnalysisTools::DiTauSelectionTool::FillRegionVector
void FillRegionVector(std::vector< T > &vRegion, U tMin, U tMax) const
Definition: DiTauSelectionTool.cxx:363
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
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
TauAnalysisTools::DiTauSelectionTool::m_vPtRegion
std::vector< float > m_vPtRegion
Definition: DiTauSelectionTool.h:97
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:228
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMin
float m_dAbsEtaMin
Definition: DiTauSelectionTool.h:105
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMin
float m_dNSubjetsMin
Definition: DiTauSelectionTool.h:108
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
TauAnalysisTools::DiTauSelectionTool::PrintConfigRegion
void PrintConfigRegion(const std::string &sCutName, std::vector< T > &vRegion) const
Definition: DiTauSelectionTool.cxx:390
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
xAOD::DiTauJet_v1
Definition: DiTauJet_v1.h:31
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TauAnalysisTools::DiTauCutAbsEta
@ DiTauCutAbsEta
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:59
TauAnalysisTools::DiTauSelectionTool::m_cMap
std::map< DiTauSelectionCuts, std::unique_ptr< TauAnalysisTools::DiTauSelectionCut > > m_cMap
Definition: DiTauSelectionTool.h:117
TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMax
float m_dAbsEtaMax
Definition: DiTauSelectionTool.h:106
TauAnalysisTools::DiTauSelectionTool::m_vNSubjetsRegion
std::vector< float > m_vNSubjetsRegion
Definition: DiTauSelectionTool.h:101
asg::AcceptData
Definition: AcceptData.h:30
SG::DataProxy
Definition: DataProxy.h:45
error
Definition: IImpactPoint3dEstimator.h:70
TauAnalysisTools::DiTauSelectionTool::accept
virtual asg::AcceptData accept(const xAOD::IParticle *p) const override
Get the decision using a generic IParticle pointer.
Definition: DiTauSelectionTool.cxx:229
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition: Event/xAOD/xAODJet/xAODJet/Jet.h:17
TauAnalysisTools::DiTauSelectionTool::m_sConfigPath
std::string m_sConfigPath
Definition: DiTauSelectionTool.h:115
fitman.k
k
Definition: fitman.py:528
ServiceHandle< IIncidentSvc >
TauAnalysisTools::split
void split(const std::string &sInput, const char cDelim, std::vector< std::string > &vOut)
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:23
TauAnalysisTools::DiTauSelectionTool::m_fOutFile
TFile * m_fOutFile
Definition: DiTauSelectionTool.h:111
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128