|
ATLAS Offline Software
|
#include <CorrelationMatrix.h>
Definition at line 26 of file CorrelationMatrix.h.
◆ CorrelationMatrix() [1/2]
jet::CorrelationMatrix::CorrelationMatrix |
( |
const TString & |
name, |
|
|
const int |
numBins, |
|
|
const double |
minVal, |
|
|
const double |
maxVal, |
|
|
const double |
fixedVal1, |
|
|
const double |
fixedVal2 |
|
) |
| |
◆ ~CorrelationMatrix()
jet::CorrelationMatrix::~CorrelationMatrix |
( |
| ) |
|
|
virtual |
◆ CorrelationMatrix() [2/2]
jet::CorrelationMatrix::CorrelationMatrix |
( |
const std::string & |
name = "" | ) |
|
|
private |
◆ buildMatrix()
TH2D * jet::CorrelationMatrix::buildMatrix |
( |
const std::vector< double > & |
bins | ) |
const |
|
private |
◆ checkInitialization()
Definition at line 197 of file CorrelationMatrix.cxx.
203 return StatusCode::FAILURE;
207 bool scalesFourVec =
false;
212 scalesFourVec =
true;
217 ATH_MSG_ERROR(
"No components scale the four-vector for the CorrelationMatrix: " <<
m_name.Data());
218 return StatusCode::FAILURE;
221 return StatusCode::SUCCESS;
◆ clearStore()
StatusCode jet::CorrelationMatrix::clearStore |
( |
| ) |
|
|
private |
◆ createStore()
StatusCode jet::CorrelationMatrix::createStore |
( |
| ) |
|
|
private |
◆ getCorrelation()
◆ getCovariance()
◆ getMatrix()
virtual const TH2D* jet::CorrelationMatrix::getMatrix |
( |
| ) |
const |
|
inlinevirtual |
◆ getName()
virtual TString jet::CorrelationMatrix::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ initializeForEta()
Definition at line 130 of file CorrelationMatrix.cxx.
134 return StatusCode::FAILURE;
140 const double sqrtS = uncTool.
getSqrtS();
141 const double kinLimit1 = sqrtS > 0 ? acosh((sqrtS/2.) /
m_fixedVal1) : 1e99;
142 const double kinLimit2 = sqrtS > 0 ? acosh((sqrtS/2.) /
m_fixedVal2) : 1e99;
149 return StatusCode::FAILURE;
153 return StatusCode::FAILURE;
160 const double valX =
m_corrMat->GetXaxis()->GetBinCenter(
binX);
165 const double valY =
m_corrMat->GetYaxis()->GetBinCenter(
binY);
168 if (valX > kinLimit1 || valY > kinLimit2) {
184 return StatusCode::FAILURE;
187 return StatusCode::SUCCESS;
◆ initializeForPt()
Definition at line 64 of file CorrelationMatrix.cxx.
68 return StatusCode::FAILURE;
74 const double sqrtS = uncTool.
getSqrtS();
75 const double kinLimit1 = sqrtS > 0 ? (sqrtS/2.) / cosh(
m_fixedVal1) : 1e99;
76 const double kinLimit2 = sqrtS > 0 ? (sqrtS/2.) / cosh(
m_fixedVal2) : 1e99;
78 std::cout <<
"Initializing for Pt with fixedVal1, fixedVal2 " <<
m_fixedVal1 <<
" " <<
m_fixedVal2 << std::endl;
79 std::cout <<
"Corresponding to kinematic limits " << kinLimit1 <<
" " << kinLimit2 << std::endl;
87 return StatusCode::FAILURE;
91 return StatusCode::FAILURE;
98 const double valX =
m_corrMat->GetXaxis()->GetBinCenter(
binX);
103 const double valY =
m_corrMat->GetYaxis()->GetBinCenter(
binY);
106 if (valX > kinLimit1 || valY > kinLimit2 ) {
124 return StatusCode::FAILURE;
127 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
◆ setDefaultProperties()
Definition at line 262 of file CorrelationMatrix.cxx.
283 if (
config.Contains(
"_2011/"))
289 else if (
config.Contains(
"_2012/") ||
config.Contains(
"_2015/Prerec"))
292 sigmaMu = 5.593*1.11;
295 else if (
config.Contains(
"_2015"))
301 else if (
config.Contains(
"_2016"))
313 return StatusCode::FAILURE;
319 return StatusCode::SUCCESS;
◆ 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_corrMat
TH2D* jet::CorrelationMatrix::m_corrMat |
|
private |
◆ m_eInfo
◆ m_eInfos
◆ m_fixedVal1
const double jet::CorrelationMatrix::m_fixedVal1 |
|
private |
◆ m_fixedVal2
const double jet::CorrelationMatrix::m_fixedVal2 |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isInit
bool jet::CorrelationMatrix::m_isInit |
|
private |
◆ m_jet1
◆ m_jet2
◆ m_jets
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_maxVal
const double jet::CorrelationMatrix::m_maxVal |
|
private |
◆ m_minVal
const double jet::CorrelationMatrix::m_minVal |
|
private |
◆ 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 TString jet::CorrelationMatrix::m_name |
|
private |
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_numBins
const int jet::CorrelationMatrix::m_numBins |
|
private |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
std::vector< double > getUniformBins(const size_t numBins, const double minVal, const double maxVal)
StatusCode checkInitialization(const JetUncertaintiesTool &uncTool) const
Helper class to provide type-safe access to aux data.
std::vector< double > getLogBins(const size_t numBins, const double minVal, const double maxVal)
EventInfoContainer_v1 EventInfoContainer
Define the latest version of the container.
double getCovariance(const JetUncertaintiesTool &uncTool, const xAOD::Jet *jet1, const xAOD::Jet *jet2) const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
void setJetP4(const JetFourMom_t &p4)
#define JESUNC_ERROR_CODE
Temporary container used until we have I/O for AuxStoreInternal.
#define JESUNC_SAFE_DELETE(T)
double getCorrelation(const JetUncertaintiesTool &uncTool) const
xAOD::EventInfoContainer * m_eInfos
void clear()
Erase all the elements in the collection.
Auxiliary information about the pileup events.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Class mimicking the AthMessaging class from the offline software.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Class describing the basic event information.
#define JESUNC_NO_DEFAULT_CONSTRUCTOR
#define ATH_MSG_WARNING(x)
xAOD::JetContainer * m_jets
std::string m_nm
Message source name.
StatusCode setDefaultProperties(const JetUncertaintiesTool &uncTool)
JetContainer_v1 JetContainer
Definition of the current "jet container version".
const T * at(size_type n) const
Access an element, as an rvalue.
TH2D * buildMatrix(const std::vector< double > &bins) const
xAOD::EventInfo * m_eInfo