 |
ATLAS Offline Software
|
#include <DiTauSelectionTool.h>
|
| 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 |
| |
|
| virtual StatusCode | initialize () override |
| | Function initialising the tool. More...
|
| |
| virtual const asg::AcceptInfo & | getAcceptInfo () 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...
|
| |
|
| 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 |
| |
Definition at line 44 of file DiTauSelectionTool.h.
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
◆ StoreGateSvc_t
◆ accept() [1/2]
Get the decision for a specific TauJet object.
Implements TauAnalysisTools::IDiTauSelectionTool.
Definition at line 334 of file DiTauSelectionTool.cxx.
346 entry.second->fillHistogramCutPre(xDiTau);
354 if (!
entry.second->accept(xDiTau, acceptData))
368 catch (
const std::runtime_error&
error)
375 static std::atomic<uint64_t> warning_count (0
u);
376 auto mycount = ++ warning_count;
389 entry.second->fillHistogramCut(xDiTau);
◆ accept() [2/2]
◆ 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.
302 return StatusCode::SUCCESS;
◆ 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.
188 return StatusCode::SUCCESS;
◆ convertOmniIDWPToStr()
| std::string DiTauSelectionTool::convertOmniIDWPToStr |
( |
int |
iOmniIDWP | ) |
const |
|
private |
Definition at line 511 of file DiTauSelectionTool.cxx.
518 return "OMNIIDVERYLOOSE";
520 return "OMNIIDLOOSE";
522 return "OMNIIDMEDIUM";
524 return "OMNIIDTIGHT";
527 ATH_MSG_WARNING(
"OmniID working point with enum " << iOmniIDWP <<
" is unknown, the OmniIDWP cut will not accept any ditau!" );
◆ convertStrToOmniIDWP()
| int DiTauSelectionTool::convertStrToOmniIDWP |
( |
const std::string & |
sOmniIDWP | ) |
const |
|
private |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ endInputFile()
| StatusCode asg::AsgMetadataTool::endInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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 446 of file DiTauSelectionTool.cxx.
448 if (!vRegion.empty())
450 if (!std::isnan(tMin))
451 vRegion.push_back(tMin);
453 vRegion.push_back(-std::numeric_limits<T>::infinity());
455 if (!std::isnan(tMax))
456 vRegion.push_back(tMax);
458 vRegion.push_back(std::numeric_limits<T>::infinity());
◆ FillValueVector()
template<typename T , typename U >
| void DiTauSelectionTool::FillValueVector |
( |
std::vector< T > & |
vRegion, |
|
|
U |
tVal |
|
) |
| const |
|
private |
◆ getAcceptInfo()
◆ getKey()
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
-
| ptr | The 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.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ 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
-
| ptr | The 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.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ 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.
141 if( inc.type() == IncidentType::BeginInputFile ) {
145 throw std::runtime_error(
"Couldn't call beginInputFile()" );
147 }
else if( inc.type() == IncidentType::EndInputFile ) {
150 throw std::runtime_error(
"Couldn't call endInputFile()" );
152 }
else if( inc.type() == IncidentType::BeginEvent ) {
160 throw std::runtime_error(
"Couldn't call beginInputFile()" );
165 throw std::runtime_error(
"Couldn't call beginEvent()" );
168 #ifdef XAOD_STANDALONE
169 }
else if( inc.type() == IncidentType::MetaDataStop ) {
172 throw std::runtime_error(
"Couldn't call metaDataStop()" );
175 #endif // XAOD_STANDALONE
177 ATH_MSG_WARNING(
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
◆ initialize()
| StatusCode DiTauSelectionTool::initialize |
( |
| ) |
|
|
overrideprivatevirtual |
Function initialising the tool.
Implements TauAnalysisTools::IDiTauSelectionTool.
Definition at line 37 of file DiTauSelectionTool.cxx.
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;
64 if (bConfigViaConfigFile and bConfigViaProperties)
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");
71 if (!bConfigViaConfigFile and !bConfigViaProperties)
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");
77 if (bConfigViaConfigFile)
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!");
85 rEnv.ReadFile(sInputFilePath.c_str(),
88 std::vector<std::string> vCuts;
91 if (rEnv.Defined(
"SelectionCuts"))
95 auto lList = rEnv.GetTable();
96 for( Int_t
i = 0;
i < lList->GetEntries(); ++
i )
98 vCuts.push_back( lList->At(
i )->GetName() );
102 int iSelectionCuts = 0;
104 for (
const std::string& sCut : vCuts)
106 if (sCut ==
"PtRegion")
112 else if (sCut ==
"PtMin")
116 m_dPtMin = rEnv.GetValue(
"PtMin",NAN);
118 else if (sCut ==
"PtMax")
122 m_dPtMax = rEnv.GetValue(
"PtMax",NAN);
124 else if (sCut ==
"AbsEtaRegion")
130 else if (sCut ==
"AbsEtaMin")
136 else if (sCut ==
"AbsEtaMax")
142 else if (sCut ==
"NSubjetsRegion")
148 else if (sCut ==
"NSubjetsMin")
154 else if (sCut ==
"NSubjetsMax")
160 else if (sCut ==
"AbsCharges")
166 else if (sCut ==
"AbsCharge")
172 else if (sCut ==
"OmniScoreRegion")
181 else if (sCut ==
"OmniScoreMin")
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;
198 else if (sCut ==
"OmniScoreMax")
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;
215 else if (sCut ==
"OmniIDWP")
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;
247 using map_type = std::map<DiTauSelectionCuts, std::unique_ptr<TauAnalysisTools::DiTauSelectionCut>>;
248 using pair_type = map_type::value_type;
250 pair_type elements[] =
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)},
260 m_cMap = { std::make_move_iterator(
begin(elements) ), std::make_move_iterator(
end(elements) ) };
276 std::string sCuts =
"";
295 return StatusCode::SUCCESS;
◆ inputHandles()
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.
95 #ifdef XAOD_STANDALONE
97 #else // XAOD_STANDALONE
99 #endif // XAOD_STANDALONE
◆ metaDataStop()
| StatusCode asg::AsgMetadataTool::metaDataStop |
( |
| ) |
|
|
protectedvirtualinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ msgLvl()
◆ outputHandles()
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.
104 #ifdef XAOD_STANDALONE
106 #else // XAOD_STANDALONE
108 #endif // XAOD_STANDALONE
◆ print() [1/2]
| void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
| virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ 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.
475 unsigned int iNumRegion = vRegion.size()/2;
476 for(
unsigned int iRegion = 0; iRegion < iNumRegion; iRegion++ )
478 ATH_MSG_DEBUG( sCutName<<
": " << vRegion.at(iRegion*2) <<
" to " << vRegion.at(iRegion*2+1) );
◆ PrintConfigValue() [1/2]
template<typename T >
| void DiTauSelectionTool::PrintConfigValue |
( |
const std::string & |
sCutName, |
|
|
std::vector< T > & |
vRegion |
|
) |
| const |
|
private |
◆ PrintConfigValue() [2/2]
template<typename T >
| void DiTauSelectionTool::PrintConfigValue |
( |
const std::string & |
sCutName, |
|
|
T & |
sVal |
|
) |
| const |
|
private |
◆ renounce()
◆ renounceArray()
◆ setOutFile()
| void DiTauSelectionTool::setOutFile |
( |
TFile * |
fOutFile | ) |
|
|
overrideprivatevirtual |
◆ setupCutFlowHistogram()
| void DiTauSelectionTool::setupCutFlowHistogram |
( |
| ) |
|
|
private |
◆ setUseIncidents()
| void asg::AsgMetadataTool::setUseIncidents |
( |
const bool |
flag | ) |
|
|
inlineprotectedinherited |
◆ 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.
117 #ifndef XAOD_STANDALONE
124 incSvc->addListener(
this, IncidentType::BeginEvent, 0,
false );
129 #endif // not XAOD_STANDALONE
132 return StatusCode::SUCCESS;
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ writeControlHistograms()
| void DiTauSelectionTool::writeControlHistograms |
( |
| ) |
|
|
overrideprivatevirtual |
◆ DiTauSelectionCut
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
◆ DiTauSelectionCutAbsEta
◆ DiTauSelectionCutNSubjets
◆ DiTauSelectionCutOmniIDWP
◆ DiTauSelectionCutOmniScore
◆ DiTauSelectionCutPt
◆ m_aAccept
◆ m_bCreateControlPlots
| Gaudi::Property<bool> TauAnalysisTools::DiTauSelectionTool::m_bCreateControlPlots {this, "CreateControlPlots", false} |
|
protected |
◆ 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
◆ m_dAbsEtaMax
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMax {this, "AbsEtaMax", NAN} |
|
private |
◆ m_dAbsEtaMin
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dAbsEtaMin {this, "AbsEtaMin", NAN} |
|
private |
◆ m_detStore
◆ m_dNSubjetsMax
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMax {this, "NSubjetsMax", NAN} |
|
private |
◆ m_dNSubjetsMin
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dNSubjetsMin {this, "NSubjetsMin", NAN} |
|
private |
◆ m_dOmniScoreMax
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMax {this, "OmniScoreMax", NAN} |
|
private |
◆ m_dOmniScoreMin
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dOmniScoreMin {this, "OmniScoreMin", NAN} |
|
private |
◆ m_dPtMax
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dPtMax {this, "PtMax", NAN} |
|
private |
◆ m_dPtMin
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_dPtMin {this, "PtMin", NAN} |
|
private |
◆ m_evtStore
◆ m_fOutFile
| TFile* TauAnalysisTools::DiTauSelectionTool::m_fOutFile |
|
protected |
◆ m_hCutFlow
| std::shared_ptr<TH1F> TauAnalysisTools::DiTauSelectionTool::m_hCutFlow |
|
protected |
◆ m_iAbsCharge
| Gaudi::Property<float> TauAnalysisTools::DiTauSelectionTool::m_iAbsCharge {this, "AbsCharge", NAN} |
|
private |
◆ m_inputMetaStore
◆ m_iOmniIDWP
| Gaudi::Property<int> TauAnalysisTools::DiTauSelectionTool::m_iOmniIDWP {this, "OmniIDWP", 0} |
|
private |
◆ m_iSelectionCuts
| Gaudi::Property<int> TauAnalysisTools::DiTauSelectionTool::m_iSelectionCuts {this, "SelectionCuts", NoDiTauCut} |
|
private |
◆ m_OmniScoreDecorKey
◆ m_outputMetaStore
◆ m_sConfigPath
| Gaudi::Property<std::string> TauAnalysisTools::DiTauSelectionTool::m_sConfigPath {this, "ConfigPath", ""} |
|
private |
◆ m_sOmniIDWP
| std::string TauAnalysisTools::DiTauSelectionTool::m_sOmniIDWP |
|
private |
◆ m_useIncidents
| bool asg::AsgMetadataTool::m_useIncidents |
|
privateinherited |
◆ m_useOmniScore
| bool TauAnalysisTools::DiTauSelectionTool::m_useOmniScore =false |
|
private |
◆ m_vAbsCharges
| std::vector<int> TauAnalysisTools::DiTauSelectionTool::m_vAbsCharges |
|
private |
◆ m_vAbsEtaRegion
| std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vAbsEtaRegion |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vecAbsCharges
| Gaudi::Property<std::vector<int> > TauAnalysisTools::DiTauSelectionTool::m_vecAbsCharges {this, "AbsCharges", {}} |
|
private |
◆ m_vecAbsEtaRegion
| Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecAbsEtaRegion {this, "AbsEtaRegion",{}} |
|
private |
◆ m_vecNSubjetsRegion
| Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecNSubjetsRegion {this, "NSubjetsRegion", {}} |
|
private |
◆ m_vecOmniScoreRegion
| Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecOmniScoreRegion {this, "OmniScoreRegion", {}} |
|
private |
◆ m_vecPtRegion
| Gaudi::Property<std::vector<float> > TauAnalysisTools::DiTauSelectionTool::m_vecPtRegion {this, "PtRegion", {}} |
|
private |
◆ m_vhka
◆ m_vNSubjetsRegion
| std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vNSubjetsRegion |
|
private |
◆ m_vOmniScoreRegion
| std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vOmniScoreRegion |
|
private |
◆ m_vPtRegion
| std::vector<float> TauAnalysisTools::DiTauSelectionTool::m_vPtRegion |
|
private |
The documentation for this class was generated from the following files:
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
@ u
Enums for curvilinear frames.
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Jet_v1 Jet
Definition of the current "jet version".