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, V, H > &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
 
Gaudi::Property< bool > m_bCreateControlPlots {this, "CreateControlPlots", false}
 
SG::ReadDecorHandleKey< xAOD::DiTauJetContainerm_OmniScoreDecorKey {this, "OmniScoreDecorName", "", "Name of OmniScore decoration"}
 
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 ()
 
int convertStrToOmniIDWP (const std::string &sOmniIDWP) const
 
std::string convertOmniIDWPToStr (int iOmniIDWP) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

std::vector< float > m_vPtRegion
 
std::vector< float > m_vAbsEtaRegion
 
std::vector< float > m_vNSubjetsRegion
 
std::vector< int > m_vAbsCharges
 
std::vector< float > m_vOmniScoreRegion
 
std::string m_sOmniIDWP
 
bool m_useOmniScore =false
 
Gaudi::Property< std::string > m_sConfigPath {this, "ConfigPath", ""}
 
Gaudi::Property< int > m_iSelectionCuts {this, "SelectionCuts", NoDiTauCut}
 
Gaudi::Property< float > m_dPtMin {this, "PtMin", NAN}
 
Gaudi::Property< float > m_dPtMax {this, "PtMax", NAN}
 
Gaudi::Property< float > m_dAbsEtaMin {this, "AbsEtaMin", NAN}
 
Gaudi::Property< float > m_dAbsEtaMax {this, "AbsEtaMax", NAN}
 
Gaudi::Property< float > m_dNSubjetsMin {this, "NSubjetsMin", NAN}
 
Gaudi::Property< float > m_dNSubjetsMax {this, "NSubjetsMax", NAN}
 
Gaudi::Property< float > m_iAbsCharge {this, "AbsCharge", NAN}
 
Gaudi::Property< float > m_dOmniScoreMin {this, "OmniScoreMin", NAN}
 
Gaudi::Property< float > m_dOmniScoreMax {this, "OmniScoreMax", NAN}
 
Gaudi::Property< int > m_iOmniIDWP {this, "OmniIDWP", 0}
 
Gaudi::Property< std::vector< float > > m_vecPtRegion {this, "PtRegion", {}}
 
Gaudi::Property< std::vector< float > > m_vecAbsEtaRegion {this, "AbsEtaRegion",{}}
 
Gaudi::Property< std::vector< float > > m_vecNSubjetsRegion {this, "NSubjetsRegion", {}}
 
Gaudi::Property< std::vector< int > > m_vecAbsCharges {this, "AbsCharges", {}}
 
Gaudi::Property< std::vector< float > > m_vecOmniScoreRegion {this, "OmniScoreRegion", {}}
 
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
 
class DiTauSelectionCutAbsCharge
 
class DiTauSelectionCutOmniScore
 
class DiTauSelectionCutOmniIDWP
 

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 44 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 334 of file DiTauSelectionTool.cxx.

335 {
336  asg::AcceptData acceptData (&m_aAccept);
337 
338  int iNBin = 0;
339 
341  {
342  // fill cutflow 'All' bin
343  m_hCutFlow->Fill(iNBin);
344  // fill main distributions before all cuts
345  for (const auto& entry : m_cMap)
346  entry.second->fillHistogramCutPre(xDiTau);
347  }
348  try
349  {
350  for (const auto& entry : m_cMap)
351  {
352  if (m_iSelectionCuts & entry.first)
353  {
354  if (!entry.second->accept(xDiTau, acceptData))
355  return acceptData;
356  else
357  {
359  {
360  // fill cutflow after each passed cut
361  iNBin++;
362  m_hCutFlow->Fill(iNBin);
363  }
364  }
365  }
366  }
367  }
368  catch (const std::runtime_error& error)
369  {
370  // LEGACY: In practical terms this should probably just throw, not
371  // print a warning/error and then continue on. However, I leave
372  // that to the experts who probably had a reason not to let the
373  // exception escape. For now I just downgraded it from error to
374  // warning and limited the number of warnings (04 Jan 22).
375  static std::atomic<uint64_t> warning_count (0u);
376  auto mycount = ++ warning_count;
377  if (mycount < 10u)
378  {
379  ATH_MSG_WARNING(error.what());
380  if (mycount == 9u)
381  ATH_MSG_WARNING ("this is your last warning");
382  }
383  }
384 
385  // fill main distributions after all cuts
387  {
388  for (const auto& entry : m_cMap)
389  entry.second->fillHistogramCut(xDiTau);
390  }
391 
392  // // Return the result:
393  return acceptData;
394 }

◆ 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 312 of file DiTauSelectionTool.cxx.

313 {
314  // Check if this is a jet:
315  if( xP->type() != xAOD::Type::Jet )
316  {
317  ATH_MSG_ERROR( "accept(...) Function received a non-jet" );
318  return asg::AcceptData (&m_aAccept);
319  }
320 
321  // Cast it to a ditau:
322  const xAOD::DiTauJet* xDiTau = dynamic_cast< const xAOD::DiTauJet* >( xP );
323  if( ! xDiTau )
324  {
325  ATH_MSG_FATAL( "accept(...) Failed to cast particle to tau" );
326  return asg::AcceptData (&m_aAccept);
327  }
328 
329  // Let the specific function do the work:
330  return accept( *xDiTau );
331 }

◆ 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 300 of file DiTauSelectionTool.cxx.

301 {
302  return StatusCode::SUCCESS;
303 }

◆ 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, BookkeeperDumperTool, Trig::TrigDecisionTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, Trig::xAODBunchCrossingTool, TauAnalysisTools::TauEfficiencyCorrectionsTool, and TauAnalysisTools::TauSmearingTool.

Definition at line 185 of file AsgMetadataTool.cxx.

185  {
186 
187  // Return gracefully:
188  return StatusCode::SUCCESS;
189  }

◆ convertOmniIDWPToStr()

std::string DiTauSelectionTool::convertOmniIDWPToStr ( int  iOmniIDWP) const
private

Definition at line 511 of file DiTauSelectionTool.cxx.

512 {
513  switch (iOmniIDWP)
514  {
515  case OMNIIDNONE:
516  return "OMNIIDNONE";
517  case OMNIIDVERYLOOSE:
518  return "OMNIIDVERYLOOSE";
519  case OMNIIDLOOSE:
520  return "OMNIIDLOOSE";
521  case OMNIIDMEDIUM:
522  return "OMNIIDMEDIUM";
523  case OMNIIDTIGHT:
524  return "OMNIIDTIGHT";
525 
526  default:
527  ATH_MSG_WARNING( "OmniID working point with enum " << iOmniIDWP << " is unknown, the OmniIDWP cut will not accept any ditau!" );
528  return "";
529  }
530 }

◆ convertStrToOmniIDWP()

int DiTauSelectionTool::convertStrToOmniIDWP ( const std::string &  sOmniIDWP) const
private

Definition at line 498 of file DiTauSelectionTool.cxx.

499 {
500  if (sOmniIDWP == "OMNIIDNONE") return int(OMNIIDNONE);
501  else if (sOmniIDWP == "OMNIIDVERYLOOSE") return int(OMNIIDVERYLOOSE);
502  else if (sOmniIDWP == "OMNIIDLOOSE") return int(OMNIIDLOOSE);
503  else if (sOmniIDWP == "OMNIIDMEDIUM") return int(OMNIIDMEDIUM);
504  else if (sOmniIDWP == "OMNIIDTIGHT") return int(OMNIIDTIGHT);
505 
506  ATH_MSG_ERROR( "omni ID working point "<<sOmniIDWP<<" is unknown, the OmniIDWP cut will not accept any ditau!" );
507  return -1;
508 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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, V, H > &  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, V, H > &  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, V, H > &  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, V, H > &  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, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 193 of file AsgMetadataTool.cxx.

193  {
194 
195  // Return gracefully:
196  return StatusCode::SUCCESS;
197  }

◆ 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 446 of file DiTauSelectionTool.cxx.

447 {
448  if (!vRegion.empty())
449  return;
450  if (!std::isnan(tMin)) // if tMin is NAN, then this assumption fails and -inf is added to the vector
451  vRegion.push_back(tMin);
452  else
453  vRegion.push_back(-std::numeric_limits<T>::infinity());
454 
455  if (!std::isnan(tMax)) // if tMax is NAN, then this assumption fails and inf is added to the vector
456  vRegion.push_back(tMax);
457  else
458  vRegion.push_back(std::numeric_limits<T>::infinity());
459 }

◆ FillValueVector()

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

Definition at line 463 of file DiTauSelectionTool.cxx.

464 {
465  if (!vRegion.empty())
466  return;
467  if (tVal == tVal) // if tMax is NAN, then this assumption fails and nothing is added to the vector
468  vRegion.push_back(tVal);
469 }

◆ getAcceptInfo()

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

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

Implements IAsgSelectionTool.

Definition at line 306 of file DiTauSelectionTool.cxx.

307 {
308  return m_aAccept;
309 }

◆ 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 135 of file AsgMetadataTool.cxx.

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

◆ initialize()

StatusCode DiTauSelectionTool::initialize ( )
overrideprivatevirtual

Function initialising the tool.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 37 of file DiTauSelectionTool.cxx.

38 {
39 
40  m_vPtRegion = m_vecPtRegion.value();
45 
46  bool bConfigViaConfigFile = !m_sConfigPath.empty();
47  bool bConfigViaProperties = false;
48  if (!bConfigViaProperties and !m_vPtRegion.empty()) bConfigViaProperties = true;
49  if (!bConfigViaProperties and !std::isnan(m_dPtMin.value())) bConfigViaProperties = true;
50  if (!bConfigViaProperties and !std::isnan(m_dPtMax.value())) bConfigViaProperties = true;
51  if (!bConfigViaProperties and !m_vAbsEtaRegion.empty()) bConfigViaProperties = true;
52  if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMin.value())) bConfigViaProperties = true;
53  if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMax.value())) bConfigViaProperties = true;
54  if (!bConfigViaProperties and !m_vNSubjetsRegion.empty()) bConfigViaProperties = true;
55  if (!bConfigViaProperties and !std::isnan(m_dNSubjetsMin.value())) bConfigViaProperties = true;
56  if (!bConfigViaProperties and !std::isnan(m_dNSubjetsMax.value())) bConfigViaProperties = true;
57  if (!bConfigViaProperties and !m_vAbsCharges.empty()) bConfigViaProperties = true;
58  if (!bConfigViaProperties and !std::isnan(m_iAbsCharge.value())) bConfigViaProperties = true;
59  if (!bConfigViaProperties and !m_vOmniScoreRegion.empty()) bConfigViaProperties = true;
60  if (!bConfigViaProperties and !std::isnan(m_dOmniScoreMin.value())) bConfigViaProperties = true;
61  if (!bConfigViaProperties and !std::isnan(m_dOmniScoreMax.value())) bConfigViaProperties = true;
62  if (!bConfigViaProperties and m_iOmniIDWP != 0) bConfigViaProperties = true;
63 
64  if (bConfigViaConfigFile and bConfigViaProperties)
65  {
66  ATH_MSG_WARNING("Configured tool via setProperty and configuration file, which may lead to unexpected configuration.");
67  ATH_MSG_WARNING("In doubt check the configuration that is printed when the tool is initialized and the message level is set to debug");
68  ATH_MSG_WARNING("For further details please refer to the documentation:");
69  ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst");
70  }
71  if (!bConfigViaConfigFile and !bConfigViaProperties)
72  {
73  ATH_MSG_WARNING("No cut configuration provided, the tool will not do anything. For further details please refer to the documentation:");
74  ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst");
75  }
76 
77  if (bConfigViaConfigFile)
78  {
79  TEnv rEnv;
80  std::string sInputFilePath = PathResolverFindCalibFile(m_sConfigPath);
81 
82  if (!testFileForEOFContainsCharacters(sInputFilePath))
83  ATH_MSG_WARNING("Config file for DiTauSelectionTool with path "<<sInputFilePath<<" does not contain an empty last line. The tool might not be properly configured!");
84 
85  rEnv.ReadFile(sInputFilePath.c_str(),
86  kEnvAll);
87 
88  std::vector<std::string> vCuts;
89  // if Cuts are specified in the config file take these ones, if not take all
90  // specified in the config
91  if (rEnv.Defined("SelectionCuts"))
92  TauAnalysisTools::split(rEnv, "SelectionCuts", ' ', vCuts);
93  else
94  {
95  auto lList = rEnv.GetTable();
96  for( Int_t i = 0; i < lList->GetEntries(); ++i )
97  {
98  vCuts.push_back( lList->At( i )->GetName() );
99  }
100  }
101 
102  int iSelectionCuts = 0;
103 
104  for (const std::string& sCut : vCuts)
105  {
106  if (sCut == "PtRegion")
107  {
108  iSelectionCuts = iSelectionCuts | DiTauCutPt;
109  if (m_vPtRegion.empty())
110  TauAnalysisTools::split(rEnv,"PtRegion", ';', m_vPtRegion);
111  }
112  else if (sCut == "PtMin")
113  {
114  iSelectionCuts = iSelectionCuts | DiTauCutPt;
115  if (std::isnan(m_dPtMin.value()))
116  m_dPtMin = rEnv.GetValue("PtMin",NAN);
117  }
118  else if (sCut == "PtMax")
119  {
120  iSelectionCuts = iSelectionCuts | DiTauCutPt;
121  if (std::isnan(m_dPtMax.value()))
122  m_dPtMax = rEnv.GetValue("PtMax",NAN);
123  }
124  else if (sCut == "AbsEtaRegion")
125  {
126  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
127  if (m_vAbsEtaRegion.empty())
128  TauAnalysisTools::split(rEnv,"AbsEtaRegion", ';', m_vAbsEtaRegion);
129  }
130  else if (sCut == "AbsEtaMin")
131  {
132  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
133  if (std::isnan(m_dAbsEtaMin.value()))
134  m_dAbsEtaMin = rEnv.GetValue("AbsEtaMin",NAN);
135  }
136  else if (sCut == "AbsEtaMax")
137  {
138  iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
139  if (std::isnan(m_dAbsEtaMax.value()))
140  m_dAbsEtaMax = rEnv.GetValue("AbsEtaMax",NAN);
141  }
142  else if (sCut == "NSubjetsRegion")
143  {
144  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
145  if (m_vNSubjetsRegion.empty())
146  TauAnalysisTools::split(rEnv,"NSubjetsRegion", ';', m_vNSubjetsRegion);
147  }
148  else if (sCut == "NSubjetsMin")
149  {
150  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
151  if (std::isnan(m_dNSubjetsMin.value()))
152  m_dNSubjetsMin = rEnv.GetValue("NSubjetsMin",NAN);
153  }
154  else if (sCut == "NSubjetsMax")
155  {
156  iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
157  if (std::isnan(m_dNSubjetsMax.value()))
158  m_dNSubjetsMax = rEnv.GetValue("NSubjetsMax",NAN);
159  }
160  else if (sCut == "AbsCharges")
161  {
162  iSelectionCuts = iSelectionCuts | DiTauCutAbsCharge;
163  if (m_vAbsCharges.empty())
164  TauAnalysisTools::split(rEnv,"AbsCharges", ';', m_vAbsCharges);
165  }
166  else if (sCut == "AbsCharge")
167  {
168  iSelectionCuts = iSelectionCuts | DiTauCutAbsCharge;
169  if (std::isnan(m_iAbsCharge.value()))
170  m_iAbsCharge = rEnv.GetValue("AbsCharge",NAN);
171  }
172  else if (sCut == "OmniScoreRegion")
173  {
174  iSelectionCuts = iSelectionCuts | DiTauCutOmniScore;
175  if (m_vOmniScoreRegion.empty())
176  TauAnalysisTools::split(rEnv,"OmniScoreRegion", ';', m_vOmniScoreRegion);
177 
178  // check if using OmniScore
179  m_useOmniScore = true;
180  }
181  else if (sCut == "OmniScoreMin")
182  {
183  iSelectionCuts = iSelectionCuts | DiTauCutOmniScore;
184  if (std::isnan(m_dOmniScoreMin.value()))
185  m_dOmniScoreMin = rEnv.GetValue("OmniScoreMin",NAN);
186 
187  // check for possible mis-config in DiTau selection
188  for (const std::string& checkCut : vCuts){
189  if (checkCut.find("OmniScoreRegion") != std::string::npos) {
190  ATH_MSG_ERROR("Misconfig due to OmniScoreRegion and OmniScoreMin cuts both present in the config file. Please CHECK carefully config file again and choose of the two");
191  return StatusCode::FAILURE;
192  }
193  }
194 
195  // check if using OmniScore
196  m_useOmniScore = true;
197  }
198  else if (sCut == "OmniScoreMax")
199  {
200  iSelectionCuts = iSelectionCuts | DiTauCutOmniScore;
201  if (std::isnan(m_dOmniScoreMax.value()))
202  m_dOmniScoreMax = rEnv.GetValue("OmniScoreMax",NAN);
203 
204  // check for possible mis-config in DiTau selection
205  for (const std::string& checkCut : vCuts){
206  if (checkCut.find("OmniScoreRegion") != std::string::npos) {
207  ATH_MSG_ERROR("Misconfig due to OmniScoreRegion and OmniScoreMax cuts both present in the config file. Please CHECK carefully config file again and choose of the two");
208  return StatusCode::FAILURE;
209  }
210  }
211 
212  // check if using OmniScore
213  m_useOmniScore = true;
214  }
215  else if (sCut == "OmniIDWP")
216  {
217  iSelectionCuts = iSelectionCuts | DiTauCutOmniIDWP;
218  if (m_iOmniIDWP == OMNIIDNONE){
219  m_iOmniIDWP = convertStrToOmniIDWP(rEnv.GetValue("OmniIDWP","OMNIIDNONE"));
220  }
221  // check for possible mis-config in Tau selection
222  for (const std::string& checkCut : vCuts){
223  if (checkCut.find("OmniScore") != std::string::npos) {
224  ATH_MSG_ERROR("Misconfig due to OmniIDWP and OmniScore cuts both present in the config file. Please CHECK carefully config file again");
225  return StatusCode::FAILURE;
226  }
227  }
228  }
229  else ATH_MSG_WARNING("Cut " << sCut << " is not available");
230  }
231 
233  m_iSelectionCuts = iSelectionCuts;
234  }
235 
236  // initialise the ReadDecorHandleKey if OmniScore is applied
237  if (m_useOmniScore) {
238  if(m_OmniScoreDecorKey.empty()) {
239  ATH_CHECK( m_OmniScoreDecorKey.assign("DiTauJets.omni_score"));
240  }
241  }
243 
245 
246  // specify all available cut descriptions
247  using map_type = std::map<DiTauSelectionCuts, std::unique_ptr<TauAnalysisTools::DiTauSelectionCut>>;
248  using pair_type = map_type::value_type;
249 
250  pair_type elements[] =
251  {
252  {DiTauCutPt, std::make_unique<TauAnalysisTools::DiTauSelectionCutPt>(this)},
253  {DiTauCutAbsEta, std::make_unique<TauAnalysisTools::DiTauSelectionCutAbsEta>(this)},
254  {DiTauCutNSubjets, std::make_unique<TauAnalysisTools::DiTauSelectionCutNSubjets>(this)},
255  {DiTauCutAbsCharge, std::make_unique<TauAnalysisTools::DiTauSelectionCutAbsCharge>(this)},
256  {DiTauCutOmniScore, std::make_unique<TauAnalysisTools::DiTauSelectionCutOmniScore>(this)},
257  {DiTauCutOmniIDWP, std::make_unique<TauAnalysisTools::DiTauSelectionCutOmniIDWP>(this)},
258  };
259 
260  m_cMap = { std::make_move_iterator( begin(elements) ), std::make_move_iterator( end(elements) ) };
261 
262  ATH_MSG_INFO( "Initializing DiTauSelectionTool" );
263  FillRegionVector(m_vPtRegion, m_dPtMin.value(), m_dPtMax.value());
268 
271  PrintConfigRegion ("NSubjets", m_vNSubjetsRegion);
272  PrintConfigValue ("AbsCharge", m_vAbsCharges);
273  PrintConfigRegion ("OmniScore", m_vOmniScoreRegion);
274  PrintConfigValue ("OmniIDWP", m_sOmniIDWP);
275 
276  std::string sCuts = "";
277  if (m_iSelectionCuts & DiTauCutPt) sCuts += "Pt ";
278  if (m_iSelectionCuts & DiTauCutAbsEta) sCuts += "AbsEta ";
279  if (m_iSelectionCuts & DiTauCutNSubjets) sCuts += "NSubjets ";
280  if (m_iSelectionCuts & DiTauCutAbsCharge) sCuts += "AbsCharge ";
281  if (m_iSelectionCuts & DiTauCutOmniScore) sCuts += "OmniScore ";
282  if (m_iSelectionCuts & DiTauCutOmniIDWP) sCuts += "OmniIDWP ";
283 
284  ATH_MSG_DEBUG( "cuts: " << sCuts);
285 
288 
289  for ( const auto& entry : m_cMap ) {
290  if ( m_iSelectionCuts &entry.first ) {
291  entry.second->setAcceptInfo(m_aAccept);
292  }
293  }
294 
295  return StatusCode::SUCCESS;
296 }

◆ 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 93 of file AsgMetadataTool.cxx.

93  {
94 
95 #ifdef XAOD_STANDALONE
96  return &m_inputMetaStore;
97 #else // XAOD_STANDALONE
98  return m_inputMetaStore;
99 #endif // XAOD_STANDALONE
100  }

◆ 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 BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 209 of file AsgMetadataTool.cxx.

209  {
210 
211  // Return gracefully:
212  return StatusCode::SUCCESS;
213  }

◆ 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 102 of file AsgMetadataTool.cxx.

102  {
103 
104 #ifdef XAOD_STANDALONE
105  return &m_outputMetaStore;
106 #else // XAOD_STANDALONE
107  return m_outputMetaStore;
108 #endif // XAOD_STANDALONE
109  }

◆ 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 473 of file DiTauSelectionTool.cxx.

474 {
475  unsigned int iNumRegion = vRegion.size()/2;
476  for( unsigned int iRegion = 0; iRegion < iNumRegion; iRegion++ )
477  {
478  ATH_MSG_DEBUG( sCutName<<": " << vRegion.at(iRegion*2) << " to " << vRegion.at(iRegion*2+1) );
479  }
480 }

◆ PrintConfigValue() [1/2]

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

Definition at line 484 of file DiTauSelectionTool.cxx.

485 {
486  for (auto tVal : vRegion)
487  ATH_MSG_DEBUG( sCutName<<": " << tVal );
488 }

◆ PrintConfigValue() [2/2]

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

Definition at line 492 of file DiTauSelectionTool.cxx.

493 {
494  ATH_MSG_DEBUG( sCutName<<": " << tVal );
495 }

◆ 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 397 of file DiTauSelectionTool.cxx.

398 {
399  m_fOutFile = fOutFile;
400 }

◆ setupCutFlowHistogram()

void DiTauSelectionTool::setupCutFlowHistogram ( )
private

Definition at line 422 of file DiTauSelectionTool.cxx.

423 {
424  // count number of cuts
425  int iNBins = 0;
426  for (const auto& entry : m_cMap)
427  if (m_iSelectionCuts & entry.first)
428  iNBins++;
429  // create cutflow histogram with iNBins+1 bins, where first bin is 'All' bin
430  m_hCutFlow = std::make_shared<TH1F>("hCutFlow","CutFlow;; events",iNBins+1,0,iNBins+1);
431  m_hCutFlow->GetXaxis()->SetBinLabel(1,"All");
432 
433  // reusing this variable to reduce overhead
434  iNBins = 2;
435  // set bin labels
436  for (const auto& entry : m_cMap)
437  if (m_iSelectionCuts & entry.first)
438  {
439  m_hCutFlow->GetXaxis()->SetBinLabel(iNBins, entry.second->getName().c_str());
440  iNBins++;
441  }
442 }

◆ 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 115 of file AsgMetadataTool.cxx.

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

◆ 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 403 of file DiTauSelectionTool.cxx.

404 {
406  ATH_MSG_WARNING("CreateControlPlots was set to true, but no valid file pointer was provided");
408  {
410  m_fOutFile->mkdir((this->name()+"_control").c_str());
411  m_fOutFile->cd((this->name()+"_control").c_str());
413  m_hCutFlow->Write();
414 
415  for (const auto& entry : m_cMap)
416  entry.second->writeControlHistograms();
417  }
418 }

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 50 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutAbsCharge

friend class DiTauSelectionCutAbsCharge
friend

Definition at line 54 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutAbsEta

friend class DiTauSelectionCutAbsEta
friend

Definition at line 52 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutNSubjets

friend class DiTauSelectionCutNSubjets
friend

Definition at line 53 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutOmniIDWP

friend class DiTauSelectionCutOmniIDWP
friend

Definition at line 56 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutOmniScore

friend class DiTauSelectionCutOmniScore
friend

Definition at line 55 of file DiTauSelectionTool.h.

◆ DiTauSelectionCutPt

friend class DiTauSelectionCutPt
friend

Definition at line 51 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 155 of file DiTauSelectionTool.h.

◆ m_bCreateControlPlots

Gaudi::Property<bool> TauAnalysisTools::DiTauSelectionTool::m_bCreateControlPlots {this, "CreateControlPlots", false}
protected

Definition at line 151 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 143 of file DiTauSelectionTool.h.

◆ m_dAbsEtaMax

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMax {this, "AbsEtaMax", NAN}
private

Definition at line 123 of file DiTauSelectionTool.h.

◆ m_dAbsEtaMin

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMin {this, "AbsEtaMin", NAN}
private

Definition at line 122 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

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMax {this, "NSubjetsMax", NAN}
private

Definition at line 125 of file DiTauSelectionTool.h.

◆ m_dNSubjetsMin

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMin {this, "NSubjetsMin", NAN}
private

Definition at line 124 of file DiTauSelectionTool.h.

◆ m_dOmniScoreMax

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMax {this, "OmniScoreMax", NAN}
private

Definition at line 128 of file DiTauSelectionTool.h.

◆ m_dOmniScoreMin

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMin {this, "OmniScoreMin", NAN}
private

Definition at line 127 of file DiTauSelectionTool.h.

◆ m_dPtMax

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dPtMax {this, "PtMax", NAN}
private

Definition at line 121 of file DiTauSelectionTool.h.

◆ m_dPtMin

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dPtMin {this, "PtMin", NAN}
private

Definition at line 120 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 138 of file DiTauSelectionTool.h.

◆ m_hCutFlow

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

Definition at line 139 of file DiTauSelectionTool.h.

◆ m_iAbsCharge

Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_iAbsCharge {this, "AbsCharge", NAN}
private

Definition at line 126 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_iOmniIDWP

Gaudi::Property<int> TauAnalysisTools::DiTauSelectionTool::m_iOmniIDWP {this, "OmniIDWP", 0}
private

Definition at line 129 of file DiTauSelectionTool.h.

◆ m_iSelectionCuts

Gaudi::Property<int> TauAnalysisTools::DiTauSelectionTool::m_iSelectionCuts {this, "SelectionCuts", NoDiTauCut}
private

Definition at line 119 of file DiTauSelectionTool.h.

◆ m_OmniScoreDecorKey

SG::ReadDecorHandleKey<xAOD::DiTauJetContainer> TauAnalysisTools::DiTauSelectionTool::m_OmniScoreDecorKey {this, "OmniScoreDecorName", "", "Name of OmniScore decoration"}
protected

Definition at line 152 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

Gaudi::Property<std::string> TauAnalysisTools::DiTauSelectionTool::m_sConfigPath {this, "ConfigPath", ""}
private

Definition at line 118 of file DiTauSelectionTool.h.

◆ m_sOmniIDWP

std::string TauAnalysisTools::DiTauSelectionTool::m_sOmniIDWP
private

Definition at line 114 of file DiTauSelectionTool.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.h.

◆ m_useOmniScore

bool TauAnalysisTools::DiTauSelectionTool::m_useOmniScore =false
private

Definition at line 116 of file DiTauSelectionTool.h.

◆ m_vAbsCharges

std::vector<int> TauAnalysisTools::DiTauSelectionTool::m_vAbsCharges
private

Definition at line 110 of file DiTauSelectionTool.h.

◆ m_vAbsEtaRegion

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

Definition at line 106 of file DiTauSelectionTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vecAbsCharges

Gaudi::Property<std::vector<int> > TauAnalysisTools::DiTauSelectionTool::m_vecAbsCharges {this, "AbsCharges", {}}
private

Definition at line 134 of file DiTauSelectionTool.h.

◆ m_vecAbsEtaRegion

Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecAbsEtaRegion {this, "AbsEtaRegion",{}}
private

Definition at line 132 of file DiTauSelectionTool.h.

◆ m_vecNSubjetsRegion

Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecNSubjetsRegion {this, "NSubjetsRegion", {}}
private

Definition at line 133 of file DiTauSelectionTool.h.

◆ m_vecOmniScoreRegion

Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecOmniScoreRegion {this, "OmniScoreRegion", {}}
private

Definition at line 135 of file DiTauSelectionTool.h.

◆ m_vecPtRegion

Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecPtRegion {this, "PtRegion", {}}
private

Definition at line 131 of file DiTauSelectionTool.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 108 of file DiTauSelectionTool.h.

◆ m_vOmniScoreRegion

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

Definition at line 112 of file DiTauSelectionTool.h.

◆ m_vPtRegion

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

Definition at line 104 of file DiTauSelectionTool.h.


The documentation for this class was generated from the following files:
TauAnalysisTools::DiTauSelectionTool::m_bCreateControlPlots
Gaudi::Property< bool > m_bCreateControlPlots
Definition: DiTauSelectionTool.h:151
TauAnalysisTools::DiTauSelectionTool::m_vecPtRegion
Gaudi::Property< std::vector< float > > m_vecPtRegion
Definition: DiTauSelectionTool.h:131
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TauAnalysisTools::OMNIIDNONE
@ OMNIIDNONE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:31
TauAnalysisTools::DiTauSelectionTool::m_aAccept
asg::AcceptInfo m_aAccept
Object used to store selection information.
Definition: DiTauSelectionTool.h:155
asg::AsgMetadataTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new events is loaded.
Definition: AsgMetadataTool.cxx:201
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:407
TauAnalysisTools::DiTauSelectionTool::m_OmniScoreDecorKey
SG::ReadDecorHandleKey< xAOD::DiTauJetContainer > m_OmniScoreDecorKey
Definition: DiTauSelectionTool.h:152
TauAnalysisTools::OMNIIDTIGHT
@ OMNIIDTIGHT
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:35
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TauAnalysisTools::DiTauSelectionTool::m_dPtMin
Gaudi::Property< float > m_dPtMin
Definition: DiTauSelectionTool.h:120
TauAnalysisTools::DiTauSelectionTool::m_dPtMax
Gaudi::Property< float > m_dPtMax
Definition: DiTauSelectionTool.h:121
TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMax
Gaudi::Property< float > m_dOmniScoreMax
Definition: DiTauSelectionTool.h:128
TauAnalysisTools::DiTauCutOmniScore
@ DiTauCutOmniScore
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:71
TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMin
Gaudi::Property< float > m_dAbsEtaMin
Definition: DiTauSelectionTool.h:122
ReadBchFromCrest.begin
begin
Definition: ReadBchFromCrest.py:80
TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMin
Gaudi::Property< float > m_dOmniScoreMin
Definition: DiTauSelectionTool.h:127
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TauAnalysisTools::DiTauCutPt
@ DiTauCutPt
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:67
TauAnalysisTools::DiTauCutAbsCharge
@ DiTauCutAbsCharge
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:70
TauAnalysisTools::DiTauCutOmniIDWP
@ DiTauCutOmniIDWP
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:72
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:193
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_sOmniIDWP
std::string m_sOmniIDWP
Definition: DiTauSelectionTool.h:114
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
TauAnalysisTools::OMNIIDLOOSE
@ OMNIIDLOOSE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:33
TauAnalysisTools::DiTauSelectionTool::m_iAbsCharge
Gaudi::Property< float > m_iAbsCharge
Definition: DiTauSelectionTool.h:126
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
TauAnalysisTools::DiTauSelectionTool::m_vAbsCharges
std::vector< int > m_vAbsCharges
Definition: DiTauSelectionTool.h:110
TauAnalysisTools::DiTauSelectionTool::m_vecAbsEtaRegion
Gaudi::Property< std::vector< float > > m_vecAbsEtaRegion
Definition: DiTauSelectionTool.h:132
TauAnalysisTools::NoDiTauCut
@ NoDiTauCut
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:66
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:92
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::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
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:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TauAnalysisTools::DiTauSelectionTool::m_vAbsEtaRegion
std::vector< float > m_vAbsEtaRegion
Definition: DiTauSelectionTool.h:106
TauAnalysisTools::DiTauSelectionTool::m_sConfigPath
Gaudi::Property< std::string > m_sConfigPath
Definition: DiTauSelectionTool.h:118
lumiFormat.i
int i
Definition: lumiFormat.py:85
TauAnalysisTools::DiTauSelectionTool::m_hCutFlow
std::shared_ptr< TH1F > m_hCutFlow
Definition: DiTauSelectionTool.h:139
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
asg::AsgMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
Definition: AsgMetadataTool.cxx:185
master.flag
bool flag
Definition: master.py:29
CalibDbCompareRT.dummy
dummy
Definition: CalibDbCompareRT.py:59
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:209
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:69
TauAnalysisTools::DiTauSelectionTool::setupCutFlowHistogram
void setupCutFlowHistogram()
Definition: DiTauSelectionTool.cxx:422
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TauAnalysisTools::DiTauSelectionTool::PrintConfigValue
void PrintConfigValue(const std::string &sCutName, std::vector< T > &vRegion) const
Definition: DiTauSelectionTool.cxx:484
TauAnalysisTools::DiTauSelectionTool::FillRegionVector
void FillRegionVector(std::vector< T > &vRegion, U tMin, U tMax) const
Definition: DiTauSelectionTool.cxx:446
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::convertOmniIDWPToStr
std::string convertOmniIDWPToStr(int iOmniIDWP) const
Definition: DiTauSelectionTool.cxx:511
TauAnalysisTools::DiTauSelectionTool::m_vPtRegion
std::vector< float > m_vPtRegion
Definition: DiTauSelectionTool.h:104
TauAnalysisTools::OMNIIDMEDIUM
@ OMNIIDMEDIUM
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:34
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
TauAnalysisTools::DiTauSelectionTool::m_iOmniIDWP
Gaudi::Property< int > m_iOmniIDWP
Definition: DiTauSelectionTool.h:129
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMax
Gaudi::Property< float > m_dAbsEtaMax
Definition: DiTauSelectionTool.h:123
TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMin
Gaudi::Property< float > m_dNSubjetsMin
Definition: DiTauSelectionTool.h:124
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:321
TauAnalysisTools::DiTauSelectionTool::convertStrToOmniIDWP
int convertStrToOmniIDWP(const std::string &sOmniIDWP) const
Definition: DiTauSelectionTool.cxx:498
TauAnalysisTools::DiTauSelectionTool::m_vecAbsCharges
Gaudi::Property< std::vector< int > > m_vecAbsCharges
Definition: DiTauSelectionTool.h:134
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
TauAnalysisTools::DiTauSelectionTool::m_vecOmniScoreRegion
Gaudi::Property< std::vector< float > > m_vecOmniScoreRegion
Definition: DiTauSelectionTool.h:135
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
TauAnalysisTools::DiTauSelectionTool::m_useOmniScore
bool m_useOmniScore
Definition: DiTauSelectionTool.h:116
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:473
TauAnalysisTools::DiTauSelectionTool::m_vecNSubjetsRegion
Gaudi::Property< std::vector< float > > m_vecNSubjetsRegion
Definition: DiTauSelectionTool.h:133
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
xAOD::DiTauJet_v1
Definition: DiTauJet_v1.h:31
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
TauAnalysisTools::DiTauCutAbsEta
@ DiTauCutAbsEta
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:68
TauAnalysisTools::DiTauSelectionTool::m_cMap
std::map< DiTauSelectionCuts, std::unique_ptr< TauAnalysisTools::DiTauSelectionCut > > m_cMap
Definition: DiTauSelectionTool.h:143
TauAnalysisTools::DiTauSelectionTool::m_vNSubjetsRegion
std::vector< float > m_vNSubjetsRegion
Definition: DiTauSelectionTool.h:108
TauAnalysisTools::DiTauSelectionTool::m_vOmniScoreRegion
std::vector< float > m_vOmniScoreRegion
Definition: DiTauSelectionTool.h:112
TauAnalysisTools::DiTauSelectionTool::FillValueVector
void FillValueVector(std::vector< T > &vRegion, U tVal) const
Definition: DiTauSelectionTool.cxx:463
asg::AcceptData
Definition: AcceptData.h:30
TauAnalysisTools::DiTauSelectionTool::m_iSelectionCuts
Gaudi::Property< int > m_iSelectionCuts
Definition: DiTauSelectionTool.h:119
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:312
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition: Event/xAOD/xAODJet/xAODJet/Jet.h:17
TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMax
Gaudi::Property< float > m_dNSubjetsMax
Definition: DiTauSelectionTool.h:125
fitman.k
k
Definition: fitman.py:528
TauAnalysisTools::OMNIIDVERYLOOSE
@ OMNIIDVERYLOOSE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:32
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:138
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128