ATLAS Offline Software
Loading...
Searching...
No Matches
TauAnalysisTools::DiTauSelectionTool Class Reference

#include <DiTauSelectionTool.h>

Inheritance diagram for TauAnalysisTools::DiTauSelectionTool:

Public Types

Definition of the StoreGate-like object's definition
typedef ServiceHandle< StoreGateSvcMetaStore_t
 Type of the metadata store object in Athena.
typedef const ServiceHandle< StoreGateSvc > & MetaStorePtr_t
 Type of the metadata store pointer in standalone mode.

Public Member Functions

virtual StatusCode sysInitialize ()
 Function initialising the tool in the correct way in Athena.
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Functions providing access to the input/output metadata
MetaStorePtr_t inputMetaStore () const
 Accessor for the input metadata store.
MetaStorePtr_t outputMetaStore () const
 Accessor for the output metadata store.
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.
Callback functions helping in metadata reading/writing
void setUseIncidents (const bool flag)
virtual void handle (const Incident &inc)
 Function receiving incidents from IncidentSvc/TEvent.
virtual StatusCode beginInputFile ()
 Function called when a new input file is opened.
virtual StatusCode endInputFile ()
 Function called when the currently open input file got completely processed.
virtual StatusCode metaDataStop ()
 Function called when the tool should write out its metadata.

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.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

virtual ASG_TOOL_CLASS2(DiTauSelectionTool, IAsgSelectionTool, TauAnalysisTools::IDiTauSelectionTool) public ~DiTauSelectionTool ()
 Create a proper constructor for Athena.
virtual StatusCode initialize () override
 Function initialising the tool.
virtual const asg::AcceptInfogetAcceptInfo () const override
 Get an object describing the "selection steps" of the tool.
virtual asg::AcceptData accept (const xAOD::IParticle *p) const override
 Get the decision using a generic IParticle pointer.
virtual asg::AcceptData accept (const xAOD::DiTauJet &tau) const override
 Get the decision for a specific TauJet object.
virtual void setOutFile (TFile *fOutFile) override
 Set output file for control histograms.
virtual void writeControlHistograms () override
 Write control histograms to output file.
virtual StatusCode beginEvent () override
 Function called when a new events is loaded.
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
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

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_dAbsEtaMin {this, "AbsEtaMin", NAN}
Gaudi::Property< float > m_dAbsEtaMax {this, "AbsEtaMax", NAN}
Gaudi::Property< float > m_dNSubjetsMin {this, "NSubjetsMin", 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_vecAbsEtaRegion {this, "AbsEtaRegion",{}}
Gaudi::Property< std::vector< int > > m_vecAbsCharges {this, "AbsCharges", {}}
std::map< DiTauSelectionCuts, std::unique_ptr< TauAnalysisTools::DiTauSelectionCut > > m_cMap
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store.
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store.
bool m_beginInputFileCalled
 Flag helping to discover when the tool misses the opening of the first input file.
bool m_useIncidents
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Friends

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

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

274{
275 asg::AcceptData acceptData (&m_aAccept);
276
277 int iNBin = 0;
278
280 {
281 // fill cutflow 'All' bin
282 m_hCutFlow->Fill(iNBin);
283 // fill main distributions before all cuts
284 for (const auto& entry : m_cMap)
285 entry.second->fillHistogramCutPre(xDiTau);
286 }
287 try
288 {
289 for (const auto& entry : m_cMap)
290 {
291 if (m_iSelectionCuts & entry.first)
292 {
293 if (!entry.second->accept(xDiTau, acceptData))
294 return acceptData;
295 else
296 {
298 {
299 // fill cutflow after each passed cut
300 iNBin++;
301 m_hCutFlow->Fill(iNBin);
302 }
303 }
304 }
305 }
306 }
307 catch (const std::runtime_error& error)
308 {
309 // LEGACY: In practical terms this should probably just throw, not
310 // print a warning/error and then continue on. However, I leave
311 // that to the experts who probably had a reason not to let the
312 // exception escape. For now I just downgraded it from error to
313 // warning and limited the number of warnings (04 Jan 22).
314 static std::atomic<uint64_t> warning_count (0u);
315 auto mycount = ++ warning_count;
316 if (mycount < 10u)
317 {
318 ATH_MSG_WARNING(error.what());
319 if (mycount == 9u)
320 ATH_MSG_WARNING ("this is your last warning");
321 }
322 }
323
324 // fill main distributions after all cuts
326 {
327 for (const auto& entry : m_cMap)
328 entry.second->fillHistogramCut(xDiTau);
329 }
330
331 // // Return the result:
332 return acceptData;
333}
#define ATH_MSG_WARNING(x)
std::map< DiTauSelectionCuts, std::unique_ptr< TauAnalysisTools::DiTauSelectionCut > > m_cMap
Gaudi::Property< bool > m_bCreateControlPlots
asg::AcceptInfo m_aAccept
Object used to store selection information.

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

252{
253 // Check if this is a jet:
254 if( xP->type() != xAOD::Type::Jet )
255 {
256 ATH_MSG_ERROR( "accept(...) Function received a non-jet" );
257 return asg::AcceptData (&m_aAccept);
258 }
259
260 // Cast it to a ditau:
261 const xAOD::DiTauJet* xDiTau = dynamic_cast< const xAOD::DiTauJet* >( xP );
262 if( ! xDiTau )
263 {
264 ATH_MSG_FATAL( "accept(...) Failed to cast particle to tau" );
265 return asg::AcceptData (&m_aAccept);
266 }
267
268 // Let the specific function do the work:
269 return accept( *xDiTau );
270}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
virtual asg::AcceptData accept(const xAOD::IParticle *p) const override
Get the decision using a generic IParticle pointer.
@ Jet
The object is a jet.
Definition ObjectType.h:40
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17

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

240{
241 return StatusCode::SUCCESS;
242}

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

Definition at line 185 of file AsgMetadataTool.cxx.

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

◆ convertStrToOmniIDWP()

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

Definition at line 437 of file DiTauSelectionTool.cxx.

438{
439 if (sOmniIDWP == "OMNIIDNONE") return int(OMNIIDNONE);
440 else if (sOmniIDWP == "OMNIIDVERYLOOSE") return int(OMNIIDVERYLOOSE);
441 else if (sOmniIDWP == "OMNIIDLOOSE") return int(OMNIIDLOOSE);
442 else if (sOmniIDWP == "OMNIIDMEDIUM") return int(OMNIIDMEDIUM);
443 else if (sOmniIDWP == "OMNIIDTIGHT") return int(OMNIIDTIGHT);
444
445 ATH_MSG_ERROR( "omni ID working point "<<sOmniIDWP<<" is unknown, the OmniIDWP cut will not accept any ditau!" );
446 return -1;
447}

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

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

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

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

Definition at line 193 of file AsgMetadataTool.cxx.

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

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ FillRegionVector()

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

Definition at line 385 of file DiTauSelectionTool.cxx.

386{
387 if (!vRegion.empty())
388 return;
389 if (!std::isnan(tMin)) // if tMin is NAN, then this assumption fails and -inf is added to the vector
390 vRegion.push_back(tMin);
391 else
392 vRegion.push_back(-std::numeric_limits<T>::infinity());
393
394 if (!std::isnan(tMax)) // if tMax is NAN, then this assumption fails and inf is added to the vector
395 vRegion.push_back(tMax);
396 else
397 vRegion.push_back(std::numeric_limits<T>::infinity());
398}

◆ FillValueVector()

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

Definition at line 402 of file DiTauSelectionTool.cxx.

403{
404 if (!vRegion.empty())
405 return;
406 if (tVal == tVal) // if tMax is NAN, then this assumption fails and nothing is added to the vector
407 vRegion.push_back(tVal);
408}

◆ getAcceptInfo()

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

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

Implements IAsgSelectionTool.

Definition at line 245 of file DiTauSelectionTool.cxx.

246{
247 return m_aAccept;
248}

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ 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 ) {
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 ) {
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 }
#define ATH_MSG_VERBOSE(x)
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
virtual StatusCode beginEvent()
Function called when a new events is loaded.
bool m_beginInputFileCalled
Flag helping to discover when the tool misses the opening of the first input file.
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.

◆ initialize()

StatusCode DiTauSelectionTool::initialize ( void )
overrideprivatevirtual

Function initialising the tool.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 37 of file DiTauSelectionTool.cxx.

38{
39
42
43 bool bConfigViaConfigFile = !m_sConfigPath.empty();
44 bool bConfigViaProperties = false;
45 if (!bConfigViaProperties and !std::isnan(m_dPtMin.value())) bConfigViaProperties = true;
46 if (!bConfigViaProperties and !m_vAbsEtaRegion.empty()) bConfigViaProperties = true;
47 if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMin.value())) bConfigViaProperties = true;
48 if (!bConfigViaProperties and !std::isnan(m_dAbsEtaMax.value())) bConfigViaProperties = true;
49 if (!bConfigViaProperties and !std::isnan(m_dNSubjetsMin.value())) bConfigViaProperties = true;
50 if (!bConfigViaProperties and !m_vAbsCharges.empty()) bConfigViaProperties = true;
51 if (!bConfigViaProperties and !std::isnan(m_iAbsCharge.value())) bConfigViaProperties = true;
52 if (!bConfigViaProperties and !std::isnan(m_dOmniScoreMin.value())) bConfigViaProperties = true;
53 if (!bConfigViaProperties and m_iOmniIDWP != 0) bConfigViaProperties = true;
54
55 if (bConfigViaConfigFile and bConfigViaProperties)
56 {
57 ATH_MSG_ERROR("Configured tool via setProperty and configuration file, which may lead to unexpected configuration. Please setup the DiTauSelectionTool using only one of the two methods. For further details please refer to the documentation https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst or contact the TauCP group.");
58 return StatusCode::FAILURE;
59
60 }
61 if (!bConfigViaConfigFile and !bConfigViaProperties)
62 {
63 ATH_MSG_WARNING("No cut configuration provided, the tool will not do anything. For further details please refer to the documentation:");
64 ATH_MSG_WARNING("https://gitlab.cern.ch/atlas/athena/blob/main/PhysicsAnalysis/TauID/TauAnalysisTools/doc/README-DiTauSelectionTool.rst");
65 }
66
67 if (bConfigViaConfigFile)
68 {
69 TEnv rEnv;
70 std::string sInputFilePath = PathResolverFindCalibFile(m_sConfigPath);
71
72 if (!testFileForEOFContainsCharacters(sInputFilePath))
73 ATH_MSG_WARNING("Config file for DiTauSelectionTool with path "<<sInputFilePath<<" does not contain an empty last line. The tool might not be properly configured!");
74
75 rEnv.ReadFile(sInputFilePath.c_str(),
76 kEnvAll);
77
78 std::vector<std::string> vCuts;
79 // if Cuts are specified in the config file take these ones, if not take all
80 // specified in the config
81 if (rEnv.Defined("SelectionCuts"))
82 TauAnalysisTools::split(rEnv, "SelectionCuts", ' ', vCuts);
83 else
84 {
85 auto lList = rEnv.GetTable();
86 for( Int_t i = 0; i < lList->GetEntries(); ++i )
87 {
88 vCuts.push_back( lList->At( i )->GetName() );
89 }
90 }
91
92 int iSelectionCuts = 0;
93
94 for (const std::string& sCut : vCuts)
95 {
96 if (sCut == "PtMin")
97 {
98 iSelectionCuts = iSelectionCuts | DiTauCutPt;
99 if (std::isnan(m_dPtMin.value()))
100 m_dPtMin = rEnv.GetValue("PtMin",NAN);
101 }
102 else if (sCut == "AbsEtaRegion")
103 {
104 iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
105 if (m_vAbsEtaRegion.empty())
106 TauAnalysisTools::split(rEnv,"AbsEtaRegion", ';', m_vAbsEtaRegion);
107 }
108 else if (sCut == "AbsEtaMin")
109 {
110 iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
111 if (std::isnan(m_dAbsEtaMin.value()))
112 m_dAbsEtaMin = rEnv.GetValue("AbsEtaMin",NAN);
113 }
114 else if (sCut == "AbsEtaMax")
115 {
116 iSelectionCuts = iSelectionCuts | DiTauCutAbsEta;
117 if (std::isnan(m_dAbsEtaMax.value()))
118 m_dAbsEtaMax = rEnv.GetValue("AbsEtaMax",NAN);
119 }
120 else if (sCut == "NSubjetsMin")
121 {
122 iSelectionCuts = iSelectionCuts | DiTauCutNSubjets;
123 if (std::isnan(m_dNSubjetsMin.value()))
124 m_dNSubjetsMin = rEnv.GetValue("NSubjetsMin",NAN);
125 }
126 else if (sCut == "AbsCharges")
127 {
128 iSelectionCuts = iSelectionCuts | DiTauCutAbsCharge;
129 if (m_vAbsCharges.empty())
130 TauAnalysisTools::split(rEnv,"AbsCharges", ';', m_vAbsCharges);
131 }
132 else if (sCut == "AbsCharge")
133 {
134 iSelectionCuts = iSelectionCuts | DiTauCutAbsCharge;
135 if (std::isnan(m_iAbsCharge.value()))
136 m_iAbsCharge = rEnv.GetValue("AbsCharge",NAN);
137 }
138 else if (sCut == "OmniScoreMin")
139 {
140 iSelectionCuts = iSelectionCuts | DiTauCutOmniScore;
141 if (std::isnan(m_dOmniScoreMin.value()))
142 m_dOmniScoreMin = rEnv.GetValue("OmniScoreMin",NAN);
143
144 // check for possible mis-config in DiTau selection
145 for (const std::string& checkCut : vCuts){
146 if (checkCut.find("OmniScoreRegion") != std::string::npos) {
147 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");
148 return StatusCode::FAILURE;
149 }
150 }
151
152 // check if using OmniScore
153 m_useOmniScore = true;
154 }
155 else if (sCut == "OmniIDWP")
156 {
157 iSelectionCuts = iSelectionCuts | DiTauCutOmniIDWP;
158 if (m_iOmniIDWP == OMNIIDNONE){
159 m_sOmniIDWP = rEnv.GetValue("OmniIDWP","OMNIIDNONE");
161 }
162 // check for possible mis-config in Tau selection
163 for (const std::string& checkCut : vCuts){
164 if (checkCut.find("OmniScore") != std::string::npos) {
165 ATH_MSG_ERROR("Misconfig due to OmniIDWP and OmniScore cuts both present in the config file. Please CHECK carefully config file again");
166 return StatusCode::FAILURE;
167 }
168 }
169 }
170 else ATH_MSG_WARNING("Cut " << sCut << " is not available");
171 }
172
174 m_iSelectionCuts = iSelectionCuts;
175 }
176
177 // initialise the ReadDecorHandleKey if OmniScore is applied
178 if (m_useOmniScore) {
179 if(m_OmniScoreDecorKey.empty()) {
180 ATH_CHECK( m_OmniScoreDecorKey.assign("DiTauJets.omni_score"));
181 }
182 }
184
185 // specify all available cut descriptions
186 using map_type = std::map<DiTauSelectionCuts, std::unique_ptr<TauAnalysisTools::DiTauSelectionCut>>;
187 using pair_type = map_type::value_type;
188
189 pair_type elements[] =
190 {
191 {DiTauCutPt, std::make_unique<TauAnalysisTools::DiTauSelectionCutPt>(this)},
192 {DiTauCutAbsEta, std::make_unique<TauAnalysisTools::DiTauSelectionCutAbsEta>(this)},
193 {DiTauCutNSubjets, std::make_unique<TauAnalysisTools::DiTauSelectionCutNSubjets>(this)},
194 {DiTauCutAbsCharge, std::make_unique<TauAnalysisTools::DiTauSelectionCutAbsCharge>(this)},
195 {DiTauCutOmniScore, std::make_unique<TauAnalysisTools::DiTauSelectionCutOmniScore>(this)},
196 {DiTauCutOmniIDWP, std::make_unique<TauAnalysisTools::DiTauSelectionCutOmniIDWP>(this)},
197 };
198
199 m_cMap = { std::make_move_iterator( begin(elements) ), std::make_move_iterator( end(elements) ) };
200
201 ATH_MSG_INFO( "Initializing DiTauSelectionTool" );
207
211 PrintConfigValue ("AbsCharge", m_vAbsCharges);
213 PrintConfigValue ("OmniIDWP", m_sOmniIDWP);
214
215 std::string sCuts = "";
216 if (m_iSelectionCuts & DiTauCutPt) sCuts += "Pt ";
217 if (m_iSelectionCuts & DiTauCutAbsEta) sCuts += "AbsEta ";
218 if (m_iSelectionCuts & DiTauCutNSubjets) sCuts += "NSubjets ";
219 if (m_iSelectionCuts & DiTauCutAbsCharge) sCuts += "AbsCharge ";
220 if (m_iSelectionCuts & DiTauCutOmniScore) sCuts += "OmniScore ";
221 if (m_iSelectionCuts & DiTauCutOmniIDWP) sCuts += "OmniIDWP ";
222
223 ATH_MSG_DEBUG( "cuts: " << sCuts);
224
227
228 for ( const auto& entry : m_cMap ) {
229 if ( m_iSelectionCuts &entry.first ) {
230 entry.second->setAcceptInfo(m_aAccept);
231 }
232 }
233
234 return StatusCode::SUCCESS;
235}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< std::vector< float > > m_vecAbsEtaRegion
Gaudi::Property< std::string > m_sConfigPath
SG::ReadDecorHandleKey< xAOD::DiTauJetContainer > m_OmniScoreDecorKey
int convertStrToOmniIDWP(const std::string &sOmniIDWP) const
Gaudi::Property< std::vector< int > > m_vecAbsCharges
void FillValueVector(std::vector< T > &vRegion, U tVal) const
void FillRegionVector(std::vector< T > &vRegion, U tMin, U tMax) const
void PrintConfigRegion(const std::string &sCutName, std::vector< T > &vRegion) const
void PrintConfigValue(const std::string &sCutName, std::vector< T > &vRegion) const
void split(const std::string &sInput, const char cDelim, std::vector< std::string > &vOut)
bool testFileForEOFContainsCharacters(const std::string &sFileName)
returns true if last line in file is empty or the line starts with the number sign

◆ 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 }
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.

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

Definition at line 209 of file AsgMetadataTool.cxx.

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

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ 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 }
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.

◆ print()

◆ PrintConfigRegion()

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

Definition at line 412 of file DiTauSelectionTool.cxx.

413{
414 unsigned int iNumRegion = vRegion.size()/2;
415 for( unsigned int iRegion = 0; iRegion < iNumRegion; iRegion++ )
416 {
417 ATH_MSG_DEBUG( sCutName<<": " << vRegion.at(iRegion*2) << " to " << vRegion.at(iRegion*2+1) );
418 }
419}

◆ PrintConfigValue() [1/2]

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

Definition at line 423 of file DiTauSelectionTool.cxx.

424{
425 for (auto tVal : vRegion)
426 ATH_MSG_DEBUG( sCutName<<": " << tVal );
427}

◆ PrintConfigValue() [2/2]

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

Definition at line 431 of file DiTauSelectionTool.cxx.

432{
433 ATH_MSG_DEBUG( sCutName<<": " << tVal );
434}

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setOutFile()

void DiTauSelectionTool::setOutFile ( TFile * fOutFile)
overrideprivatevirtual

Set output file for control histograms.

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 336 of file DiTauSelectionTool.cxx.

337{
338 m_fOutFile = fOutFile;
339}

◆ setupCutFlowHistogram()

void DiTauSelectionTool::setupCutFlowHistogram ( )
private

Definition at line 361 of file DiTauSelectionTool.cxx.

362{
363 // count number of cuts
364 int iNBins = 0;
365 for (const auto& entry : m_cMap)
366 if (m_iSelectionCuts & entry.first)
367 iNBins++;
368 // create cutflow histogram with iNBins+1 bins, where first bin is 'All' bin
369 m_hCutFlow = std::make_shared<TH1F>("hCutFlow","CutFlow;; events",iNBins+1,0,iNBins+1);
370 m_hCutFlow->GetXaxis()->SetBinLabel(1,"All");
371
372 // reusing this variable to reduce overhead
373 iNBins = 2;
374 // set bin labels
375 for (const auto& entry : m_cMap)
376 if (m_iSelectionCuts & entry.first)
377 {
378 m_hCutFlow->GetXaxis()->SetBinLabel(iNBins, entry.second->getName().c_str());
379 iNBins++;
380 }
381}

◆ setUseIncidents()

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

Definition at line 132 of file AsgMetadataTool.h.

133 {
135 }
bool flag
Definition master.py:29

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

◆ writeControlHistograms()

void DiTauSelectionTool::writeControlHistograms ( )
overrideprivatevirtual

Write control histograms to output file.

create output directory

write cutflow histogram

Implements TauAnalysisTools::IDiTauSelectionTool.

Definition at line 342 of file DiTauSelectionTool.cxx.

343{
345 ATH_MSG_WARNING("CreateControlPlots was set to true, but no valid file pointer was provided");
347 {
349 m_fOutFile->mkdir((this->name()+"_control").c_str());
350 m_fOutFile->cd((this->name()+"_control").c_str());
352 m_hCutFlow->Write();
353
354 for (const auto& entry : m_cMap)
355 entry.second->writeControlHistograms();
356 }
357}

◆ ~DiTauSelectionTool()

DiTauSelectionTool::~DiTauSelectionTool ( )
privatevirtual

Create a proper constructor for Athena.

Definition at line 31 of file DiTauSelectionTool.cxx.

32{
33 m_cMap.clear();
34}

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

◆ m_bCreateControlPlots

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

Definition at line 145 of file DiTauSelectionTool.h.

145{this, "CreateControlPlots", false};

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

◆ m_dAbsEtaMax

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

Definition at line 122 of file DiTauSelectionTool.h.

122{this, "AbsEtaMax", NAN};

◆ m_dAbsEtaMin

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

Definition at line 121 of file DiTauSelectionTool.h.

121{this, "AbsEtaMin", NAN};

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

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

Definition at line 123 of file DiTauSelectionTool.h.

123{this, "NSubjetsMin", NAN};

◆ m_dOmniScoreMax

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

Definition at line 126 of file DiTauSelectionTool.h.

126{this, "OmniScoreMax", NAN};

◆ m_dOmniScoreMin

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

Definition at line 125 of file DiTauSelectionTool.h.

125{this, "OmniScoreMin", NAN};

◆ m_dPtMin

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

Definition at line 120 of file DiTauSelectionTool.h.

120{this, "PtMin", NAN};

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

◆ m_hCutFlow

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

Definition at line 134 of file DiTauSelectionTool.h.

◆ m_iAbsCharge

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

Definition at line 124 of file DiTauSelectionTool.h.

124{this, "AbsCharge", NAN};

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

127{this, "OmniIDWP", 0};

◆ m_iSelectionCuts

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

Definition at line 119 of file DiTauSelectionTool.h.

119{this, "SelectionCuts", NoDiTauCut};

◆ m_OmniScoreDecorKey

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

Definition at line 146 of file DiTauSelectionTool.h.

146{this, "OmniScoreDecorName", "", "Name of OmniScore decoration"};

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

118{this, "ConfigPath", ""};

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

130{this, "AbsCharges", {}};

◆ m_vecAbsEtaRegion

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

Definition at line 129 of file DiTauSelectionTool.h.

129{this, "AbsEtaRegion",{}};

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