ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileCalib
TileCalibAlgs
src
TileOFC2DBAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 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
23
#include "
AthenaBaseComps/AthAlgorithm.h
"
24
#include "
xAODEventInfo/EventInfo.h
"
25
#include "
StoreGate/ReadHandleKey.h
"
26
27
//=== IOVDbTest includes
28
#include "
RegistrationServices/IIOVRegistrationSvc.h
"
29
30
// Tile includes
31
#include "
TileConditions/ITileCondToolOfc.h
"
32
#include "
TileConditions/TileCondToolTiming.h
"
33
34
class
TileOFC2DBAlg
:
public
AthAlgorithm
{
35
36
public
:
37
TileOFC2DBAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
38
39
~TileOFC2DBAlg
();
40
41
StatusCode
initialize
();
42
StatusCode
execute
(
const
EventContext& ctx);
43
StatusCode
finalize
();
44
45
private
:
46
StatusCode
registerCondObjects
();
47
StatusCode
printCondObjects
();
48
49
//=== storegate
50
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
51
"EventInfo"
,
"EventInfo"
,
"EventInfo key"
};
52
53
//=== properties
54
UnsignedIntegerProperty
m_runIOVSince
;
55
UnsignedIntegerProperty
m_runIOVUntil
;
56
UnsignedIntegerProperty
m_lbnIOVSince
;
57
UnsignedIntegerProperty
m_lbnIOVUntil
;
58
UnsignedIntegerProperty
m_maxChan
;
59
bool
m_of2
;
60
bool
m_fixedPhases
;
61
std::string
m_runType
;
62
63
//=== non-property members
64
ServiceHandle<IIOVRegistrationSvc>
m_regSvc
;
65
ToolHandle<TileCondToolTiming>
m_tileToolTiming
{
this
,
66
"TileCondToolTiming"
,
"TileCondToolTiming"
,
"Tile timing tool"
};
67
ToolHandle<ITileCondToolOfc>
m_tileCondToolOfc
{
this
,
68
"TileCondToolOfc"
,
"TileCondToolOfc"
,
"Tile OFC tool"
};
69
70
//=== store all folders to be registered
71
std::set<std::string>
m_folders
;
72
73
int
m_nFixedPhases
;
74
double
m_phaseStep
;
75
std::vector<std::string>
m_modules
;
76
std::vector<unsigned int>
m_drawerIdxs
;
77
bool
m_creatAllModules
;
78
};
79
80
#endif
//TileCalibAlgs_TileOFC2DBAlg_h
AthAlgorithm.h
IIOVRegistrationSvc.h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
ITileCondToolOfc.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileCondToolTiming.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
TileOFC2DBAlg::m_runType
std::string m_runType
Definition
TileOFC2DBAlg.h:61
TileOFC2DBAlg::m_folders
std::set< std::string > m_folders
Definition
TileOFC2DBAlg.h:71
TileOFC2DBAlg::m_tileCondToolOfc
ToolHandle< ITileCondToolOfc > m_tileCondToolOfc
Definition
TileOFC2DBAlg.h:67
TileOFC2DBAlg::m_runIOVUntil
UnsignedIntegerProperty m_runIOVUntil
Definition
TileOFC2DBAlg.h:55
TileOFC2DBAlg::m_creatAllModules
bool m_creatAllModules
Definition
TileOFC2DBAlg.h:77
TileOFC2DBAlg::m_lbnIOVUntil
UnsignedIntegerProperty m_lbnIOVUntil
Definition
TileOFC2DBAlg.h:57
TileOFC2DBAlg::m_of2
bool m_of2
Definition
TileOFC2DBAlg.h:59
TileOFC2DBAlg::finalize
StatusCode finalize()
Definition
TileOFC2DBAlg.cxx:342
TileOFC2DBAlg::TileOFC2DBAlg
TileOFC2DBAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TileOFC2DBAlg.cxx:23
TileOFC2DBAlg::m_maxChan
UnsignedIntegerProperty m_maxChan
Definition
TileOFC2DBAlg.h:58
TileOFC2DBAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
TileOFC2DBAlg.h:50
TileOFC2DBAlg::m_tileToolTiming
ToolHandle< TileCondToolTiming > m_tileToolTiming
Definition
TileOFC2DBAlg.h:65
TileOFC2DBAlg::initialize
StatusCode initialize()
Definition
TileOFC2DBAlg.cxx:48
TileOFC2DBAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition
TileOFC2DBAlg.h:64
TileOFC2DBAlg::m_phaseStep
double m_phaseStep
Definition
TileOFC2DBAlg.h:74
TileOFC2DBAlg::m_runIOVSince
UnsignedIntegerProperty m_runIOVSince
Definition
TileOFC2DBAlg.h:54
TileOFC2DBAlg::registerCondObjects
StatusCode registerCondObjects()
Definition
TileOFC2DBAlg.cxx:357
TileOFC2DBAlg::m_lbnIOVSince
UnsignedIntegerProperty m_lbnIOVSince
Definition
TileOFC2DBAlg.h:56
TileOFC2DBAlg::~TileOFC2DBAlg
~TileOFC2DBAlg()
Definition
TileOFC2DBAlg.cxx:43
TileOFC2DBAlg::m_drawerIdxs
std::vector< unsigned int > m_drawerIdxs
Definition
TileOFC2DBAlg.h:76
TileOFC2DBAlg::m_modules
std::vector< std::string > m_modules
Definition
TileOFC2DBAlg.h:75
TileOFC2DBAlg::m_nFixedPhases
int m_nFixedPhases
Definition
TileOFC2DBAlg.h:73
TileOFC2DBAlg::printCondObjects
StatusCode printCondObjects()
Definition
TileOFC2DBAlg.cxx:387
TileOFC2DBAlg::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
TileOFC2DBAlg.cxx:80
TileOFC2DBAlg::m_fixedPhases
bool m_fixedPhases
Definition
TileOFC2DBAlg.h:60
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0