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-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
23
#include "
AthenaBaseComps/AthAlgorithm.h
"
24
#include "
xAODEventInfo/EventInfo.h
"
25
#include "
StoreGate/ReadHandleKey.h
"
26
#include "
AthenaKernel/IOVTime.h
"
27
28
//=== IOVDbTest includes
29
#include "
RegistrationServices/IIOVRegistrationSvc.h
"
30
31
// Tile includes
32
#include "
TileConditions/ITileCondToolOfc.h
"
33
#include "
TileConditions/TileCondToolTiming.h
"
34
35
class
TileOFC2DBAlg
:
public
AthAlgorithm
{
36
37
public
:
38
TileOFC2DBAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
39
40
~TileOFC2DBAlg
();
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
51
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
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
65
ServiceHandle<IIOVRegistrationSvc>
m_regSvc
;
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
AthAlgorithm.h
IIOVRegistrationSvc.h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
IOVTime.h
Basic time unit for IOVSvc.
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
IOVTime::MAXRUN
static constexpr uint32_t MAXRUN
Definition
IOVTime.h:49
IOVTime::MINEVENT
static constexpr uint32_t MINEVENT
Definition
IOVTime.h:51
IOVTime::MAXEVENT
static constexpr uint32_t MAXEVENT
Definition
IOVTime.h:52
IOVTime::MINRUN
static constexpr uint32_t MINRUN
Definition
IOVTime.h:45
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_maxChan
Gaudi::Property< unsigned int > m_maxChan
Definition
TileOFC2DBAlg.h:59
TileOFC2DBAlg::m_folders
std::set< std::string > m_folders
Definition
TileOFC2DBAlg.h:72
TileOFC2DBAlg::m_runIOVSince
Gaudi::Property< unsigned int > m_runIOVSince
Definition
TileOFC2DBAlg.h:55
TileOFC2DBAlg::m_tileCondToolOfc
ToolHandle< ITileCondToolOfc > m_tileCondToolOfc
Definition
TileOFC2DBAlg.h:68
TileOFC2DBAlg::finalize
StatusCode finalize()
Definition
TileOFC2DBAlg.cxx:328
TileOFC2DBAlg::TileOFC2DBAlg
TileOFC2DBAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TileOFC2DBAlg.cxx:23
TileOFC2DBAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
TileOFC2DBAlg.h:51
TileOFC2DBAlg::m_nFixedPhases
Gaudi::Property< int > m_nFixedPhases
Definition
TileOFC2DBAlg.h:74
TileOFC2DBAlg::m_tileToolTiming
ToolHandle< TileCondToolTiming > m_tileToolTiming
Definition
TileOFC2DBAlg.h:66
TileOFC2DBAlg::initialize
StatusCode initialize()
Definition
TileOFC2DBAlg.cxx:34
TileOFC2DBAlg::m_fixedPhases
Gaudi::Property< bool > m_fixedPhases
Definition
TileOFC2DBAlg.h:61
TileOFC2DBAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition
TileOFC2DBAlg.h:65
TileOFC2DBAlg::m_runIOVUntil
Gaudi::Property< unsigned int > m_runIOVUntil
Definition
TileOFC2DBAlg.h:56
TileOFC2DBAlg::m_creatAllModules
Gaudi::Property< bool > m_creatAllModules
Definition
TileOFC2DBAlg.h:78
TileOFC2DBAlg::registerCondObjects
StatusCode registerCondObjects()
Definition
TileOFC2DBAlg.cxx:343
TileOFC2DBAlg::m_phaseStep
Gaudi::Property< double > m_phaseStep
Definition
TileOFC2DBAlg.h:75
TileOFC2DBAlg::m_of2
Gaudi::Property< bool > m_of2
Definition
TileOFC2DBAlg.h:60
TileOFC2DBAlg::~TileOFC2DBAlg
~TileOFC2DBAlg()
Definition
TileOFC2DBAlg.cxx:29
TileOFC2DBAlg::m_drawerIdxs
std::vector< unsigned int > m_drawerIdxs
Definition
TileOFC2DBAlg.h:77
TileOFC2DBAlg::m_runType
Gaudi::Property< std::string > m_runType
Definition
TileOFC2DBAlg.h:62
TileOFC2DBAlg::printCondObjects
StatusCode printCondObjects()
Definition
TileOFC2DBAlg.cxx:373
TileOFC2DBAlg::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
TileOFC2DBAlg.cxx:66
TileOFC2DBAlg::m_lbnIOVUntil
Gaudi::Property< unsigned int > m_lbnIOVUntil
Definition
TileOFC2DBAlg.h:58
TileOFC2DBAlg::m_modules
Gaudi::Property< std::vector< std::string > > m_modules
Definition
TileOFC2DBAlg.h:76
TileOFC2DBAlg::m_lbnIOVSince
Gaudi::Property< unsigned int > m_lbnIOVSince
Definition
TileOFC2DBAlg.h:57
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0