#include <LumiProfileSvc.h>
|
| SimpleProperty< std::vector< uint64_t > > | m_runlumilist |
| | look-up table of lumi scale factor by run, lumiblock
|
| SimpleProperty< std::vector< float > > | m_scalefactorlist |
| std::map< uint64_t, float > | m_scaleFactorMap |
| | map from properties
|
| float | m_currentSF |
| | cached scale factor
|
| uint64_t | m_now |
| | cached iovtime
|
| virtual float | scaleFactor (unsigned int run, unsigned int lumi, bool &updated) override final |
Definition at line 18 of file LumiProfileSvc.h.
◆ LumiProfileSvc()
| LumiProfileSvc::LumiProfileSvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | svc ) |
Definition at line 7 of file LumiProfileSvc.cxx.
8 : base_class(name,svc)
14{
15 declareProperty(
"RunLumiList",
m_runlumilist,
"List of all IOVTimes ((run << 32) + (0xFFFFFFFF & lumiblock)). Same length as ScaleFactorList." );
16 declareProperty(
"ScaleFactorList",
m_scalefactorlist,
"List of scale factors for the luminosity. Same length as RunLumiList.");
17}
SimpleProperty< std::vector< float > > m_scalefactorlist
float m_currentSF
cached scale factor
uint64_t m_now
cached iovtime
SimpleProperty< std::vector< uint64_t > > m_runlumilist
look-up table of lumi scale factor by run, lumiblock
std::map< uint64_t, float > m_scaleFactorMap
map from properties
◆ ~LumiProfileSvc()
| LumiProfileSvc::~LumiProfileSvc |
( |
| ) |
|
|
virtual |
◆ initialize()
| StatusCode LumiProfileSvc::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 23 of file LumiProfileSvc.cxx.
24{
27 std::vector<uint64_t>::const_iterator iRL(rProp.begin());
28 std::vector<uint64_t>::const_iterator prEnd(rProp.end());
30 std::vector<float>::const_iterator iSF(sProp.begin());
31 std::vector<float>::const_iterator psEnd(sProp.end());
32 if (rProp.size() != sProp.size())
33 {
34 ATH_MSG_ERROR(
"Length of RunLumiList differs from length of ScaleFactorList!");
35 return StatusCode::FAILURE;
36 }
37 for( ; iRL != prEnd && iSF != psEnd; ++iRL, ++iSF )
38 {
40 }
41 return StatusCode::SUCCESS;
42}
◆ scaleFactor()
| float LumiProfileSvc::scaleFactor |
( |
unsigned int | run, |
|
|
unsigned int | lumi, |
|
|
bool & | updated ) |
|
finaloverridevirtual |
Definition at line 44 of file LumiProfileSvc.cxx.
45{
48 {
49 updated = true;
53 {
54 ATH_MSG_WARNING(
"Did not find lumi scale factor for run " << run <<
" lb " << lumi <<
"; using cached value.");
55 }
56 else
57 {
59 }
61 }
62 else
63 {
64 updated = false;
65 }
67}
#define ATH_MSG_WARNING(x)
◆ m_currentSF
| float LumiProfileSvc::m_currentSF |
|
private |
◆ m_now
| uint64_t LumiProfileSvc::m_now |
|
private |
◆ m_runlumilist
| SimpleProperty< std::vector< uint64_t > > LumiProfileSvc::m_runlumilist |
|
private |
look-up table of lumi scale factor by run, lumiblock
Definition at line 36 of file LumiProfileSvc.h.
◆ m_scalefactorlist
| SimpleProperty< std::vector< float > > LumiProfileSvc::m_scalefactorlist |
|
private |
◆ m_scaleFactorMap
| std::map<uint64_t,float> LumiProfileSvc::m_scaleFactorMap |
|
private |
The documentation for this class was generated from the following files: