ATLAS Offline Software
TileOFC2DBAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TileCalibAlgs_TileOFC2DBAlg_h
6 #define TileCalibAlgs_TileOFC2DBAlg_h
7 
8 /***************************************************************************
9  TileOFC2DBAlg
10  -----------------------------------------
11 
12  This algorithm writes OFC for specified phase to sqlite file to
13  be stored afterwards in COOL DB.
14  It uses TileCondToolOfc to calculate OFCs.
15 
16  2008-05-13 Andrei.Artamonov@cern.ch
17  ***************************************************************************/
18 
19 // Gaudi includes
20 #include "GaudiKernel/ToolHandle.h"
21 
22 // Athena includes
26 
27 // Tile includes
30 
32 
33 class TileOFC2DBAlg: public AthAlgorithm {
34 
35  public:
36  TileOFC2DBAlg(const std::string& name, ISvcLocator* pSvcLocator);
37 
39 
43 
44  private:
47 
48  //=== storegate
50  "EventInfo", "EventInfo", "EventInfo key"};
51 
52  //=== properties
53  UnsignedIntegerProperty m_runIOVSince;
54  UnsignedIntegerProperty m_runIOVUntil;
55  UnsignedIntegerProperty m_lbnIOVSince;
56  UnsignedIntegerProperty m_lbnIOVUntil;
57  UnsignedIntegerProperty m_maxChan;
58  bool m_of2;
60  std::string m_runType;
61 
62  //=== non-property members
64  ToolHandle<TileCondToolTiming> m_tileToolTiming{this,
65  "TileCondToolTiming", "TileCondToolTiming", "Tile timing tool"};
66  ToolHandle<ITileCondToolOfc> m_tileCondToolOfc{this,
67  "TileCondToolOfc", "TileCondToolOfc", "Tile OFC tool"};
68 
69  //=== store all folders to be registered
70  std::set<std::string> m_folders;
71 
73  double m_phaseStep;
74  std::vector<std::string> m_modules;
75  std::vector<unsigned int> m_drawerIdxs;
77 };
78 
79 #endif //TileCalibAlgs_TileOFC2DBAlg_h
TileOFC2DBAlg::initialize
StatusCode initialize()
Definition: TileOFC2DBAlg.cxx:51
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileOFC2DBAlg::m_runIOVSince
UnsignedIntegerProperty m_runIOVSince
Definition: TileOFC2DBAlg.h:53
TileOFC2DBAlg::m_runType
std::string m_runType
Definition: TileOFC2DBAlg.h:60
TileOFC2DBAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: TileOFC2DBAlg.h:49
TileOFC2DBAlg::m_creatAllModules
bool m_creatAllModules
Definition: TileOFC2DBAlg.h:76
TileOFC2DBAlg::printCondObjects
StatusCode printCondObjects()
Definition: TileOFC2DBAlg.cxx:394
TileOFC2DBAlg::finalize
StatusCode finalize()
Definition: TileOFC2DBAlg.cxx:349
ITileCondToolOfc.h
TileOFC2DBAlg::~TileOFC2DBAlg
~TileOFC2DBAlg()
Definition: TileOFC2DBAlg.cxx:46
SG::ReadHandleKey< xAOD::EventInfo >
TileCondToolTiming.h
TileOFC2DBAlg::m_lbnIOVUntil
UnsignedIntegerProperty m_lbnIOVUntil
Definition: TileOFC2DBAlg.h:56
TileOFC2DBAlg::m_lbnIOVSince
UnsignedIntegerProperty m_lbnIOVSince
Definition: TileOFC2DBAlg.h:55
AthAlgorithm.h
TileOFC2DBAlg::m_runIOVUntil
UnsignedIntegerProperty m_runIOVUntil
Definition: TileOFC2DBAlg.h:54
TileOFC2DBAlg::m_drawerIdxs
std::vector< unsigned int > m_drawerIdxs
Definition: TileOFC2DBAlg.h:75
TileOFC2DBAlg::m_of2
bool m_of2
Definition: TileOFC2DBAlg.h:58
TileOFC2DBAlg::m_tileCondToolOfc
ToolHandle< ITileCondToolOfc > m_tileCondToolOfc
Definition: TileOFC2DBAlg.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IIOVRegistrationSvc
This is an interface to a service used to register conditions objects in the Interval of Validity (IO...
Definition: IIOVRegistrationSvc.h:52
TileOFC2DBAlg::registerCondObjects
StatusCode registerCondObjects()
Definition: TileOFC2DBAlg.cxx:364
TileOFC2DBAlg
Definition: TileOFC2DBAlg.h:33
TileOFC2DBAlg::m_fixedPhases
bool m_fixedPhases
Definition: TileOFC2DBAlg.h:59
AthAlgorithm
Definition: AthAlgorithm.h:47
TileOFC2DBAlg::m_modules
std::vector< std::string > m_modules
Definition: TileOFC2DBAlg.h:74
TileOFC2DBAlg::m_maxChan
UnsignedIntegerProperty m_maxChan
Definition: TileOFC2DBAlg.h:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h
TileOFC2DBAlg::m_phaseStep
double m_phaseStep
Definition: TileOFC2DBAlg.h:73
TileOFC2DBAlg::execute
StatusCode execute()
Definition: TileOFC2DBAlg.cxx:86
TileOFC2DBAlg::m_tileToolTiming
ToolHandle< TileCondToolTiming > m_tileToolTiming
Definition: TileOFC2DBAlg.h:64
TileOFC2DBAlg::m_folders
std::set< std::string > m_folders
Definition: TileOFC2DBAlg.h:70
TileOFC2DBAlg::TileOFC2DBAlg
TileOFC2DBAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TileOFC2DBAlg.cxx:26
TileOFC2DBAlg::m_regSvc
IIOVRegistrationSvc * m_regSvc
Definition: TileOFC2DBAlg.h:63
TileOFC2DBAlg::m_nFixedPhases
int m_nFixedPhases
Definition: TileOFC2DBAlg.h:72