|
ATLAS Offline Software
|
#include <LargeRTopologyUncertaintyComponent.h>
◆ LargeRTopologyUncertaintyComponent() [1/3]
jet::LargeRTopologyUncertaintyComponent::LargeRTopologyUncertaintyComponent |
( |
const ComponentHelper & |
component | ) |
|
◆ LargeRTopologyUncertaintyComponent() [2/3]
◆ ~LargeRTopologyUncertaintyComponent()
virtual jet::LargeRTopologyUncertaintyComponent::~LargeRTopologyUncertaintyComponent |
( |
| ) |
|
|
inlinevirtual |
◆ LargeRTopologyUncertaintyComponent() [3/3]
jet::LargeRTopologyUncertaintyComponent::LargeRTopologyUncertaintyComponent |
( |
const std::string & |
name = "" | ) |
|
|
private |
◆ clone()
◆ getAbsMass()
|
protectedvirtualinherited |
◆ getMassOverE()
|
protectedvirtualinherited |
◆ getMassOverPt()
|
protectedvirtualinherited |
◆ getName()
virtual TString jet::UncertaintyComponent::getName |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getScaleVar()
◆ getSplitFactor()
double jet::UncertaintyComponent::getSplitFactor |
( |
const xAOD::Jet & |
jet | ) |
const |
|
protectedvirtualinherited |
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()
◆ getValidBool()
bool jet::UncertaintyComponent::getValidBool |
( |
const double |
validity | ) |
const |
|
protectedvirtualinherited |
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()
◆ getValidName()
virtual TString jet::UncertaintyComponent::getValidName |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getValidUncertainty()
◆ initialize()
StatusCode jet::UncertaintyComponent::initialize |
( |
TFile * |
histFile | ) |
|
|
virtualinherited |
◆ 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 |
|
virtualinherited |
◆ 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_absEta
const bool jet::LargeRTopologyUncertaintyComponent::m_absEta |
|
private |
◆ m_energyScale
const float jet::UncertaintyComponent::m_energyScale {} |
|
protectedinherited |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_interpolate
◆ m_isInit
bool jet::UncertaintyComponent::m_isInit {} |
|
protectedinherited |
◆ 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 {} |
|
protectedinherited |
◆ m_scaleVar
◆ m_splitNumber
const int jet::UncertaintyComponent::m_splitNumber {} |
|
protectedinherited |
◆ m_topology
◆ m_truthLabelName
std::string jet::LargeRTopologyUncertaintyComponent::m_truthLabelName |
|
private |
◆ m_truthLabels
◆ m_uncHist
◆ m_uncHistName
const TString jet::UncertaintyComponent::m_uncHistName |
|
protectedinherited |
◆ m_validHist
◆ m_validHistName
const TString jet::UncertaintyComponent::m_validHistName |
|
protectedinherited |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const =0
const float m_energyScale
virtual double getSplitFactor(const xAOD::Jet &jet) const
const Interpolate::TypeEnum m_interpolate
LargeRTopologyUncertaintyComponent(const ComponentHelper &component)
const TH1 * getHisto() const
const TString m_uncHistName
bool isAbsEta(const TypeEnum type)
Helper class to provide constant type-safe access to aux data.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
virtual bool getValidBool(const double validity) const
double getValue(const double var1) const
virtual StatusCode initialize(TFile *histFile)
#define JESUNC_ERROR_CODE
const TString m_validHistName
TString getJetScaleString(const TypeEnum type)
UncertaintyHistogram * m_validHist
virtual TString getName() const
std::vector< LargeRJetTruthLabel::TypeEnum > m_truthLabels
std::string m_truthLabelName
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const =0
#define JESUNC_NO_DEFAULT_CONSTRUCTOR
virtual TString getValidName() const
const CompScaleVar::TypeEnum m_scaleVar
std::string m_nm
Message source name.
virtual double getUncertainty(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
TypeEnum intToEnum(const int type)
bool absEta(const xAOD::TauJet &tau, double &out)
UncertaintyComponent(const ComponentHelper &component, const size_t numHist=1)
UncertaintyHistogram * m_uncHist
TString enumToString(const TypeEnum type)
virtual bool getValidity(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
const JetTopology::TypeEnum m_topology