Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 TauEfficiencyTriggerTool::TauEfficiencyTriggerTool(
const std::string& sName)
35 m_mSF = std::make_unique< tSFMAP >();
36 std::unique_ptr< TFile > fSF( TFile::Open( sInputFilePath.c_str(),
"READ" ) );
39 ATH_MSG_FATAL(
"Could not open file " << sInputFilePath.c_str());
40 return StatusCode::FAILURE;
46 std::vector<std::string> vInputFilePath;
53 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
60 double& dEfficiencyScaleFactor,
unsigned int ,
unsigned int )
65 dEfficiencyScaleFactor = 1.;
72 dEfficiencyScaleFactor = 1.;
83 dEfficiencyScaleFactor);
86 return tmpCorrectionCode;
93 double dTotalSystematic2 = 0.;
94 double dDirection = 0.;
101 std::string sDirection = (syst.parameter() > 0) ?
"_up" :
"_down";
104 double dUncertaintySyst = 0.;
105 tmpCorrectionCode =
getValue(
it->second+sDirection+
"_all_"+
m_sWP+sProng,
111 return tmpCorrectionCode;
114 dDirection = syst.parameter();
117 dUncertaintySyst *= dDirection;
120 dTotalSystematic2 += dUncertaintySyst * dUncertaintySyst;
124 dDirection = (dDirection > 0.) ? 1. : -1.;
127 dEfficiencyScaleFactor *= 1. + dDirection * std::sqrt(dTotalSystematic2);
140 return StatusCode::SUCCESS;
146 for (
auto sSyst : sSystematicSet)
152 ATH_MSG_VERBOSE(
"unsupported systematic variation: "<< sSyst.basename()<<
"; skipping this one");
166 ATH_MSG_ERROR(
"unsupported set of systematic variations, you should not combine \"TAUS_{TRUE|FAKE}_EFF_*_TOTAL\" with other systematic variations!");
168 return StatusCode::FAILURE;
172 sSystematicSetAvailable.
insert(sSyst);
178 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool empty() const
returns: whether the set is empty
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
Class to wrap a set of SystematicVariations.
std::string name() const
returns: the systematics joined into a single string.
#define ATH_MSG_VERBOSE(x)
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
const_iterator end() const
description: const iterator to the end of the set
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
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.
Return value from object correction CP tools.