ATLAS Offline Software
Loading...
Searching...
No Matches
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
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(const EventContext& ctx) const override;
27 virtual StatusCode finalize() override;
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
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
static void updateOccupancyCorrectionParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
StatusCode update2(TRTDedxcorrection &Dedxcorrection, const CondAttrListCollection *attrListColl) const
static const std::vector< std::string > m_dictNamesNewDB
SG::ReadCondHandleKey< CondAttrListCollection > m_ValReadKey
virtual StatusCode finalize() override
static const std::vector< std::string > m_dictNamesOldDB
TRTToTCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode update1(TRTDedxcorrection &Dedxcorrection, const CondAttrListVec *channel_values) const
SG::ReadCondHandleKey< CondAttrListVec > m_VecReadKey
virtual ~TRTToTCondAlg() override
static void updateNewDBParameters(TRTDedxcorrection &Dedxcorrection, std::map< std::string, std::vector< float > > &result_dict)
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
static void updateOldDBParameters(TRTDedxcorrection &Dedxcollection, std::map< std::string, std::vector< float > > &result_dict)
SG::WriteCondHandleKey< TRTDedxcorrection > m_WriteKey