ATLAS Offline Software
Loading...
Searching...
No Matches
LArRampAdHocPatchingAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5//Dear emacs, this is -*-c++-*-
6
13
14#ifndef LARRAMPADHOCPATCHINGALG_H
15#define LARRAMPADHOCPATCHINGALG_H
16
18//#include "GaudiKernel/ToolHandle.h"
20
21#include <vector>
22#include <string>
23
25{
26 public:
30 LArRampAdHocPatchingAlg(const std::string& name, ISvcLocator* pSvcLocator);
31
36
42 StatusCode initialize();
43
47 StatusCode execute() {return StatusCode::SUCCESS;}
48
54 StatusCode stop();
55 StatusCode finalize(){return StatusCode::SUCCESS;}
56
57 private:
58
60
63
64 std::string m_containerKey;
65 std::string m_newContainerKey;
66
67 /*
68 std::vector<HWIdentifier> m_channelsToBePatchedHG;
69 std::vector<HWIdentifier> m_channelsToBePatchedMG;
70 std::vector<HWIdentifier> m_channelsToBePatchedLG;
71 */
72
73 std::vector<unsigned> m_channelsToBePatchedHG;
74 std::vector<unsigned> m_channelsToBePatchedMG;
75 std::vector<unsigned> m_channelsToBePatchedLG;
76
77 std::vector<unsigned> m_patchesToBeAppliedHG;
78 std::vector<unsigned> m_patchesToBeAppliedMG;
79 std::vector<unsigned> m_patchesToBeAppliedLG;
80
81 std::vector<std::vector<double> > m_valuesToBeAppliedHG;
82 std::vector<std::vector<double> > m_valuesToBeAppliedMG;
83 std::vector<std::vector<double> > m_valuesToBeAppliedLG;
84
89
90
91 bool ZeroTheIntercept(HWIdentifier chid, unsigned gain);
92 bool PutTheValues(HWIdentifier chid, std::vector<double>& rvalues, unsigned gain);
93 StatusCode ApplyAdHocPatches( std::vector<unsigned>& channelsToBePatched, std::vector<unsigned>& patchesTobeApplied, std::vector<std::vector<double> >& valuesToBeApplied, unsigned gain );
94
95 bool m_useCorrChannel = false;
96
97};
98
99#endif
100
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< unsigned > m_patchesToBeAppliedMG
std::vector< std::vector< double > > m_valuesToBeAppliedHG
~LArRampAdHocPatchingAlg()
Destructor.
std::vector< unsigned > m_channelsToBePatchedLG
std::vector< unsigned > m_channelsToBePatchedMG
StatusCode stop()
Finalize method.
LArRampComplete::LArCondObj LArRampObj
std::vector< unsigned > m_channelsToBePatchedHG
std::vector< unsigned > m_patchesToBeAppliedHG
const LArRampComplete * m_contIn
StatusCode execute()
Empty Execute method.
std::vector< std::vector< double > > m_valuesToBeAppliedMG
std::vector< std::vector< double > > m_valuesToBeAppliedLG
StatusCode ApplyAdHocPatches(std::vector< unsigned > &channelsToBePatched, std::vector< unsigned > &patchesTobeApplied, std::vector< std::vector< double > > &valuesToBeApplied, unsigned gain)
bool ZeroTheIntercept(HWIdentifier chid, unsigned gain)
LArRampAdHocPatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
regular Algorithm constructor
bool PutTheValues(HWIdentifier chid, std::vector< double > &rvalues, unsigned gain)
std::vector< unsigned > m_patchesToBeAppliedLG
StatusCode initialize()
Initialize method.