ATLAS Offline Software
LArRawChannelBuilderSCAlg.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 /*
3  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef LARROD_LARRAWCHANNELBUILDERSCALG_H
7 #define LARROD_LARRAWCHANNELBUILDERSCALG_H
8 
9 
11 #include "StoreGate/ReadHandle.h"
12 #include "StoreGate/WriteHandle.h"
14 
18 #include "LArElecCalib/ILArOFC.h"
19 #include "LArElecCalib/ILArShape.h"
23 
25 //Event classes
26 class LArDigitContainer;
27 class CaloCellContainer;
30 
32 
33  public:
34  using AthReentrantAlgorithm::AthReentrantAlgorithm;
35 
36  StatusCode initialize() override;
37  StatusCode execute(const EventContext& ctx) const override;
38  StatusCode finalize() override;
39 
40 
41  private:
42  //Event input:
43  SG::ReadHandleKey<LArDigitContainer> m_digitKey{this, "LArDigitKey","LArDigitSCL2",
44  "SG Key of LArDigitContaiiner"};
45  //Event output:
46  SG::WriteHandleKey<CaloCellContainer> m_cellKey{this,"CaloCellKey","SCellnoBCID",
47  "SG key of the output CaloCellContainer"};
48 
49  //Conditions input:
50  SG::ReadCondHandleKey<ILArPedestal> m_pedestalKey{this,"PedestalKey","LArPedestalSC","SG Key of Pedestal conditions object"};
51  SG::ReadCondHandleKey<LArADC2MeV> m_adc2MeVKey{this,"ADC2MeVKey","LArADC2MeVSC","SG Key of ADC2MeV conditions object"};
52  SG::ReadCondHandleKey<ILArOFC> m_ofcKey{this,"OFCKey","LArOFCSC","SG Key of OFC conditions object"};
53  SG::ReadCondHandleKey<ILArShape> m_shapeKey{this,"ShapeKey","LArShapeSC","SG Key of Shape conditions object"};
54 
55 
56  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
57 
59  SG::ReadCondHandleKey<LArBadChannelCont> m_bcContKey{this, "LArBadChannelKey", "LArBadChannelSC", "Key of the LArBadChannelCont SC" };
60 
61  //Other jobOptions:
62  Gaudi::Property<float> m_eCutFortQ{this,"ECutFortQ",256.0,"Time and Quality will be computed only for channels with E above this value"};
63  //This flag decides if we compute Q and t for cells with negative energy
64  Gaudi::Property<bool> m_absECutFortQ{this,"absECut",true,"Cut on fabs(E) for Q and t computation"};
65  Gaudi::Property<bool> m_useShapeDer{this,"useShapeDer",true,"Use shape derivative in Q-factor computation"};
66 
67  //The following matters only in the MC case, when we have a 32 sample shapes
68  Gaudi::Property<int> m_firstSample{this,"firstSample",0,"first of the 32 sampels of the MC shape to be used"};
69 
70 
71  //Identifier helper
73 
74  // Super Cell DD manager key
76  this,"CaloSuperCellDetDescrManager","CaloSuperCellDetDescrManager","SG key of the resulting CaloSuperCellDetDescrManager"};
77 };
78 
79 
80 
81 #endif
LArRawChannelBuilderSCAlg::initialize
StatusCode initialize() override
Definition: LArRawChannelBuilderSCAlg.cxx:16
LArRawChannelBuilderSCAlg::m_pedestalKey
SG::ReadCondHandleKey< ILArPedestal > m_pedestalKey
Definition: LArRawChannelBuilderSCAlg.h:50
LArRawChannelBuilderSCAlg::m_firstSample
Gaudi::Property< int > m_firstSample
Definition: LArRawChannelBuilderSCAlg.h:68
LArRawChannelBuilderSCAlg::m_absECutFortQ
Gaudi::Property< bool > m_absECutFortQ
Definition: LArRawChannelBuilderSCAlg.h:64
LArRawChannelBuilderSCAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArRawChannelBuilderSCAlg.h:56
ILArOFC.h
SG::ReadHandleKey< LArDigitContainer >
AthenaAttributeList.h
ReadCondHandle.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
CaloSuperCellDetDescrManager
Definition: CaloDetDescrManager.h:490
LArBadChannelCont.h
LArADC2MeV.h
WriteHandle.h
Handle class for recording to StoreGate.
LArRawChannelBuilderSCAlg::m_digitKey
SG::ReadHandleKey< LArDigitContainer > m_digitKey
Definition: LArRawChannelBuilderSCAlg.h:43
LArOnOffIdMapping.h
SG::WriteHandleKey< CaloCellContainer >
LArDSPThresholdsComplete.h
A LArRawConditionsContainer holding thresholds used by the DSP.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRawChannelBuilderSCAlg::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Definition: LArRawChannelBuilderSCAlg.h:75
LArRawChannelBuilderSCAlg::m_eCutFortQ
Gaudi::Property< float > m_eCutFortQ
Definition: LArRawChannelBuilderSCAlg.h:62
LArRawChannelBuilderSCAlg::m_onlineId
const LArOnline_SuperCellID * m_onlineId
Definition: LArRawChannelBuilderSCAlg.h:72
LArRawChannelBuilderSCAlg::m_cellKey
SG::WriteHandleKey< CaloCellContainer > m_cellKey
Definition: LArRawChannelBuilderSCAlg.h:46
AthReentrantAlgorithm.h
ILArShape.h
LArRawChannelBuilderSCAlg::m_adc2MeVKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2MeVKey
Definition: LArRawChannelBuilderSCAlg.h:51
LArRawChannelBuilderSCAlg::m_useShapeDer
Gaudi::Property< bool > m_useShapeDer
Definition: LArRawChannelBuilderSCAlg.h:65
LArRawChannelBuilderSCAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: LArRawChannelBuilderSCAlg.cxx:36
LArRawChannelBuilderSCAlg::m_ofcKey
SG::ReadCondHandleKey< ILArOFC > m_ofcKey
Definition: LArRawChannelBuilderSCAlg.h:52
LArRawChannelBuilderSCAlg::m_shapeKey
SG::ReadCondHandleKey< ILArShape > m_shapeKey
Definition: LArRawChannelBuilderSCAlg.h:53
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
LArOnline_SuperCellID
Definition: LArOnline_SuperCellID.h:20
LArRawChannelBuilderSCAlg::finalize
StatusCode finalize() override
Definition: LArRawChannelBuilderSCAlg.cxx:32
SG::ReadCondHandleKey< ILArPedestal >
ILArPedestal.h
LArRawChannelBuilderSCAlg
Definition: LArRawChannelBuilderSCAlg.h:31
LArDigitContainer
Container class for LArDigit.
Definition: LArDigitContainer.h:24
LArRawChannelBuilderSCAlg::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Bad Channel masking for Super-Cells.
Definition: LArRawChannelBuilderSCAlg.h:59
ReadHandle.h
Handle class for reading from StoreGate.