ATLAS Offline Software
Loading...
Searching...
No Matches
LArCompleteToFlat.h
Go to the documentation of this file.
1//-*- C++ -*-
2
3/*
4 Copyright (C) 2002-2026 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 virtual StatusCode initialize() override;
47 virtual StatusCode execute(const EventContext&) const override {return StatusCode::SUCCESS;}
48 virtual StatusCode stop() override;
49
50 private:
53
54
56 const std::string& outputName, const unsigned nGain, const bool withFCAL=true);
57 CondAttrListCollection* DAC2uAFlat(const ILArDAC2uA* input, const std::string& outputName);
58 CondAttrListCollection* uA2MeVFlat(const ILAruA2MeV* input, const std::string& outputName);
59 CondAttrListCollection* pedestalFlat(const ILArPedestal* input, const std::string& outputName);
60 CondAttrListCollection* rampFlat(const ILArRamp* input, const std::string& outputName);
61 CondAttrListCollection* ofcFlat(const ILArOFC* input, const std::string& outputName, const LArfSamplSC* weights=nullptr);
62 CondAttrListCollection* shapeFlat(const LArShapeComplete* input, const std::string& outputName);
63 AthenaAttributeList* DSPThresholdsFlat(const LArDSPThresholdsComplete* input, const std::string& outputName);
64
65
66 void errIfConnected(const HWIdentifier chid, const int gain, const char* objName, const char* message=0) const;
67
68 unsigned m_hashMax = 0;
69 const LArOnlineID_Base* m_onlineID = nullptr;
70
71 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
72 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeySC{this,"CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
73 SG::ReadCondHandleKey<LArfSamplSC> m_weightsKeySC{this,"WeightsSCKey","","SG Key of weights object"};
74
76 StringProperty m_uA2MeVInput { this, "uA2MeVInput", "" }; // LAruA2MeV
77 StringProperty m_DAC2uAInput { this, "DAC2uAVInput", "" }; // LArDAC2uA
78 StringProperty m_HVScaleCorrInput { this, "HVScaleCorrInput", "" }; // LArHVScaleCorr
79 StringProperty m_PedestalInput { this, "PedestalInput", "" }; // Pedestal
80 StringProperty m_RampInput { this, "RampInput", "" }; // LArRamp
81 StringProperty m_MphysOverMcalInput { this, "MphysOverMcalInput", "" }; // LArMphysOverMcal
82 std::string m_OFCInput;
83 std::string m_OFCCaliInput;
84 std::string m_ShapeInput;
86
87 // DSPThreshold set name
88 std::string m_nameOfSet;
89
90 BooleanProperty m_isSC = { this, "isSC", false };
93};
94
95#endif //> !LARCALIBTOOLS_LARCOMPLETETOFLAT_H
An algorithm that can be simultaneously executed in multiple threads.
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)
virtual StatusCode execute(const EventContext &) const override
std::string m_OFCCaliInput
StringProperty m_DAC2uAInput
CondAttrListCollection * ofcFlat(const ILArOFC *input, const std::string &outputName, const LArfSamplSC *weights=nullptr)
const LArOnlineID_Base * m_onlineID
virtual ~LArCompleteToFlat()
Destructor:
StringProperty m_uA2MeVInput
InputSGKeys.
StringProperty m_MphysOverMcalInput
virtual StatusCode stop() override
virtual StatusCode initialize() override
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)
BooleanProperty m_isSC
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
void errIfConnected(const HWIdentifier chid, const int gain, const char *objName, const char *message=0) const
StringProperty m_RampInput
StringProperty m_PedestalInput
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:
LArCompleteToFlat()=delete
Default constructor:
CondAttrListCollection * pedestalFlat(const ILArPedestal *input, const std::string &outputName)
StringProperty m_HVScaleCorrInput
CondAttrListCollection * shapeFlat(const LArShapeComplete *input, const std::string &outputName)
CondAttrListCollection * DAC2uAFlat(const ILArDAC2uA *input, const std::string &outputName)
Helper for the Liquid Argon Calorimeter cell identifiers.
This class implements the ILArShape interface.