ATLAS Offline Software
LArCompleteToFlat.h
Go to the documentation of this file.
1 //-*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef LARCALIBTOOLS_LARCOMPLETETOFLAT_H
9 #define LARCALIBTOOLS_LARCOMPLETETOFLAT_H 1
10 
11 #include <string>
15 #include "GaudiKernel/ToolHandle.h"
18 
19 
20 
21 class LArOnlineID_Base;
24 class ILArPedestal;
25 class ILArOFC;
26 class ILArRamp;
27 class LArShapeComplete;
28 class ILArDAC2uA;
29 class ILAruA2MeV;
31 
33 {
34 
36  // Public methods:
38  public:
40  LArCompleteToFlat( const std::string& name, ISvcLocator* pSvcLocator );
41 
43  virtual ~LArCompleteToFlat();
44 
45  // Athena algorithm's Hooks
47  StatusCode execute() {return StatusCode::SUCCESS;}
48  StatusCode finalize() {return StatusCode::SUCCESS;}
49  virtual StatusCode stop();
50 
51  private:
54 
55 
57  const std::string& outputName, const unsigned nGain, const bool withFCAL=true);
58  CondAttrListCollection* DAC2uAFlat(const ILArDAC2uA* input, const std::string& outputName);
59  CondAttrListCollection* uA2MeVFlat(const ILAruA2MeV* input, const std::string& outputName);
61  CondAttrListCollection* rampFlat(const ILArRamp* input, const std::string& outputName);
62  CondAttrListCollection* ofcFlat(const ILArOFC* input, const std::string& outputName, const LArfSamplSC* weights=nullptr);
65 
66 
67  void errIfConnected(const HWIdentifier chid, const int gain, const char* objName, const char* message=0) const;
68 
69  unsigned m_hashMax;
71 
72  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
73  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeySC{this,"CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
74  SG::ReadCondHandleKey<LArfSamplSC> m_weightsKeySC{this,"WeightsSCKey","","SG Key of weights object"};
75 
77  std::string m_uA2MeVInput;
78  std::string m_DAC2uAInput;
79  std::string m_HVScaleCorrInput;
80  std::string m_PedestalInput;
81  std::string m_RampInput;
82  std::string m_MphysOverMcalInput;
83  std::string m_OFCInput;
84  std::string m_OFCCaliInput;
85  std::string m_ShapeInput;
86  std::string m_DSPThresholdsInput;
87 
88  // DSPThreshold set name
89  std::string m_nameOfSet;
90 
91  bool m_isSC;
94 };
95 
96 #endif //> !LARCALIBTOOLS_LARCOMPLETETOFLAT_H
LArCompleteToFlat::m_OFCCaliInput
std::string m_OFCCaliInput
Definition: LArCompleteToFlat.h:84
LArCompleteToFlat::m_uA2MeVInput
std::string m_uA2MeVInput
InputSGKeys.
Definition: LArCompleteToFlat.h:77
LArCompleteToFlat
Definition: LArCompleteToFlat.h:33
LArCompleteToFlat::rampFlat
CondAttrListCollection * rampFlat(const ILArRamp *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:443
LArCompleteToFlat::~LArCompleteToFlat
virtual ~LArCompleteToFlat()
Destructor:
LArCompleteToFlat::m_PedestalInput
std::string m_PedestalInput
Definition: LArCompleteToFlat.h:80
LArCompleteToFlat::initialize
StatusCode initialize()
Definition: LArCompleteToFlat.cxx:75
LArDSPThresholdsComplete
Definition: LArDSPThresholdsComplete.h:21
ILAruA2MeV
Definition: ILAruA2MeV.h:13
ILArPedestal
Definition: ILArPedestal.h:12
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArShapeComplete
This class implements the ILArShape interface.
Definition: LArShapeComplete.h:26
LArSingleFloatP.h
ILArDAC2uA
Definition: ILArDAC2uA.h:13
LArConditionsContainer.h
HWIdentifier
Definition: HWIdentifier.h:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
ReweightUtils.message
message
Definition: ReweightUtils.py:15
LArCompleteToFlat::m_forceStop
bool m_forceStop
Definition: LArCompleteToFlat.h:92
LArCompleteToFlat::m_RampInput
std::string m_RampInput
Definition: LArCompleteToFlat.h:81
LArCompleteToFlat::m_cablingKeySC
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
Definition: LArCompleteToFlat.h:73
LArConditionsContainer< LArSingleFloatP >
AthAlgorithm.h
LArCompleteToFlat::LArCompleteToFlat
LArCompleteToFlat()
Default constructor:
LArCompleteToFlat::m_isSC
bool m_isSC
Definition: LArCompleteToFlat.h:91
LArCompleteToFlat::m_nameOfSet
std::string m_nameOfSet
Definition: LArCompleteToFlat.h:89
LArCompleteToFlat::execute
StatusCode execute()
Definition: LArCompleteToFlat.h:47
LArCompleteToFlat::ofcFlat
CondAttrListCollection * ofcFlat(const ILArOFC *input, const std::string &outputName, const LArfSamplSC *weights=nullptr)
Definition: LArCompleteToFlat.cxx:211
LArOnOffIdMapping.h
LArCompleteToFlat::stop
virtual StatusCode stop()
Definition: LArCompleteToFlat.cxx:649
LArCompleteToFlat::shapeFlat
CondAttrListCollection * shapeFlat(const LArShapeComplete *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:332
LArCompleteToFlat::m_hashMax
unsigned m_hashMax
Definition: LArCompleteToFlat.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ILArRamp
Definition: ILArRamp.h:12
LArCompleteToFlat::uA2MeVFlat
CondAttrListCollection * uA2MeVFlat(const ILAruA2MeV *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:579
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LArCompleteToFlat::m_onlineID
const LArOnlineID_Base * m_onlineID
Definition: LArCompleteToFlat.h:70
LArCompleteToFlat::m_MphysOverMcalInput
std::string m_MphysOverMcalInput
Definition: LArCompleteToFlat.h:82
LArCompleteToFlat::m_DAC2uAInput
std::string m_DAC2uAInput
Definition: LArCompleteToFlat.h:78
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
LArfSamplSC
Definition: LArfSamplSC.h:18
AthAlgorithm
Definition: AthAlgorithm.h:47
ILArOFC
Definition: ILArOFC.h:14
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArCompleteToFlat::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCompleteToFlat.h:72
LArCompleteToFlat::singleFloatFlat
CondAttrListCollection * singleFloatFlat(const char *blobName, const LArConditionsContainer< LArSingleFloatP > *input, const std::string &outputName, const unsigned nGain, const bool withFCAL=true)
Definition: LArCompleteToFlat.cxx:85
LArCompleteToFlat::m_OFCInput
std::string m_OFCInput
Definition: LArCompleteToFlat.h:83
weights
Definition: herwig7_interface.h:44
LArCompleteToFlat::m_weightsKeySC
SG::ReadCondHandleKey< LArfSamplSC > m_weightsKeySC
Definition: LArCompleteToFlat.h:74
lumiFormat.outputName
string outputName
Definition: lumiFormat.py:65
LArfSamplSC.h
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArCompleteToFlat::pedestalFlat
CondAttrListCollection * pedestalFlat(const ILArPedestal *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:147
LArCompleteToFlat::finalize
StatusCode finalize()
Definition: LArCompleteToFlat.h:48
LArCompleteToFlat::m_ShapeInput
std::string m_ShapeInput
Definition: LArCompleteToFlat.h:85
LArCompleteToFlat::DSPThresholdsFlat
AthenaAttributeList * DSPThresholdsFlat(const LArDSPThresholdsComplete *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:603
LArCompleteToFlat::DAC2uAFlat
CondAttrListCollection * DAC2uAFlat(const ILArDAC2uA *input, const std::string &outputName)
Definition: LArCompleteToFlat.cxx:554
LArCompleteToFlat::m_HVScaleCorrInput
std::string m_HVScaleCorrInput
Definition: LArCompleteToFlat.h:79
LArCompleteToFlat::m_DSPThresholdsInput
std::string m_DSPThresholdsInput
Definition: LArCompleteToFlat.h:86
LArCompleteToFlat::m_fakeEMBPSLowGain
bool m_fakeEMBPSLowGain
Definition: LArCompleteToFlat.h:93
LArCompleteToFlat::errIfConnected
void errIfConnected(const HWIdentifier chid, const int gain, const char *objName, const char *message=0) const
Definition: LArCompleteToFlat.cxx:898