ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsAlgs
src
TRTToTCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRTTOTCONDALG_H
6
#define TRTTOTCONDALG_H
7
8
#include <map>
9
#include <string>
10
#include <vector>
11
12
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
13
#include "
StoreGate/WriteCondHandleKey.h
"
14
#include "
AthenaPoolUtilities/CondAttrListVec.h
"
15
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
16
#include "Gaudi/Property.h"
17
#include "
TRT_ConditionsData/TRTDedxcorrection.h
"
18
19
class
TRTToTCondAlg
:
public
AthCondAlgorithm
20
{
21
public
:
22
TRTToTCondAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
23
virtual
~TRTToTCondAlg
()
override
;
24
25
virtual
StatusCode
initialize
()
override
;
26
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
27
virtual
StatusCode
finalize
()
override
;
28
enum
EDataBaseType
{
kOldDB
,
kNewDB
,
kNewDBOccCorr
};
29
StatusCode
update1
(
TRTDedxcorrection
&
Dedxcorrection
,
const
CondAttrListVec
* channel_values)
const
;
30
StatusCode
update2
(
TRTDedxcorrection
&
Dedxcorrection
,
const
CondAttrListCollection
* attrListColl )
const
;
31
32
protected
:
33
static
void
updateOldDBParameters
(
TRTDedxcorrection
& Dedxcollection, std::map<std::string,std::vector<float> > &result_dict) ;
34
static
void
updateNewDBParameters
(
TRTDedxcorrection
&
Dedxcorrection
, std::map<std::string,std::vector<float> > &result_dict) ;
35
static
void
updateOccupancyCorrectionParameters
(
TRTDedxcorrection
&
Dedxcorrection
, std::map<std::string,std::vector<float> > &result_dict) ;
36
37
private
:
38
SG::ReadCondHandleKey<CondAttrListVec>
m_VecReadKey
{
this
,
"ToTVecReadKey"
,
"/TRT/Calib/ToT/ToTVectors"
,
"ToTVec in-key"
};
39
SG::ReadCondHandleKey<CondAttrListCollection>
m_ValReadKey
{
this
,
"ToTValReadKey"
,
"/TRT/Calib/ToT/ToTValue"
,
"ToTVal in-key"
};
40
SG::WriteCondHandleKey<TRTDedxcorrection>
m_WriteKey
{
this
,
"ToTWriteKey"
,
"Dedxcorrection"
,
"Dedxcorrection out-key"
};
41
42
static
const
std::vector<std::string>
m_dictNamesOldDB
;
43
static
const
std::vector<std::string>
m_dictNamesNewDB
;
44
};
45
#endif
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
CondAttrListVec.h
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
TRTDedxcorrection.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
CondAttrListVec
Definition
CondAttrListVec.h:31
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
TRTToTCondAlg::updateOccupancyCorrectionParameters
static void updateOccupancyCorrectionParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
Definition
TRTToTCondAlg.cxx:152
TRTToTCondAlg::update2
StatusCode update2(TRTDedxcorrection &Dedxcorrection, const CondAttrListCollection *attrListColl) const
Definition
TRTToTCondAlg.cxx:482
TRTToTCondAlg::EDataBaseType
EDataBaseType
Definition
TRTToTCondAlg.h:28
TRTToTCondAlg::kOldDB
@ kOldDB
Definition
TRTToTCondAlg.h:28
TRTToTCondAlg::kNewDB
@ kNewDB
Definition
TRTToTCondAlg.h:28
TRTToTCondAlg::kNewDBOccCorr
@ kNewDBOccCorr
Definition
TRTToTCondAlg.h:28
TRTToTCondAlg::m_dictNamesNewDB
static const std::vector< std::string > m_dictNamesNewDB
Definition
TRTToTCondAlg.h:13
TRTToTCondAlg::m_ValReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_ValReadKey
Definition
TRTToTCondAlg.h:39
TRTToTCondAlg::finalize
virtual StatusCode finalize() override
Definition
TRTToTCondAlg.cxx:102
TRTToTCondAlg::m_dictNamesOldDB
static const std::vector< std::string > m_dictNamesOldDB
Definition
TRTToTCondAlg.h:10
TRTToTCondAlg::TRTToTCondAlg
TRTToTCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TRTToTCondAlg.cxx:23
TRTToTCondAlg::update1
StatusCode update1(TRTDedxcorrection &Dedxcorrection, const CondAttrListVec *channel_values) const
Definition
TRTToTCondAlg.cxx:108
TRTToTCondAlg::m_VecReadKey
SG::ReadCondHandleKey< CondAttrListVec > m_VecReadKey
Definition
TRTToTCondAlg.h:38
TRTToTCondAlg::~TRTToTCondAlg
virtual ~TRTToTCondAlg() override
TRTToTCondAlg::updateNewDBParameters
static void updateNewDBParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
Definition
TRTToTCondAlg.cxx:168
TRTToTCondAlg::initialize
virtual StatusCode initialize() override
Definition
TRTToTCondAlg.cxx:29
TRTToTCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TRTToTCondAlg.cxx:41
TRTToTCondAlg::updateOldDBParameters
static void updateOldDBParameters(TRTDedxcorrection &Dedxcollection, std::map< std::string, std::vector< float > > &result_dict)
Definition
TRTToTCondAlg.cxx:406
TRTToTCondAlg::m_WriteKey
SG::WriteCondHandleKey< TRTDedxcorrection > m_WriteKey
Definition
TRTToTCondAlg.h:40
Dedxcorrection
Definition
TRT_ToT_Corrections.h:9
TRTDedxcorrection
Definition
TRTDedxcorrection.h:9
Generated on
for ATLAS Offline Software by
1.17.0