ATLAS Offline Software
|
Helper class for Start Of Run (SOR) record. More...
#include <TrigSORFromPtreeHelper.h>
Public Types | |
typedef CondAttrListCollection | SOR |
Public Member Functions | |
TrigSORFromPtreeHelper (IMessageSvc *msgSvc, const ServiceHandle< StoreGateSvc > &detStore, const std::string &sorpath, const boost::property_tree::ptree &rparams) | |
Create the SOR helper @params msgSvc Pointer to MessageSvc @params detStore Handle to DetectorStore @params sorpath COOL folder path of SOR record (e.g. More... | |
void | setRunNumber (unsigned int run) |
Overwrite run number from RunParams @params run New run number. More... | |
void | setSORtime_ns (unsigned long long sorTime_ns) |
Overwrite SOR time from RunParams @params sorTime_ns New start of run time in nanoseconds since epoch. More... | |
StatusCode | fillSOR (const EventContext &ctx) const |
Fill SOR record in Detector Store, reusing if present or creating new one otherwise/ @params ctx EventContext to be used for IOVDbSvc. More... | |
EventIDBase | eventID () const |
Create an EventIDBase filled with the value from rparams. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
StatusCode createSOR | ATLAS_NOT_THREAD_SAFE () const |
coral::AttributeList getAttrList | ATLAS_NOT_THREAD_SAFE () const |
StatusCode | setIOVRange (IOVRange &iovRange) const |
StatusCode | updateProxy (SOR *sor) const |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
ServiceHandle< StoreGateSvc > | m_detStore |
std::string | m_sorpath |
const boost::property_tree::ptree & | m_rparams |
unsigned int | m_runNumber {0} |
unsigned long long | m_sorTime_ns {0} |
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... | |
Helper class for Start Of Run (SOR) record.
Helper class to retrieve the Start Of Run parameters from the prepareForRun ptree and put them into the detector store with whole-run validity.
Definition at line 25 of file TrigSORFromPtreeHelper.h.
Definition at line 27 of file TrigSORFromPtreeHelper.h.
TrigSORFromPtreeHelper::TrigSORFromPtreeHelper | ( | IMessageSvc * | msgSvc, |
const ServiceHandle< StoreGateSvc > & | detStore, | ||
const std::string & | sorpath, | ||
const boost::property_tree::ptree & | rparams | ||
) |
Create the SOR helper @params msgSvc Pointer to MessageSvc @params detStore Handle to DetectorStore @params sorpath COOL folder path of SOR record (e.g.
/TDAQ/RunCtrl/SOR_Params) @params rparams RunParams record
Definition at line 23 of file TrigSORFromPtreeHelper.cxx.
|
private |
|
private |
EventIDBase TrigSORFromPtreeHelper::eventID | ( | ) | const |
Create an EventIDBase filled with the value from rparams.
Definition at line 76 of file TrigSORFromPtreeHelper.cxx.
StatusCode TrigSORFromPtreeHelper::fillSOR | ( | const EventContext & | ctx | ) | const |
Fill SOR record in Detector Store, reusing if present or creating new one otherwise/ @params ctx EventContext to be used for IOVDbSvc.
Definition at line 49 of file TrigSORFromPtreeHelper.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
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 164 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 179 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.
|
private |
Definition at line 165 of file TrigSORFromPtreeHelper.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.
|
inline |
Overwrite run number from RunParams @params run New run number.
Definition at line 43 of file TrigSORFromPtreeHelper.h.
|
inline |
Overwrite SOR time from RunParams @params sorTime_ns New start of run time in nanoseconds since epoch.
Definition at line 49 of file TrigSORFromPtreeHelper.h.
|
private |
Definition at line 178 of file TrigSORFromPtreeHelper.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 68 of file TrigSORFromPtreeHelper.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.
|
private |
Definition at line 70 of file TrigSORFromPtreeHelper.h.
|
private |
Definition at line 71 of file TrigSORFromPtreeHelper.h.
|
private |
Definition at line 69 of file TrigSORFromPtreeHelper.h.
|
private |
Definition at line 72 of file TrigSORFromPtreeHelper.h.