#include <DipsCondition.h>
|
| DipsCondition (double workingPoint, const float &cfrac, const std::string &decName_pb, const std::string &decName_pc, const std::string &decName_pu, const std::string &decName_isValid="") |
|
float | getDipsDecValue (const pHypoJet &ip, const std::unique_ptr< ITrigJetHypoInfoCollector > &collector, const std::string &decName) const |
|
float | evaluateDips (const float &dips_pb, const float &dips_pc, const float &dips_pu) const |
|
bool | isSatisfied (const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override |
|
virtual unsigned int | capacity () const override |
|
std::string | toString () const override |
|
Definition at line 26 of file DipsCondition.h.
◆ DipsCondition()
DipsCondition::DipsCondition |
( |
double |
workingPoint, |
|
|
const float & |
cfrac, |
|
|
const std::string & |
decName_pb, |
|
|
const std::string & |
decName_pc, |
|
|
const std::string & |
decName_pu, |
|
|
const std::string & |
decName_isValid = "" |
|
) |
| |
◆ capacity()
virtual unsigned int DipsCondition::capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ evaluateDips()
float DipsCondition::evaluateDips |
( |
const float & |
dips_pb, |
|
|
const float & |
dips_pc, |
|
|
const float & |
dips_pu |
|
) |
| const |
◆ getDipsDecValue()
Definition at line 31 of file DipsCondition.cxx.
36 float momentValue = -1;
37 if (!(
ip->getAttribute(decName, momentValue)))
41 auto j_addr =
static_cast<const void *
>(
ip.get());
43 std::stringstream ss0;
44 ss0 <<
"DipsCondition: "
45 <<
" unable to retrieve " << decName <<
'\n';
46 std::stringstream ss1;
47 ss1 <<
" jet : (" << j_addr <<
")";
48 collector->
collect(ss0.str(), ss1.str());
51 throw std::runtime_error(
"Impossible to retrieve decorator \'" + decName +
"\' for jet hypo");
◆ isSatisfied() [1/2]
◆ isSatisfied() [2/2]
Definition at line 63 of file DipsCondition.cxx.
72 if (!
jet)
throw std::runtime_error(
"Fast dips has to run on xAOD::Jet");
74 if (
valid == 0)
return false;
81 float dips_output =
evaluateDips(dips_pb, dips_pc, dips_pu);
87 const void *
address =
static_cast<const void *
>(
this);
89 std::stringstream ss0;
90 ss0 <<
"DipsCondition: (" <<
address
92 <<
" pass: " << std::boolalpha << pass <<
'\n';
94 auto j_addr =
static_cast<const void *
>(
ip.get());
95 std::stringstream ss1;
96 ss1 <<
" jet : (" << j_addr <<
") "
100 collector->
collect(ss0.str(), ss1.str());
◆ toString()
std::string DipsCondition::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_cfrac
float DipsCondition::m_cfrac |
|
private |
◆ m_decName_isValid
std::string DipsCondition::m_decName_isValid |
|
private |
◆ m_decName_pb
std::string DipsCondition::m_decName_pb |
|
private |
◆ m_decName_pc
std::string DipsCondition::m_decName_pc |
|
private |
◆ m_decName_pu
std::string DipsCondition::m_decName_pu |
|
private |
◆ m_workingPoint
double DipsCondition::m_workingPoint |
|
private |
◆ s_capacity
const unsigned int DipsCondition::s_capacity {1} |
|
staticprivate |
The documentation for this class was generated from the following files: