ATLAS Offline Software
Loading...
Searching...
No Matches
LumiProfileSvc.h
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef PILEUPCOMPS_LUMIPROFILESVC
8#define PILEUPCOMPS_LUMIPROFILESVC 1
16#include "Gaudi/Property.h"
17
18class LumiProfileSvc : public extends<AthService, IBeamLuminosity>
19{
20public:
22
23 LumiProfileSvc(const std::string& name,ISvcLocator* svc);
24 virtual ~LumiProfileSvc();
26
28 virtual StatusCode initialize() override final;
30
32 virtual float scaleFactor(unsigned int run, unsigned int lumi, bool & updated) override final;
34private:
36 SimpleProperty< std::vector< uint64_t > > m_runlumilist;
37 SimpleProperty< std::vector< float > > m_scalefactorlist;
39 std::map<uint64_t,float> m_scaleFactorMap;
43 uint64_t m_now;
44};
45#endif
46
provides the relative beam luminosity as a function of the bunch xing.
virtual StatusCode initialize() override final
virtual ~LumiProfileSvc()
SimpleProperty< std::vector< float > > m_scalefactorlist
float m_currentSF
cached scale factor
uint64_t m_now
cached iovtime
LumiProfileSvc(const std::string &name, ISvcLocator *svc)
SimpleProperty< std::vector< uint64_t > > m_runlumilist
look-up table of lumi scale factor by run, lumiblock
virtual float scaleFactor(unsigned int run, unsigned int lumi, bool &updated) override final
std::map< uint64_t, float > m_scaleFactorMap
map from properties
Definition run.py:1