 |
ATLAS Offline Software
|
#include <CommonSmearingTool.h>
|
| | CommonSmearingTool (const std::string &sName) |
| | Create a proper constructor for Athena. More...
|
| |
| | ~CommonSmearingTool () |
| |
| virtual StatusCode | initialize () |
| | Dummy implementation of the initialisation function. More...
|
| |
| virtual CP::CorrectionCode | applyCorrection (xAOD::TauJet &xTau) const |
| | Apply the correction on a modifyable object. More...
|
| |
| virtual CP::CorrectionCode | correctedCopy (const xAOD::TauJet &xTau, xAOD::TauJet *&xTauCopy) const |
| | Create a corrected copy from a constant tau. More...
|
| |
| virtual bool | isAffectedBySystematic (const CP::SystematicVariation &systematic) const |
| | returns: whether this tool is affected by the given systematics More...
|
| |
| virtual CP::SystematicSet | affectingSystematics () const |
| | returns: the list of all systematics this tool can be affected by More...
|
| |
| virtual CP::SystematicSet | recommendedSystematics () const |
| | returns: the list of all systematics this tool recommends to use More...
|
| |
| virtual StatusCode | applySystematicVariation (const CP::SystematicSet &sSystematicSet) |
| | configure this tool for the given list of systematic variations. More...
|
| |
| 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 |
| |
|
| std::map< std::string, TH1 * > | m_mSF |
| |
| std::unordered_map< CP::SystematicSet, std::string > | m_mSystematicSets |
| |
| const CP::SystematicSet * | m_sSystematicSet |
| |
| std::map< std::string, int > | m_mSystematics |
| |
| std::map< std::string, std::string > | m_mSystematicsHistNames |
| |
| double(* | m_fX )(const xAOD::TauJet &xTau) |
| |
| double(* | m_fY )(const xAOD::TauJet &xTau) |
| |
| Gaudi::Property< std::string > | m_sInputFilePath {this, "InputFilePath", ""} |
| |
| Gaudi::Property< bool > | m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false} |
| |
| Gaudi::Property< bool > | m_bApplyFading {this, "ApplyFading", true} |
| |
| Gaudi::Property< bool > | m_bMVATESQualityCheck {this, "MVATESQualityCheck", true} |
| |
| Gaudi::Property< bool > | m_bApplyInsituCorrection {this, "ApplyInsituCorrection", true} |
| |
| bool | m_bIsData |
| |
| bool | m_bIsConfigured |
| |
| asg::AnaToolHandle< ITauToolBase > | m_tTauCombinedTES |
| |
| TruthMatchedParticleType | m_eCheckTruth |
| |
| CP::SystematicSet | m_sAffectingSystematics |
| |
| CP::SystematicSet | m_sRecommendedSystematics |
| |
|
| virtual StatusCode | beginEvent () |
| | Function called when a new events is loaded. More...
|
| |
| 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...
|
| |
Definition at line 41 of file CommonSmearingTool.h.
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
◆ StoreGateSvc_t
◆ CommonSmearingTool()
| CommonSmearingTool::CommonSmearingTool |
( |
const std::string & |
sName | ) |
|
◆ ~CommonSmearingTool()
| CommonSmearingTool::~CommonSmearingTool |
( |
| ) |
|
◆ affectingSystematics()
◆ applyCorrection()
Apply the correction on a modifyable object.
Implements TauAnalysisTools::ITauSmearingTool.
Definition at line 142 of file CommonSmearingTool.cxx.
150 bool compatibility =
true;
152 if(accPtTauEnergyScale.isAvailable(xTau)) {
157 accTESCompatibility(xTau) =
char(compatibility);
177 double dCorrection = 1.;
182 tmpCorrectionCode =
getValue(
"sf"+sProng,
187 return tmpCorrectionCode;
194 double dTotalSystematic2 = 0.;
195 double dDirection = 0.;
202 double dUncertaintySyst = 0.;
203 tmpCorrectionCode =
getValue(
it->second+sProng,
208 return tmpCorrectionCode;
211 dDirection = syst.parameter();
214 dUncertaintySyst *= dDirection;
217 dTotalSystematic2 += dUncertaintySyst * dUncertaintySyst;
221 dDirection = (dDirection > 0.) ? 1. : -1.;
224 dCorrection *= 1 + dDirection * std::sqrt(dTotalSystematic2);
231 xTau.
eta(), xTau.
phi(), xTau.
m());
◆ applySystematicVariation()
configure this tool for the given list of systematic variations.
any requested systematics that are not affecting this tool will be silently ignored
Implements CP::ISystematicsTool.
Definition at line 299 of file CommonSmearingTool.cxx.
306 return StatusCode::SUCCESS;
310 double dDirection = 0.;
312 for (
auto& sSyst : sSystematicSet)
318 ATH_MSG_VERBOSE(
"unsupported systematic variation: "<< sSyst.basename()<<
"; skipping this one");
322 if (sSyst.parameter() * dDirection < 0)
324 ATH_MSG_ERROR(
"unsupported set of systematic variations, you should either use only \"UP\" or only \"DOWN\" systematics in one set!");
326 return StatusCode::FAILURE;
328 dDirection = sSyst.parameter();
332 ATH_MSG_ERROR(
"unsupported set of systematic variations, you should not combine \"TAUS_{TRUE|FAKE}_SME_TOTAL\" with other systematic variations!");
334 return StatusCode::FAILURE;
338 sSystematicSetAvailable.
insert(sSyst);
344 return StatusCode::SUCCESS;
◆ beginEvent()
| StatusCode CommonSmearingTool::beginEvent |
( |
| ) |
|
|
privatevirtual |
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 354 of file CommonSmearingTool.cxx.
357 return StatusCode::SUCCESS;
364 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;
◆ ConvertProngToString()
| std::string CommonSmearingTool::ConvertProngToString |
( |
const int |
iProngness | ) |
const |
|
protected |
◆ correctedCopy()
◆ 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
◆ generateSystematicSets()
| void CommonSmearingTool::generateSystematicSets |
( |
| ) |
|
|
protected |
Definition at line 427 of file CommonSmearingTool.cxx.
429 std::vector<std::string> vInputFilePath;
431 std::string sInputFileName = vInputFilePath.back();
434 std::vector<std::string> vSplitInputFilePath = {};
435 split(sInputFileName,
'_',vSplitInputFilePath);
436 std::string sEfficiencyType = vSplitInputFilePath.at(0);
437 std::string sTruthType = vSplitInputFilePath.at(1);
438 std::transform(sEfficiencyType.begin(), sEfficiencyType.end(), sEfficiencyType.begin(), toupper);
439 std::transform(sTruthType.begin(), sTruthType.end(), sTruthType.begin(), toupper);
440 std::string sSystematicBaseString =
"TAUS_" + sTruthType +
"_SME_" + sEfficiencyType +
"_";
446 for (
auto& mSF :
m_mSF)
449 std::vector<std::string> vSplitNP = {};
450 split(mSF.first,
'_',vSplitNP);
452 std::string sNPUppercase;
453 if (vSplitNP.size() > 2)
455 sNP = vSplitNP.at(0)+
'_'+vSplitNP.at(1);
456 sNPUppercase = vSplitNP.at(0) +
'_' + vSplitNP.at(1);
458 sNP = vSplitNP.at(0);
459 sNPUppercase = vSplitNP.at(0);
463 if (sNP ==
"sf")
continue;
465 if (mSF.first.find(
"_1p") == std::string::npos)
continue;
468 bool bIsRecommended =
false;
469 if (isupper(sNP.at(0)))
470 bIsRecommended =
true;
473 std::transform(sNPUppercase.begin(), sNPUppercase.end(), sNPUppercase.begin(), toupper);
474 std::string sSystematicString = sSystematicBaseString + sNPUppercase;
486 ATH_MSG_DEBUG(
"connected histogram base name " << sNP <<
" with systematic " << sSystematicString);
◆ 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.
◆ getValue()
Definition at line 492 of file CommonSmearingTool.cxx.
496 TH1* hHist =
m_mSF.at(sHistName);
497 if (hHist ==
nullptr)
499 ATH_MSG_ERROR(
"Histogram with name " << sHistName <<
" was not found in input file.");
503 double dPt =
m_fX(xTau);
507 dPt =
std::max(dPt,hHist->GetXaxis()->GetXmin());
510 dPt =
std::min(dPt,hHist->GetXaxis()->GetXmax() * .999);
513 int iBin = hHist->FindFixBin(dPt,
dEta);
514 dEfficiencyScaleFactor = hHist->GetBinContent(iBin);
518 std::string sTitle = hHist->GetTitle();
521 TF1
f(
"",sTitle.c_str(), 0, 1000);
522 if (sHistName.find(
"sf_") != std::string::npos)
523 dEfficiencyScaleFactor = (dEfficiencyScaleFactor -1.) *
f.Eval(
m_fX(xTau)) + 1.;
525 dEfficiencyScaleFactor *=
f.Eval(
m_fX(xTau));
◆ 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 CommonSmearingTool::initialize |
( |
| ) |
|
|
virtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Reimplemented in TauAnalysisTools::CommonDiTauSmearingTool.
Definition at line 101 of file CommonSmearingTool.cxx.
110 std::unique_ptr<TFile> fSF( TFile::Open(sInputFilePath.c_str()) );
112 ATH_MSG_FATAL(
"Could not open file " << sInputFilePath.c_str());
113 return StatusCode::FAILURE;
123 return StatusCode::FAILURE;
133 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
◆ isAffectedBySystematic()
◆ 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.
◆ ReadInputs()
template<class T >
| void CommonSmearingTool::ReadInputs |
( |
TFile * |
fFile, |
|
|
std::map< std::string, T > & |
mMap |
|
) |
| |
|
protected |
Definition at line 375 of file CommonSmearingTool.cxx.
382 TIter itNext(fFile->GetListOfKeys());
383 while ((kKey = (TKey*)itNext()))
385 TClass *cClass = gROOT->GetClass(kKey->GetClassName());
389 std::string sKeyName = kKey->GetName();
390 if (sKeyName ==
"Xaxis")
392 TNamed* tObj = (TNamed*)kKey->ReadObj();
393 std::string sTitle = tObj->GetTitle();
395 if (sTitle ==
"P" || sTitle ==
"PFinalCalib")
401 if (sKeyName ==
"Yaxis")
403 TNamed* tObj = (TNamed*)kKey->ReadObj();
404 std::string sTitle = tObj->GetTitle();
406 if (sTitle ==
"track-eta")
411 else if (sTitle ==
"|eta|")
417 if (!cClass->InheritsFrom(
"TH1"))
419 T tObj = (
T)kKey->ReadObj();
420 tObj->SetDirectory(0);
421 mMap[sKeyName] = tObj;
◆ recommendedSystematics()
◆ renounce()
◆ renounceArray()
◆ 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()
◆ m_bApplyFading
| Gaudi::Property<bool> TauAnalysisTools::CommonSmearingTool::m_bApplyFading {this, "ApplyFading", true} |
|
protected |
◆ m_bApplyInsituCorrection
| Gaudi::Property<bool> TauAnalysisTools::CommonSmearingTool::m_bApplyInsituCorrection {this, "ApplyInsituCorrection", true} |
|
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_bIsConfigured
| bool TauAnalysisTools::CommonSmearingTool::m_bIsConfigured |
|
protected |
◆ m_bIsData
| bool TauAnalysisTools::CommonSmearingTool::m_bIsData |
|
protected |
◆ m_bMVATESQualityCheck
| Gaudi::Property<bool> TauAnalysisTools::CommonSmearingTool::m_bMVATESQualityCheck {this, "MVATESQualityCheck", true} |
|
protected |
◆ m_bSkipTruthMatchCheck
| Gaudi::Property<bool> TauAnalysisTools::CommonSmearingTool::m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false} |
|
protected |
◆ m_detStore
◆ m_eCheckTruth
◆ m_evtStore
◆ m_fX
◆ m_fY
◆ m_inputMetaStore
◆ m_mSF
| std::map<std::string, TH1*> TauAnalysisTools::CommonSmearingTool::m_mSF |
|
protected |
◆ m_mSystematics
| std::map<std::string, int> TauAnalysisTools::CommonSmearingTool::m_mSystematics |
|
protected |
◆ m_mSystematicSets
| std::unordered_map< CP::SystematicSet, std::string > TauAnalysisTools::CommonSmearingTool::m_mSystematicSets |
|
protected |
◆ m_mSystematicsHistNames
| std::map<std::string, std::string> TauAnalysisTools::CommonSmearingTool::m_mSystematicsHistNames |
|
protected |
◆ m_outputMetaStore
◆ m_sAffectingSystematics
◆ m_sInputFilePath
| Gaudi::Property<std::string> TauAnalysisTools::CommonSmearingTool::m_sInputFilePath {this, "InputFilePath", ""} |
|
protected |
◆ m_sRecommendedSystematics
◆ m_sSystematicSet
◆ m_tTauCombinedTES
◆ m_useIncidents
| bool asg::AsgMetadataTool::m_useIncidents |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool getTESCompatibility(const xAOD::TauJet &tau) const
Check if MVA TES and CaloTES are compatible, invoked by TauSmearing tool.
virtual double eta() const
The pseudorapidity ( ) of the particle.
bool empty() const
returns: whether the set is empty
virtual double m() const
The invariant mass of the particle.
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
Class to wrap a set of SystematicVariations.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
@ IS_SIMULATION
true: simulation, false: data
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
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.
virtual double phi() const
The azimuthal angle ( ) of the particle.
@ Error
Some error happened during the object correction.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
const_iterator end() const
description: const iterator to the end of the set
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)
TauJet_v3 TauJet
Definition of the current "tau version".
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
void makePrivateStore()
Create a new (empty) private store for this object.
Class describing the basic event information.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
iterator find(const SystematicVariation &sys) const
description: find an element in the set
@ Ok
The correction was done successfully.
#define ATH_MSG_WARNING(x)
Return value from object correction CP tools.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
double ptFinalCalib() const
bool eventType(EventType type) const
Check for one particular bitmask value.