#include <UncertaintyComponent.h>
Inherits asg::AsgMessaging.
Inherited by jet::ClosebyUncertaintyComponent, jet::CombinedMassUncertaintyComponent, jet::ELogMassEtaUncertaintyComponent, jet::ELogMassUncertaintyComponent, jet::FlavourUncertaintyComponent, jet::LargeRTopologyUncertaintyComponent, jet::PerJetFlavourUncertaintyComponent, jet::PileupUncertaintyComponent, jet::PtAbsMassEtaUncertaintyComponent, jet::PtAbsMassUncertaintyComponent, jet::PtEtaUncertaintyComponent, jet::PtLogPtMassForTagSFUncertaintyComponent, jet::PtMassEtaUncertaintyComponent, jet::PtMassUncertaintyComponent, jet::PtUncertaintyComponent, and jet::PunchthroughUncertaintyComponent.
|
std::string | m_nm |
| Message source name. More...
|
|
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More...
|
|
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More...
|
|
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More...
|
|
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More...
|
|
Definition at line 24 of file UncertaintyComponent.h.
◆ UncertaintyComponent() [1/3]
Definition at line 47 of file UncertaintyComponent.cxx.
50 ,
m_uncHistName(!component.uncNames.empty()?component.uncNames.at(0):
"NONE")
62 ATH_MSG_FATAL(
"Cannot create an UncertaintyComponent with an empty uncHistName");
64 ATH_MSG_FATAL(
"Cannot create an UncertaintyComponent scaling an UNKNOWN variable");
65 if (numHist != component.uncNames.size())
66 ATH_MSG_FATAL(
"Expected " << numHist <<
" uncertainty histograms, but received " << component.uncNames.size() <<
" : " <<
m_uncHistName.Data());
◆ UncertaintyComponent() [2/3]
◆ ~UncertaintyComponent()
jet::UncertaintyComponent::~UncertaintyComponent |
( |
| ) |
|
|
virtual |
◆ UncertaintyComponent() [3/3]
jet::UncertaintyComponent::UncertaintyComponent |
( |
const std::string & |
name = "" | ) |
|
|
private |
◆ clone()
Implemented in jet::PileupUncertaintyComponent, jet::FlavourUncertaintyComponent, jet::CombinedMassUncertaintyComponent, jet::LargeRTopologyUncertaintyComponent, jet::PerJetFlavourUncertaintyComponent, jet::PtLogPtMassForTagSFUncertaintyComponent, jet::ClosebyUncertaintyComponent, jet::ELogMassEtaUncertaintyComponent, jet::ELogMassUncertaintyComponent, jet::PtAbsMassEtaUncertaintyComponent, jet::PtAbsMassUncertaintyComponent, jet::PtEtaUncertaintyComponent, jet::PtMassEtaUncertaintyComponent, jet::PtMassUncertaintyComponent, jet::PtUncertaintyComponent, and jet::PunchthroughUncertaintyComponent.
◆ getAbsMass()
◆ getMassOverE()
◆ getMassOverPt()
◆ getName()
virtual TString jet::UncertaintyComponent::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getScaleVar()
◆ getSplitFactor()
double jet::UncertaintyComponent::getSplitFactor |
( |
const xAOD::Jet & |
jet | ) |
const |
|
protectedvirtual |
Definition at line 196 of file UncertaintyComponent.cxx.
203 double splitFactor = 1;
213 const double minPt =
histo->GetXaxis()->GetBinLowEdge(1);
214 const double maxPt =
histo->GetXaxis()->GetBinLowEdge(
histo->GetNbinsX()+1);
217 const double slope = 1./(
log(maxPt)-
log(minPt));
218 const double intercept = -slope*
log(minPt);
220 splitFactor = slope*
log(valPt <= minPt ? minPt+1.e-3 : valPt >= maxPt ? maxPt-1.
e-3 : valPt)+intercept;
228 const double minEta = 0;
229 const double maxEta = 4.5;
232 const double slope = 1./(
maxEta - minEta);
233 const double intercept = -slope*minEta;
248 const double minPt =
histo->GetXaxis()->GetBinLowEdge(1);
249 const double maxPt =
histo->GetXaxis()->GetBinLowEdge(
histo->GetNbinsX()+1);
252 const double minEta = 0;
253 const double maxEta = 4.5;
256 const double slopePt = 1./(
log(maxPt)-
log(minPt));
257 const double slopeEta = 1./(
maxEta-minEta);
259 const double fixedPt = valPt <= minPt ? minPt+1.e-3 : valPt >= maxPt ? maxPt - 1.e-3 : valPt;
262 splitFactor = (slopePt*(
log(fixedPt)-
log(minPt)) + slopeEta*(fixedEta-minEta))/2.;
269 const double minPt =
histo->GetXaxis()->GetBinLowEdge(1);
270 const double maxPt =
histo->GetXaxis()->GetBinLowEdge(
histo->GetNbinsX()+1);
273 const double minEta = 0;
274 const double maxEta = 4.5;
277 const double slopePt = 1./(
log(maxPt)-
log(minPt));
278 const double slopeEta = 1./(
maxEta-minEta);
280 const double fixedPt = valPt <= minPt ? minPt+1.e-3 : valPt >= maxPt ? maxPt - 1.e-3 : valPt;
283 splitFactor = (slopePt*(
log(fixedPt)-
log(minPt)) + slopeEta*(
maxEta-fixedEta))/2.;
289 splitFactor = sqrt(1-splitFactor*splitFactor);
◆ getTopology()
◆ getUncertainty()
◆ getUncertaintyImpl()
Implemented in jet::CombinedMassUncertaintyComponent, jet::PileupUncertaintyComponent, jet::FlavourUncertaintyComponent, jet::PerJetFlavourUncertaintyComponent, jet::LargeRTopologyUncertaintyComponent, jet::PtLogPtMassForTagSFUncertaintyComponent, jet::ClosebyUncertaintyComponent, jet::ELogMassEtaUncertaintyComponent, jet::ELogMassUncertaintyComponent, jet::PtAbsMassEtaUncertaintyComponent, jet::PtAbsMassUncertaintyComponent, jet::PtEtaUncertaintyComponent, jet::PtMassEtaUncertaintyComponent, jet::PtMassUncertaintyComponent, jet::PtUncertaintyComponent, and jet::PunchthroughUncertaintyComponent.
◆ getValidBool()
bool jet::UncertaintyComponent::getValidBool |
( |
const double |
validity | ) |
const |
|
protectedvirtual |
Definition at line 301 of file UncertaintyComponent.cxx.
303 if (validity < 1.e-5 && validity > -1.
e-5)
return false;
304 if (validity < 1+1.e-5 && validity > 1-1.
e-5)
return true;
◆ getValidity()
◆ getValidityImpl()
Implemented in jet::CombinedMassUncertaintyComponent, jet::PileupUncertaintyComponent, jet::FlavourUncertaintyComponent, jet::PerJetFlavourUncertaintyComponent, jet::LargeRTopologyUncertaintyComponent, jet::PtLogPtMassForTagSFUncertaintyComponent, jet::ClosebyUncertaintyComponent, jet::ELogMassEtaUncertaintyComponent, jet::ELogMassUncertaintyComponent, jet::PtAbsMassEtaUncertaintyComponent, jet::PtAbsMassUncertaintyComponent, jet::PtEtaUncertaintyComponent, jet::PtMassEtaUncertaintyComponent, jet::PtMassUncertaintyComponent, jet::PtUncertaintyComponent, and jet::PunchthroughUncertaintyComponent.
◆ getValidName()
virtual TString jet::UncertaintyComponent::getValidName |
( |
| ) |
const |
|
inlinevirtual |
◆ getValidUncertainty()
◆ initialize()
StatusCode jet::UncertaintyComponent::initialize |
( |
TFile * |
histFile | ) |
|
|
virtual |
◆ 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.
◆ isAlwaysZero()
bool jet::UncertaintyComponent::isAlwaysZero |
( |
| ) |
const |
|
virtual |
◆ 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_energyScale
const float jet::UncertaintyComponent::m_energyScale |
|
protected |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_interpolate
◆ m_isInit
bool jet::UncertaintyComponent::m_isInit |
|
protected |
◆ 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_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_numExpectedHist
int jet::UncertaintyComponent::m_numExpectedHist |
|
protected |
◆ m_scaleVar
◆ m_splitNumber
const int jet::UncertaintyComponent::m_splitNumber |
|
protected |
◆ m_topology
◆ m_uncHist
◆ m_uncHistName
const TString jet::UncertaintyComponent::m_uncHistName |
|
protected |
◆ m_validHist
◆ m_validHistName
const TString jet::UncertaintyComponent::m_validHistName |
|
protected |
The documentation for this class was generated from the following files: