ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCalibUtils
LArCalibUtils
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
17
#include "
AthenaBaseComps/AthAlgorithm.h
"
18
//#include "GaudiKernel/ToolHandle.h"
19
#include "
LArRawConditions/LArRampComplete.h
"
20
21
#include <vector>
22
#include <string>
23
24
class
LArRampAdHocPatchingAlg
:
public
AthAlgorithm
25
{
26
public
:
30
LArRampAdHocPatchingAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
31
35
~LArRampAdHocPatchingAlg
();
36
42
StatusCode
initialize
();
43
47
StatusCode
execute
(
const
EventContext&) {
return
StatusCode::SUCCESS;}
48
54
StatusCode
stop
();
55
StatusCode
finalize
(){
return
StatusCode::SUCCESS;}
56
57
private
:
58
59
typedef
LArRampComplete::LArCondObj
LArRampObj
;
60
61
const
LArRampComplete
*
m_contIn
;
62
LArRampComplete
*
m_contOut
;
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
85
enum
patchMethod
{
86
ZeroIntercept
,
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
AthAlgorithm.h
LArRampComplete.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
HWIdentifier
Definition
HWIdentifier.h:13
LArConditionsContainer< LArRampP1 >::LArCondObj
LArRampP1 LArCondObj
Definition
LArConditionsContainer.h:69
LArRampAdHocPatchingAlg::finalize
StatusCode finalize()
Definition
LArRampAdHocPatchingAlg.h:55
LArRampAdHocPatchingAlg::m_patchesToBeAppliedMG
std::vector< unsigned > m_patchesToBeAppliedMG
Definition
LArRampAdHocPatchingAlg.h:78
LArRampAdHocPatchingAlg::m_valuesToBeAppliedHG
std::vector< std::vector< double > > m_valuesToBeAppliedHG
Definition
LArRampAdHocPatchingAlg.h:81
LArRampAdHocPatchingAlg::~LArRampAdHocPatchingAlg
~LArRampAdHocPatchingAlg()
Destructor.
LArRampAdHocPatchingAlg::m_channelsToBePatchedLG
std::vector< unsigned > m_channelsToBePatchedLG
Definition
LArRampAdHocPatchingAlg.h:75
LArRampAdHocPatchingAlg::m_channelsToBePatchedMG
std::vector< unsigned > m_channelsToBePatchedMG
Definition
LArRampAdHocPatchingAlg.h:74
LArRampAdHocPatchingAlg::m_useCorrChannel
bool m_useCorrChannel
Definition
LArRampAdHocPatchingAlg.h:95
LArRampAdHocPatchingAlg::stop
StatusCode stop()
Finalize method.
Definition
LArRampAdHocPatchingAlg.cxx:88
LArRampAdHocPatchingAlg::LArRampObj
LArRampComplete::LArCondObj LArRampObj
Definition
LArRampAdHocPatchingAlg.h:59
LArRampAdHocPatchingAlg::m_channelsToBePatchedHG
std::vector< unsigned > m_channelsToBePatchedHG
Definition
LArRampAdHocPatchingAlg.h:73
LArRampAdHocPatchingAlg::m_patchesToBeAppliedHG
std::vector< unsigned > m_patchesToBeAppliedHG
Definition
LArRampAdHocPatchingAlg.h:77
LArRampAdHocPatchingAlg::m_contIn
const LArRampComplete * m_contIn
Definition
LArRampAdHocPatchingAlg.h:61
LArRampAdHocPatchingAlg::patchMethod
patchMethod
Definition
LArRampAdHocPatchingAlg.h:85
LArRampAdHocPatchingAlg::ZeroIntercept
@ ZeroIntercept
Definition
LArRampAdHocPatchingAlg.h:86
LArRampAdHocPatchingAlg::PutValues
@ PutValues
Definition
LArRampAdHocPatchingAlg.h:87
LArRampAdHocPatchingAlg::execute
StatusCode execute(const EventContext &)
Empty Execute method.
Definition
LArRampAdHocPatchingAlg.h:47
LArRampAdHocPatchingAlg::m_valuesToBeAppliedMG
std::vector< std::vector< double > > m_valuesToBeAppliedMG
Definition
LArRampAdHocPatchingAlg.h:82
LArRampAdHocPatchingAlg::m_containerKey
std::string m_containerKey
Definition
LArRampAdHocPatchingAlg.h:64
LArRampAdHocPatchingAlg::m_valuesToBeAppliedLG
std::vector< std::vector< double > > m_valuesToBeAppliedLG
Definition
LArRampAdHocPatchingAlg.h:83
LArRampAdHocPatchingAlg::m_contOut
LArRampComplete * m_contOut
Definition
LArRampAdHocPatchingAlg.h:62
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::ZeroTheIntercept
bool ZeroTheIntercept(HWIdentifier chid, unsigned gain)
Definition
LArRampAdHocPatchingAlg.cxx:165
LArRampAdHocPatchingAlg::m_newContainerKey
std::string m_newContainerKey
Definition
LArRampAdHocPatchingAlg.h:65
LArRampAdHocPatchingAlg::LArRampAdHocPatchingAlg
LArRampAdHocPatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
regular Algorithm constructor
Definition
LArRampAdHocPatchingAlg.cxx:9
LArRampAdHocPatchingAlg::PutTheValues
bool PutTheValues(HWIdentifier chid, std::vector< double > &rvalues, unsigned gain)
Definition
LArRampAdHocPatchingAlg.cxx:189
LArRampAdHocPatchingAlg::m_patchesToBeAppliedLG
std::vector< unsigned > m_patchesToBeAppliedLG
Definition
LArRampAdHocPatchingAlg.h:79
LArRampAdHocPatchingAlg::initialize
StatusCode initialize()
Initialize method.
Definition
LArRampAdHocPatchingAlg.cxx:38
LArRampComplete
Definition
LArRampComplete.h:50
Generated on
for ATLAS Offline Software by
1.17.0