ATLAS Offline Software
TRTToTCondAlg.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 TRTTOTCONDALG_H
6 #define TRTTOTCONDALG_H
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 
16 #include "Gaudi/Property.h"
18 
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() override;
27  virtual StatusCode finalize() override;
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
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
TRTToTCondAlg::kOldDB
@ kOldDB
Definition: TRTToTCondAlg.h:28
TRTToTCondAlg::m_ValReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_ValReadKey
Definition: TRTToTCondAlg.h:39
TRTToTCondAlg::update1
StatusCode update1(TRTDedxcorrection &Dedxcorrection, const CondAttrListVec *channel_values)
Definition: TRTToTCondAlg.cxx:108
TRTToTCondAlg::finalize
virtual StatusCode finalize() override
Definition: TRTToTCondAlg.cxx:102
TRTToTCondAlg::m_VecReadKey
SG::ReadCondHandleKey< CondAttrListVec > m_VecReadKey
Definition: TRTToTCondAlg.h:38
TRTDedxcorrection.h
WriteCondHandleKey.h
TRTToTCondAlg::kNewDBOccCorr
@ kNewDBOccCorr
Definition: TRTToTCondAlg.h:28
TRTToTCondAlg::EDataBaseType
EDataBaseType
Definition: TRTToTCondAlg.h:28
TRTToTCondAlg::update2
StatusCode update2(TRTDedxcorrection &Dedxcorrection, const CondAttrListCollection *attrListColl)
Definition: TRTToTCondAlg.cxx:482
TRTToTCondAlg::updateOldDBParameters
static void updateOldDBParameters(TRTDedxcorrection &Dedxcollection, std::map< std::string, std::vector< float > > &result_dict)
Definition: TRTToTCondAlg.cxx:406
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
TRTToTCondAlg::initialize
virtual StatusCode initialize() override
Definition: TRTToTCondAlg.cxx:29
TRTToTCondAlg::updateNewDBParameters
static void updateNewDBParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
Definition: TRTToTCondAlg.cxx:168
AthAlgorithm.h
CondAttrListVec.h
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
CondAttrListVec
Definition: CondAttrListVec.h:31
TRTToTCondAlg::updateOccupancyCorrectionParameters
static void updateOccupancyCorrectionParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
Definition: TRTToTCondAlg.cxx:152
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTDedxcorrection
Definition: TRTDedxcorrection.h:9
TRTToTCondAlg::execute
virtual StatusCode execute() override
Definition: TRTToTCondAlg.cxx:41
TRTToTCondAlg::TRTToTCondAlg
TRTToTCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTToTCondAlg.cxx:23
TRTToTCondAlg::m_WriteKey
SG::WriteCondHandleKey< TRTDedxcorrection > m_WriteKey
Definition: TRTToTCondAlg.h:40
AthAlgorithm
Definition: AthAlgorithm.h:47
TRTToTCondAlg::m_dictNamesOldDB
static const std::vector< std::string > m_dictNamesOldDB
Definition: TRTToTCondAlg.h:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TRTToTCondAlg::~TRTToTCondAlg
virtual ~TRTToTCondAlg() override
TRTToTCondAlg::m_dictNamesNewDB
static const std::vector< std::string > m_dictNamesNewDB
Definition: TRTToTCondAlg.h:43
SG::ReadCondHandleKey< CondAttrListVec >
TRTToTCondAlg
Definition: TRTToTCondAlg.h:20
Dedxcorrection
Definition: TRT_ToT_Corrections.h:9
SG::WriteCondHandleKey< TRTDedxcorrection >
TRTToTCondAlg::kNewDB
@ kNewDB
Definition: TRTToTCondAlg.h:28