ATLAS Offline Software
Loading...
Searching...
No Matches
LArLATOMEBuilderAlg.h
Go to the documentation of this file.
1//Dear emacs, this is -*-c++-*-
2/*
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4*/
5
6#ifndef LARROD_LARLATOMEBUILDERALG_H
7#define LARROD_LARLATOMEBUILDERALG_H
8
9
14
25
26//Event classes
29
31
32 public:
33 LArLATOMEBuilderAlg(const std::string& name, ISvcLocator* pSvcLocator);
34
35 StatusCode initialize() override;
36 StatusCode execute(const EventContext& ctx) const override;
37 StatusCode finalize() override;
38
39
40 private:
41 // event info input:
42 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this,"EventInfo","EventInfo","SG Key of EventInfo object"};
43 //SC digit input:
44 SG::ReadHandleKey<LArDigitContainer> m_digitKey{this, "LArDigitKey","SC", "SG Key of the SC LArDigitContainer"};
45 //LArRawSC output:
46 SG::WriteHandleKey<LArRawSCContainer> m_larRawSCKey{this,"LArRawSCKey","SC_ET_RECO","SG key of the output LArRawSCContainer"};
47
48 //Conditions input:
49 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
50
51 SG::ReadCondHandleKey<ILArPedestal> m_keyPedestalSC{this,"LArPedestalKeySC","LArPedestalSC","SG key of LArPedestal conditions object"};
52 SG::ReadCondHandleKey<ILArOFC> m_keyOFCSC{this,"LArOFCKeySC","LArOFCSC","SG key of LArOFC conditions object"};
53 SG::ReadCondHandleKey<ILArRamp> m_keyRampSC{this,"LArRampKeySC","LArRampSC","SG key of LArRamp conditions object"};
54 SG::ReadCondHandleKey<ILArDAC2uA> m_keyDAC2uASC{this,"LArDAC2uAKeySC","LArDAC2uASC","SG key of LArDAC2uA conditions object"};
55 SG::ReadCondHandleKey<ILAruA2MeV> m_keyuA2MeVSC{this,"LAruA2MeVKeySC","LAruA2MeVSC","SG key of LAruA2MeV conditions object"};
56 SG::ReadCondHandleKey<ILArHVScaleCorr> m_keyHVScaleCorrSC{this,"LArHVScaleCorrKeySC","LArHVScaleCorrSC","SG key of LArHVScaleCorr conditions object"};
57 SG::ReadCondHandleKey<ILArMphysOverMcal> m_keyMphysOverMcalSC{this,"LArMphysOverMcalKeySC","LArMphysOverMcalSC","SG key of LArMphysOverMcal conditions object"};
58
59
60 //The following matters only in the MC case, when we have a 32 sample shapes
61 //or we want to test shifted reco
62 Gaudi::Property<int> m_startSample{this,"startEnergy",0,"the first energy to compute with respect to the BCID"};
63 Gaudi::Property<int> m_nEnergies{this, "nEnergies", 1, "how many energies to compute"};
64
65 Gaudi::Property<bool> m_applyHVCorrection{this, "applyHVCorrection", true, "apply HV correction"};
66 Gaudi::Property<bool> m_applyMphysOverMcal{this, "applyMphysOverMcal", true, "apply MphysOverMcal correction"};
67 Gaudi::Property<bool> m_useR0{this, "useR0", false, "use R0 from Ramp"};
68 Gaudi::Property<bool> m_isADCBas{this, "isADCBas", true, "Digits are ADC BAS"};
69
70
71 //Identifier helper
72 const LArOnlineID_Base* m_onlineId = nullptr;
73
74 static bool floatToInt(float val, int &newval, int hardpoint, int size) ;
75
76};
77
78
79
80#endif
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
Container class for LArDigit.
SG::ReadCondHandleKey< ILArHVScaleCorr > m_keyHVScaleCorrSC
static bool floatToInt(float val, int &newval, int hardpoint, int size)
reproduce LDPB package computation in https://gitlab.cern.ch/atlas-lar-online/onlinelatomedb/-/blob/m...
SG::ReadCondHandleKey< ILArDAC2uA > m_keyDAC2uASC
SG::WriteHandleKey< LArRawSCContainer > m_larRawSCKey
SG::ReadCondHandleKey< ILArPedestal > m_keyPedestalSC
LArLATOMEBuilderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_applyHVCorrection
SG::ReadCondHandleKey< ILArMphysOverMcal > m_keyMphysOverMcalSC
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG::ReadCondHandleKey< ILAruA2MeV > m_keyuA2MeVSC
StatusCode finalize() override
StatusCode execute(const EventContext &ctx) const override
StatusCode initialize() override
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Gaudi::Property< int > m_nEnergies
SG::ReadCondHandleKey< ILArRamp > m_keyRampSC
SG::ReadCondHandleKey< ILArOFC > m_keyOFCSC
Gaudi::Property< bool > m_useR0
SG::ReadHandleKey< LArDigitContainer > m_digitKey
Gaudi::Property< bool > m_applyMphysOverMcal
Gaudi::Property< bool > m_isADCBas
const LArOnlineID_Base * m_onlineId
Gaudi::Property< int > m_startSample
Helper for the Liquid Argon Calorimeter cell identifiers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.