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#include <Gaudi/Property.h>
9#ifndef LARCALIBTOOLS_LARCOMPLETETOFLAT_H
10#define LARCALIBTOOLS_LARCOMPLETETOFLAT_H 1
11
12#include <string>
16#include "GaudiKernel/ToolHandle.h"
19
20
21
22class LArOnlineID_Base;
25class ILArPedestal;
26class ILArOFC;
27class ILArRamp;
28class ILArNoise;
30class ILArDAC2uA;
31class ILAruA2MeV;
33
35{
36
38 // Public methods:
40 public:
42 LArCompleteToFlat( const std::string& name, ISvcLocator* pSvcLocator );
43
46
47 // Athena algorithm's Hooks
48 virtual StatusCode initialize() override;
49 virtual StatusCode execute(const EventContext&) const override {return StatusCode::SUCCESS;}
50 virtual StatusCode stop() override;
51
52 private:
55
56
58 const std::string& outputName, const unsigned nGain, const bool withFCAL=true);
59 CondAttrListCollection* DAC2uAFlat(const ILArDAC2uA* input, const std::string& outputName);
60 CondAttrListCollection* uA2MeVFlat(const ILAruA2MeV* input, const std::string& outputName);
61 CondAttrListCollection* pedestalFlat(const ILArPedestal* input, const std::string& outputName);
62 CondAttrListCollection* rampFlat(const ILArRamp* input, const std::string& outputName);
63 CondAttrListCollection* ofcFlat(const ILArOFC* input, const std::string& outputName, const LArfSamplSC* weights=nullptr);
64 CondAttrListCollection* shapeFlat(const LArShapeComplete* input, const std::string& outputName);
65 CondAttrListCollection* noiseFlat(const ILArNoise* input, const std::string& outputName);
66 AthenaAttributeList* DSPThresholdsFlat(const LArDSPThresholdsComplete* input, const std::string& outputName);
67
68
69 void errIfConnected(const HWIdentifier chid, const int gain, const char* objName, const char* message=0) const;
70
71 unsigned m_hashMax = 0;
72 const LArOnlineID_Base* m_onlineID = nullptr;
73
74 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
75 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeySC{this,"CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
76 SG::ReadCondHandleKey<LArfSamplSC> m_weightsKeySC{this,"WeightsSCKey","","SG Key of weights object"};
77
79 StringProperty m_uA2MeVInput { this, "uA2MeVInput", "" }; // LAruA2MeV
80 StringProperty m_DAC2uAInput { this, "DAC2uAVInput", "" }; // LArDAC2uA
81 StringProperty m_HVScaleCorrInput { this, "HVScaleCorrInput", "" }; // LArHVScaleCorr
82 StringProperty m_PedestalInput { this, "PedestalInput", "" }; // Pedestal
83 StringProperty m_RampInput { this, "RampInput", "" }; // LArRamp
84 StringProperty m_MphysOverMcalInput { this, "MphysOverMcalInput", "" }; // LArMphysOverMcal
85 StringProperty m_noiseInput{this,"NoiseInput",""};
86 StringProperty m_flatName {this, "FolderBase","/LAR/ElecCalibFlat"};
87 std::string m_OFCInput;
88 std::string m_OFCCaliInput;
89 std::string m_ShapeInput;
91
92 // DSPThreshold set name
93 std::string m_nameOfSet;
94
95 BooleanProperty m_isSC{ this, "isSC", false };
96 IntegerProperty m_nGains{this,"nGains",3};
99};
100
101#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
StringProperty m_flatName
std::string m_OFCCaliInput
StringProperty m_noiseInput
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
IntegerProperty m_nGains
StringProperty m_PedestalInput
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
CondAttrListCollection * noiseFlat(const ILArNoise *input, const std::string &outputName)
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.