ATLAS Offline Software
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 
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 
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 
87  PutValues
88  };
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 
LArRampAdHocPatchingAlg::PutValues
@ PutValues
Definition: LArRampAdHocPatchingAlg.h:87
LArRampComplete.h
LArRampAdHocPatchingAlg::LArRampObj
LArRampComplete::LArCondObj LArRampObj
Definition: LArRampAdHocPatchingAlg.h:59
LArRampComplete
Definition: LArRampComplete.h:50
LArRampAdHocPatchingAlg::m_channelsToBePatchedMG
std::vector< unsigned > m_channelsToBePatchedMG
Definition: LArRampAdHocPatchingAlg.h:74
LArRampP1
Persistent data for LArRamp Copied from LAr.
Definition: LArRampP1.h:24
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArRampAdHocPatchingAlg::m_containerKey
std::string m_containerKey
Definition: LArRampAdHocPatchingAlg.h:64
LArRampAdHocPatchingAlg::ZeroTheIntercept
bool ZeroTheIntercept(HWIdentifier chid, unsigned gain)
Definition: LArRampAdHocPatchingAlg.cxx:165
LArRampAdHocPatchingAlg::m_channelsToBePatchedLG
std::vector< unsigned > m_channelsToBePatchedLG
Definition: LArRampAdHocPatchingAlg.h:75
LArRampAdHocPatchingAlg::initialize
StatusCode initialize()
Initialize method.
Definition: LArRampAdHocPatchingAlg.cxx:38
LArRampAdHocPatchingAlg::PutTheValues
bool PutTheValues(HWIdentifier chid, std::vector< double > &rvalues, unsigned gain)
Definition: LArRampAdHocPatchingAlg.cxx:189
LArRampAdHocPatchingAlg::~LArRampAdHocPatchingAlg
~LArRampAdHocPatchingAlg()
Destructor.
LArRampAdHocPatchingAlg::m_contOut
LArRampComplete * m_contOut
Definition: LArRampAdHocPatchingAlg.h:62
HWIdentifier
Definition: HWIdentifier.h:13
LArRampAdHocPatchingAlg::patchMethod
patchMethod
Definition: LArRampAdHocPatchingAlg.h:85
LArRampAdHocPatchingAlg::ZeroIntercept
@ ZeroIntercept
Definition: LArRampAdHocPatchingAlg.h:86
LArRampAdHocPatchingAlg::m_valuesToBeAppliedHG
std::vector< std::vector< double > > m_valuesToBeAppliedHG
Definition: LArRampAdHocPatchingAlg.h:81
LArRampAdHocPatchingAlg::m_patchesToBeAppliedLG
std::vector< unsigned > m_patchesToBeAppliedLG
Definition: LArRampAdHocPatchingAlg.h:79
AthAlgorithm.h
LArRampAdHocPatchingAlg::m_newContainerKey
std::string m_newContainerKey
Definition: LArRampAdHocPatchingAlg.h:65
LArRampAdHocPatchingAlg::execute
StatusCode execute()
Empty Execute method.
Definition: LArRampAdHocPatchingAlg.h:47
LArRampAdHocPatchingAlg::m_patchesToBeAppliedMG
std::vector< unsigned > m_patchesToBeAppliedMG
Definition: LArRampAdHocPatchingAlg.h:78
LArRampAdHocPatchingAlg::m_valuesToBeAppliedLG
std::vector< std::vector< double > > m_valuesToBeAppliedLG
Definition: LArRampAdHocPatchingAlg.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRampAdHocPatchingAlg::ApplyAdHocPatches
StatusCode ApplyAdHocPatches(std::vector< unsigned > &channelsToBePatched, std::vector< unsigned > &patchesTobeApplied, std::vector< std::vector< double > > &valuesToBeApplied, unsigned gain)
Definition: LArRampAdHocPatchingAlg.cxx:129
LArRampAdHocPatchingAlg::m_channelsToBePatchedHG
std::vector< unsigned > m_channelsToBePatchedHG
Definition: LArRampAdHocPatchingAlg.h:73
AthAlgorithm
Definition: AthAlgorithm.h:47
LArRampAdHocPatchingAlg::LArRampAdHocPatchingAlg
LArRampAdHocPatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
regular Algorithm constructor
Definition: LArRampAdHocPatchingAlg.cxx:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArRampAdHocPatchingAlg::m_valuesToBeAppliedMG
std::vector< std::vector< double > > m_valuesToBeAppliedMG
Definition: LArRampAdHocPatchingAlg.h:82
LArRampAdHocPatchingAlg::m_contIn
const LArRampComplete * m_contIn
Definition: LArRampAdHocPatchingAlg.h:61
LArRampAdHocPatchingAlg::m_useCorrChannel
bool m_useCorrChannel
Definition: LArRampAdHocPatchingAlg.h:95
LArRampAdHocPatchingAlg::finalize
StatusCode finalize()
Definition: LArRampAdHocPatchingAlg.h:55
LArRampAdHocPatchingAlg::stop
StatusCode stop()
Finalize method.
Definition: LArRampAdHocPatchingAlg.cxx:88
LArRampAdHocPatchingAlg::m_patchesToBeAppliedHG
std::vector< unsigned > m_patchesToBeAppliedHG
Definition: LArRampAdHocPatchingAlg.h:77
LArRampAdHocPatchingAlg
Definition: LArRampAdHocPatchingAlg.h:25