ATLAS Offline Software
Loading...
Searching...
No Matches
TileOFC2DBAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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
27
28//=== IOVDbTest includes
30
31// Tile includes
34
36
37 public:
38 TileOFC2DBAlg(const std::string& name, ISvcLocator* pSvcLocator);
39
41
42 StatusCode initialize();
43 StatusCode execute(const EventContext& ctx);
44 StatusCode finalize();
45
46 private:
47 StatusCode registerCondObjects();
48 StatusCode printCondObjects();
49
50 //=== storegate
52 "EventInfo", "EventInfo", "EventInfo key"};
53
54 //=== properties
55 Gaudi::Property<unsigned int> m_runIOVSince{this, "RunIOVSince", IOVTime::MINRUN};
56 Gaudi::Property<unsigned int> m_runIOVUntil{this, "RunIOVUntil", IOVTime::MAXRUN};
57 Gaudi::Property<unsigned int> m_lbnIOVSince{this, "LbnIOVSince", IOVTime::MINEVENT};
58 Gaudi::Property<unsigned int> m_lbnIOVUntil{this, "LbnIOVUntil", IOVTime::MAXEVENT};
59 Gaudi::Property<unsigned int> m_maxChan{this, "MaxChan", 1, "Number of channels for which OFCs will be created with fixed phases"};
60 Gaudi::Property<bool> m_of2{this, "OF2", true, "true => OF2, false => OF1"};
61 Gaudi::Property<bool> m_fixedPhases{this, "FixedPhases", true, "calculate OFCs for fixed phases"};
62 Gaudi::Property<std::string> m_runType{this, "RunType", "PHY", "PHY or LAS"};
63
64 //=== non-property members
66 ToolHandle<TileCondToolTiming> m_tileToolTiming{this,
67 "TileCondToolTiming", "TileCondToolTiming", "Tile timing tool"};
68 ToolHandle<ITileCondToolOfc> m_tileCondToolOfc{this,
69 "TileCondToolOfc", "TileCondToolOfc", "Tile OFC tool"};
70
71 //=== store all folders to be registered
72 std::set<std::string> m_folders;
73
74 Gaudi::Property<int> m_nFixedPhases{this, "FixedPhasesNumber", 100};
75 Gaudi::Property<double> m_phaseStep{this, "PhaseStep", 0.5};
76 Gaudi::Property<std::vector<std::string>> m_modules{this, "Modules", {"AUX01"}, "Modules for which OFC should be stored in DB"};
77 std::vector<unsigned int> m_drawerIdxs;
78 Gaudi::Property<bool> m_creatAllModules{this, "CreateAllModules", true, "All missing modules is written to DB with zero size (empty)"};
79};
80
81#endif //TileCalibAlgs_TileOFC2DBAlg_h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
Basic time unit for IOVSvc.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
static constexpr uint32_t MAXRUN
Definition IOVTime.h:49
static constexpr uint32_t MINEVENT
Definition IOVTime.h:51
static constexpr uint32_t MAXEVENT
Definition IOVTime.h:52
static constexpr uint32_t MINRUN
Definition IOVTime.h:45
Property holding a SG store/key/clid from which a ReadHandle is made.
Gaudi::Property< unsigned int > m_maxChan
std::set< std::string > m_folders
Gaudi::Property< unsigned int > m_runIOVSince
ToolHandle< ITileCondToolOfc > m_tileCondToolOfc
StatusCode finalize()
TileOFC2DBAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Property< int > m_nFixedPhases
ToolHandle< TileCondToolTiming > m_tileToolTiming
StatusCode initialize()
Gaudi::Property< bool > m_fixedPhases
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Gaudi::Property< unsigned int > m_runIOVUntil
Gaudi::Property< bool > m_creatAllModules
StatusCode registerCondObjects()
Gaudi::Property< double > m_phaseStep
Gaudi::Property< bool > m_of2
std::vector< unsigned int > m_drawerIdxs
Gaudi::Property< std::string > m_runType
StatusCode printCondObjects()
StatusCode execute(const EventContext &ctx)
Execute method.
Gaudi::Property< unsigned int > m_lbnIOVUntil
Gaudi::Property< std::vector< std::string > > m_modules
Gaudi::Property< unsigned int > m_lbnIOVSince