ATLAS Offline Software
|
Class to calculate the ratio of new to old energies of CaloClusters after the particle flow charged shower subtraction has been run. More...
#include <PFSubtractionEnergyRatioCalculator.h>
Public Member Functions | |
PFSubtractionEnergyRatioCalculator () | |
void | calculateSubtractedEnergyRatios (const std::vector< std::pair< xAOD::CaloCluster *, bool >> &clusterSubtractionList, std::map< xAOD::CaloCluster *, double > &clusterEnergyMap, std::vector< std::pair< float, float >> &clusterSubtractedEnergyRatios) const |
For each xAOD::CaloCluster in clusterSubtractionList we calculate the ratio of new to old energy after the charged shower subtraction, which is added in clusterSubtractedEnergyRatios. More... | |
void | calculateSubtractedEnergyRatiosForAnnih (const std::vector< std::pair< xAOD::CaloCluster *, bool >> &clusterSubtractionList, std::map< xAOD::CaloCluster *, double > &clusterEnergyMap, std::vector< std::pair< float, float >> &clusterSubtractedEnergyRatios) const |
If we have decided to annihiliate all clusters in clusterSubtractionList we use this function to set all ratios to zero in clusterEnergySubtractionRatios. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
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... | |
Class to calculate the ratio of new to old energies of CaloClusters after the particle flow charged shower subtraction has been run.
Definition at line 19 of file PFSubtractionEnergyRatioCalculator.h.
PFSubtractionEnergyRatioCalculator::PFSubtractionEnergyRatioCalculator | ( | ) |
Definition at line 8 of file PFSubtractionEnergyRatioCalculator.cxx.
void PFSubtractionEnergyRatioCalculator::calculateSubtractedEnergyRatios | ( | const std::vector< std::pair< xAOD::CaloCluster *, bool >> & | clusterSubtractionList, |
std::map< xAOD::CaloCluster *, double > & | clusterEnergyMap, | ||
std::vector< std::pair< float, float >> & | clusterSubtractedEnergyRatios | ||
) | const |
For each xAOD::CaloCluster in clusterSubtractionList we calculate the ratio of new to old energy after the charged shower subtraction, which is added in clusterSubtractedEnergyRatios.
clusterEnergyMap contains the cluster energy prior to the charged shower energy subtraction
Definition at line 13 of file PFSubtractionEnergyRatioCalculator.cxx.
void PFSubtractionEnergyRatioCalculator::calculateSubtractedEnergyRatiosForAnnih | ( | const std::vector< std::pair< xAOD::CaloCluster *, bool >> & | clusterSubtractionList, |
std::map< xAOD::CaloCluster *, double > & | clusterEnergyMap, | ||
std::vector< std::pair< float, float >> & | clusterSubtractedEnergyRatios | ||
) | const |
If we have decided to annihiliate all clusters in clusterSubtractionList we use this function to set all ratios to zero in clusterEnergySubtractionRatios.
If the old energy, in clusterEnergyMap, was zero we instead set the ratio to NAN to denote that no energy was removed from that xAOD::CaloCluster
Definition at line 49 of file PFSubtractionEnergyRatioCalculator.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inherited |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
|
inherited |
The standard message stream.
lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
|
inherited |
Test the output level of the object.
lvl | The message level to test against |
true
If messages at level "lvl" will be printed Definition at line 41 of file AsgMessaging.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.