#include <UncertaintySet.h>
|
| UncertaintySet (const std::string &name="") |
|
virtual | ~UncertaintySet () |
|
virtual StatusCode | initialize (const CP::SystematicSet &systConfig, const std::vector< UncertaintyGroup * > &groups) |
|
virtual std::string | getName () const |
|
virtual bool | getValidity (const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const |
|
virtual double | getUncertainty (const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const |
|
virtual bool | getValidUncertainty (double &unc, const xAOD::Jet &jet, const xAOD::EventInfo &eInfo, const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const |
|
virtual std::vector< CompScaleVar::TypeEnum > | getScaleVars () const |
|
virtual std::vector< std::pair< CompScaleVar::TypeEnum, bool > > | getValiditySet (const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const |
|
virtual std::vector< std::pair< CompScaleVar::TypeEnum, double > > | getUncertaintySet (const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const |
|
virtual std::vector< std::pair< CompScaleVar::TypeEnum, bool > > | getValidUncertaintySet (std::vector< std::pair< CompScaleVar::TypeEnum, double > > &unc, const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const |
|
JetTopology::TypeEnum | getTopology (const CompScaleVar::TypeEnum scaleVar=CompScaleVar::UNKNOWN) const |
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
Definition at line 24 of file UncertaintySet.h.
◆ UncertaintySet()
jet::UncertaintySet::UncertaintySet |
( |
const std::string & |
name = "" | ) |
|
◆ ~UncertaintySet()
jet::UncertaintySet::~UncertaintySet |
( |
| ) |
|
|
virtualdefault |
◆ getName()
std::string jet::UncertaintySet::getName |
( |
| ) |
const |
|
virtual |
◆ getScaleVars()
Definition at line 190 of file UncertaintySet.cxx.
193 std::set<CompScaleVar::TypeEnum> scaleVarSet;
194 for (
size_t iGroup = 0; iGroup <
m_groups.size(); ++iGroup)
196 std::set<CompScaleVar::TypeEnum> localSet =
m_groups.at(iGroup)->getScaleVars();
197 scaleVarSet.insert(localSet.begin(),localSet.end());
201 std::vector<CompScaleVar::TypeEnum> scaleVars;
202 std::set<CompScaleVar::TypeEnum>::const_iterator iter;
203 for (iter = scaleVarSet.begin(); iter != scaleVarSet.end(); ++iter)
204 scaleVars.push_back(*(iter));
◆ getSingleVar()
Definition at line 83 of file UncertaintySet.cxx.
85 std::set<CompScaleVar::TypeEnum> vars =
m_groups.at(0)->getScaleVars();
90 for (
size_t iGroup = 1; iGroup <
m_groups.size(); ++iGroup)
92 std::set<CompScaleVar::TypeEnum> vars2 =
m_groups.at(iGroup)->getScaleVars();
93 if (vars2.size() != 1 || singleVar != *(vars2.begin()))
◆ getTopology()
◆ getUncertainty()
◆ getUncertaintySet()
Definition at line 227 of file UncertaintySet.cxx.
229 std::vector< std::pair<CompScaleVar::TypeEnum,double> > unc;
236 const std::vector<CompScaleVar::TypeEnum> scaleVars =
getScaleVars();
239 for (
size_t iVar = 0; iVar < scaleVars.size(); ++iVar)
240 unc.emplace_back(scaleVars.at(iVar),
getUncertainty(
jet,eInfo,scaleVars.at(iVar)));
◆ getValidity()
Definition at line 102 of file UncertaintySet.cxx.
112 ATH_MSG_ERROR(
"Asked for validity of a multi-scale variable set without specifying any scale variable: " <<
m_name);
117 for (
size_t iGroup = 0; iGroup <
m_groups.size(); ++iGroup)
118 if (!
m_groups.at(iGroup)->getValidity(
jet,eInfo,scaleVariable))
◆ getValiditySet()
Definition at line 208 of file UncertaintySet.cxx.
210 std::vector< std::pair<CompScaleVar::TypeEnum,bool> > validity;
217 const std::vector<CompScaleVar::TypeEnum> scaleVars =
getScaleVars();
220 for (
size_t iVar = 0; iVar < scaleVars.size(); ++iVar)
221 validity.emplace_back(scaleVars.at(iVar),
getValidity(
jet,eInfo,scaleVars.at(iVar)));
◆ getValidUncertainty()
Definition at line 152 of file UncertaintySet.cxx.
168 ATH_MSG_ERROR(
"Asked for valid uncertainty of a multi-scale-variable set without specifying any scale variable: " <<
m_name);
174 for (
size_t iGroup = 0; iGroup <
m_groups.size(); ++iGroup)
176 if (!
m_groups.at(iGroup)->getValidity(
jet,eInfo,scaleVariable))
◆ getValidUncertaintySet()
Definition at line 246 of file UncertaintySet.cxx.
248 std::vector< std::pair<CompScaleVar::TypeEnum,bool> > validity;
249 std::vector< std::pair<CompScaleVar::TypeEnum,double> > localUnc;
259 const std::vector<CompScaleVar::TypeEnum> scaleVars =
getScaleVars();
262 for (
size_t iVar = 0; iVar < scaleVars.size(); ++iVar)
265 validity.emplace_back(scaleVars.at(iVar),
getValidUncertainty(localUncValue,
jet,eInfo,scaleVars.at(iVar)));
266 localUnc.emplace_back(scaleVars.at(iVar),localUncValue);
◆ initialize()
Definition at line 31 of file UncertaintySet.cxx.
37 return StatusCode::FAILURE;
41 std::set<UncertaintyGroup*> compSet;
43 for (
size_t iGroup = 0; iGroup <
groups.size(); ++iGroup)
44 if (
groups.at(iGroup)->getName().CompareTo(iter->basename().c_str()) == 0)
47 if (compSet.count(
groups.at(iGroup)))
49 ATH_MSG_ERROR(
"Multiple independent shifts requested for a single group: " <<
groups.at(iGroup)->getName().Data());
50 return StatusCode::FAILURE;
52 compSet.insert(
groups.at(iGroup));
63 ATH_MSG_ERROR(Form(
"Input SystematicSet is %zu elements, but only found %zu UncertaintyGroups",systConfig.
size(),
m_groups.size()));
64 return StatusCode::FAILURE;
69 return StatusCode::SUCCESS;
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
50 #ifndef XAOD_STANDALONE
52 #else // not XAOD_STANDALONE
54 #endif // not XAOD_STANDALONE
◆ msg() [2/2]
MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
58 #ifndef XAOD_STANDALONE
60 #else // not XAOD_STANDALONE
63 #endif // not XAOD_STANDALONE
◆ msgLvl()
bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true
If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
42 #ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44 #else // not XAOD_STANDALONE
45 return m_msg.msgLevel( lvl );
46 #endif // not XAOD_STANDALONE
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_groups
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isInit
bool jet::UncertaintySet::m_isInit |
|
private |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_name
const std::string jet::UncertaintySet::m_name |
|
private |
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_shiftWeights
std::vector<float> jet::UncertaintySet::m_shiftWeights |
|
private |
The documentation for this class was generated from the following files: