![]() |
ATLAS Offline Software
|
Basic base class for any common functionality between RatesTrigger and RatesGroup This means that everyone has access to the same histograms. More...
#include <RatesHistoBase.h>
Public Member Functions | |
| RatesHistoBase (const std::string &name, IMessageSvc *msgSvc, const bool doHistograms=true) | |
| virtual | ~RatesHistoBase () |
| RatesHistoBase (const RatesHistoBase &)=delete | |
| RatesHistoBase & | operator= (const RatesHistoBase &)=delete |
| StatusCode | giveMuHist (const ServiceHandle< ITHistSvc > &svc, const std::string &name) |
| StatusCode | giveTrainHist (const ServiceHandle< ITHistSvc > &svc, const std::string &name) |
| StatusCode | giveDataHist (const ServiceHandle< ITHistSvc > &svc, const std::string &name) |
| void | clearTrainHist () |
| In some jobs we don't want to do the rates vs. | |
| TH1 * | getDataHist () |
| bool | doHistograms () const |
| If histogramming was enabled in this rates object. | |
| const std::string & | getExtrapolationFactorString (ExtrapStrat_t strat) const |
| double | getExtrapolationFactor (const WeightingValuesSummary_t &weights, const ExtrapStrat_t strat) const |
| void | setDataName (const std::string &newName) |
| void | setRateVsMuName (const std::string &newName) |
| void | setRateVsTrainName (const std::string &newName) |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| static bool | isZero (double v) |
| static bool | isNotPositive (double v) |
Protected Attributes | |
| std::string | m_name |
| My name. | |
| bool | m_doHistograms |
| If histogramming is switched on. | |
| std::unique_ptr< TH1 > | m_rateVsMu |
| Histogram of rate as a fn. | |
| std::unique_ptr< TH1 > | m_rateVsTrain |
| Histogram of rate as a fn. | |
| std::unique_ptr< TH1 > | m_data |
| Histogram of raw rates quantites, for when we need to normalise offline (e.g. | |
| TH1 * | m_rateVsMuCachedPtr {} |
| Cached, non-owning pointer. | |
| TH1 * | m_rateVsTrainCachedPtr {} |
| Cached, non-owning pointer. | |
| TH1 * | m_dataCachedPtr {} |
| Cached, non-owning pointer. | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels). | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging). | |
Basic base class for any common functionality between RatesTrigger and RatesGroup This means that everyone has access to the same histograms.
Definition at line 85 of file RatesHistoBase.h.
| RatesHistoBase::RatesHistoBase | ( | const std::string & | name, |
| IMessageSvc * | msgSvc, | ||
| const bool | doHistograms = true ) |
Definition at line 10 of file RatesHistoBase.cxx.
|
virtual |
Definition at line 43 of file RatesHistoBase.cxx.
|
delete |
| void RatesHistoBase::clearTrainHist | ( | ) |
In some jobs we don't want to do the rates vs.
position in train
Definition at line 76 of file RatesHistoBase.cxx.
|
inline |
If histogramming was enabled in this rates object.
Definition at line 100 of file RatesHistoBase.h.
| TH1 * RatesHistoBase::getDataHist | ( | ) |
Definition at line 82 of file RatesHistoBase.cxx.
| double RatesHistoBase::getExtrapolationFactor | ( | const WeightingValuesSummary_t & | weights, |
| const ExtrapStrat_t | strat ) const |
Definition at line 96 of file RatesHistoBase.cxx.
| const std::string & RatesHistoBase::getExtrapolationFactorString | ( | ExtrapStrat_t | strat | ) | const |
Definition at line 87 of file RatesHistoBase.cxx.
| StatusCode RatesHistoBase::giveDataHist | ( | const ServiceHandle< ITHistSvc > & | svc, |
| const std::string & | name ) |
Definition at line 66 of file RatesHistoBase.cxx.
| StatusCode RatesHistoBase::giveMuHist | ( | const ServiceHandle< ITHistSvc > & | svc, |
| const std::string & | name ) |
Definition at line 46 of file RatesHistoBase.cxx.
| StatusCode RatesHistoBase::giveTrainHist | ( | const ServiceHandle< ITHistSvc > & | svc, |
| const std::string & | name ) |
Definition at line 56 of file RatesHistoBase.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlinestatic |
Definition at line 105 of file RatesHistoBase.h.
|
inlinestatic |
Definition at line 104 of file RatesHistoBase.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 167 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 182 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
delete |
| void RatesHistoBase::setDataName | ( | const std::string & | newName | ) |
Definition at line 92 of file RatesHistoBase.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.
| void RatesHistoBase::setRateVsMuName | ( | const std::string & | newName | ) |
Definition at line 93 of file RatesHistoBase.cxx.
| void RatesHistoBase::setRateVsTrainName | ( | const std::string & | newName | ) |
Definition at line 94 of file RatesHistoBase.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
|
protected |
Histogram of raw rates quantites, for when we need to normalise offline (e.g.
grid processing)
Definition at line 116 of file RatesHistoBase.h.
|
protected |
|
protected |
If histogramming is switched on.
Definition at line 113 of file RatesHistoBase.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels).
Definition at line 132 of file AthMessaging.h.
|
protected |
My name.
Definition at line 112 of file RatesHistoBase.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
protected |
|
protected |
|
protected |
Histogram of rate as a fn.
of position in bunch train
Definition at line 115 of file RatesHistoBase.h.
|
protected |