13 #include <TLorentzVector.h>
16 const std::string &decName_ptau,
17 const std::string &decName_pu,
18 const std::string &decName_isValid) :
19 m_workingPoint(workingPoint),
20 m_decName_ptau(decName_ptau),
21 m_decName_pu(decName_pu),
22 m_decName_isValid(decName_isValid)
28 const std::unique_ptr<ITrigJetHypoInfoCollector> &collector,
29 const std::string &decName)
const
32 float momentValue = -1;
33 if (!(
ip->getAttribute(decName, momentValue)))
37 auto j_addr =
static_cast<const void *
>(
ip.get());
39 std::stringstream ss0;
40 ss0 <<
"GNTauCondition: "
41 <<
" unable to retrieve " << decName <<
'\n';
42 std::stringstream ss1;
43 ss1 <<
" jet : (" << j_addr <<
")";
44 collector->
collect(ss0.str(), ss1.str());
47 throw std::runtime_error(
"Impossible to retrieve decorator \'" + decName +
"\' for jet hypo");
54 const float &gntau_pu)
const {
59 const std::unique_ptr<ITrigJetHypoInfoCollector> &collector)
const
67 if (!
jet)
throw std::runtime_error(
"Fast gntau has to run on xAOD::Jet");
69 if (
valid == 0)
return false;
81 const void *
address =
static_cast<const void *
>(
this);
83 std::stringstream ss0;
84 ss0 <<
"GNTauCondition: (" <<
address
86 <<
" pass: " << std::boolalpha << pass <<
'\n';
88 auto j_addr =
static_cast<const void *
>(
ip.get());
89 std::stringstream ss1;
90 ss1 <<
" jet : (" << j_addr <<
") "
93 collector->
collect(ss0.str(), ss1.str());
101 const std::unique_ptr<ITrigJetHypoInfoCollector>&
c)
const {
108 std::stringstream
ss;
109 ss <<
"GNTauCondition (" <<
this <<
") "
110 <<
" Cleaning decs: "