ATLAS Offline Software
Loading...
Searching...
No Matches
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
21class LArOnlineID_Base;
24class ILArPedestal;
25class ILArOFC;
26class ILArRamp;
28class ILArDAC2uA;
29class ILAruA2MeV;
31
33{
34
36 // Public methods:
38 public:
40 LArCompleteToFlat( const std::string& name, ISvcLocator* pSvcLocator );
41
44
45 // Athena algorithm's Hooks
46 StatusCode initialize();
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);
60 CondAttrListCollection* pedestalFlat(const ILArPedestal* 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);
63 CondAttrListCollection* shapeFlat(const LArShapeComplete* input, const std::string& outputName);
64 AthenaAttributeList* DSPThresholdsFlat(const LArDSPThresholdsComplete* input, const std::string& outputName);
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;
83 std::string m_OFCInput;
84 std::string m_OFCCaliInput;
85 std::string m_ShapeInput;
87
88 // DSPThreshold set name
89 std::string m_nameOfSet;
90
91 bool m_isSC;
94};
95
96#endif //> !LARCALIBTOOLS_LARCOMPLETETOFLAT_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
An AttributeList represents a logical row of attributes in a metadata table.
This class is a collection of AttributeLists where each one is associated with a channel number.
CondAttrListCollection * rampFlat(const ILArRamp *input, const std::string &outputName)
std::string m_uA2MeVInput
InputSGKeys.
virtual StatusCode stop()
std::string m_OFCCaliInput
std::string m_HVScaleCorrInput
CondAttrListCollection * ofcFlat(const ILArOFC *input, const std::string &outputName, const LArfSamplSC *weights=nullptr)
const LArOnlineID_Base * m_onlineID
virtual ~LArCompleteToFlat()
Destructor:
std::string m_MphysOverMcalInput
AthenaAttributeList * DSPThresholdsFlat(const LArDSPThresholdsComplete *input, const std::string &outputName)
CondAttrListCollection * singleFloatFlat(const char *blobName, const LArConditionsContainer< LArSingleFloatP > *input, const std::string &outputName, const unsigned nGain, const bool withFCAL=true)
std::string m_DAC2uAInput
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
void errIfConnected(const HWIdentifier chid, const int gain, const char *objName, const char *message=0) const
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
std::string m_DSPThresholdsInput
CondAttrListCollection * uA2MeVFlat(const ILAruA2MeV *input, const std::string &outputName)
SG::ReadCondHandleKey< LArfSamplSC > m_weightsKeySC
LArCompleteToFlat(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
CondAttrListCollection * pedestalFlat(const ILArPedestal *input, const std::string &outputName)
CondAttrListCollection * shapeFlat(const LArShapeComplete *input, const std::string &outputName)
std::string m_PedestalInput
CondAttrListCollection * DAC2uAFlat(const ILArDAC2uA *input, const std::string &outputName)
LArCompleteToFlat()
Default constructor:
Helper for the Liquid Argon Calorimeter cell identifiers.
This class implements the ILArShape interface.