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"
22 
24 //Event classes
25 class LArDigitContainer;
26 class CaloCellContainer;
29 
31 
32  public:
34 
35  StatusCode initialize() override;
36  StatusCode execute(const EventContext& ctx) const override;
37  StatusCode finalize() override;
38 
39 
40  private:
41  //Event input:
42  SG::ReadHandleKey<LArDigitContainer> m_digitKey{this, "LArDigitKey","LArDigitSCL2",
43  "SG Key of LArDigitContaiiner"};
44  //Event output:
45  SG::WriteHandleKey<CaloCellContainer> m_cellKey{this,"CaloCellKey","SCellnoBCID",
46  "SG key of the output CaloCellContainer"};
47 
48  //Conditions input:
49  SG::ReadCondHandleKey<ILArPedestal> m_pedestalKey{this,"PedestalKey","LArPedestalSC","SG Key of Pedestal conditions object"};
50  SG::ReadCondHandleKey<LArADC2MeV> m_adc2MeVKey{this,"ADC2MeVKey","LArADC2MeVSC","SG Key of ADC2MeV conditions object"};
51  SG::ReadCondHandleKey<ILArOFC> m_ofcKey{this,"OFCKey","LArOFCSC","SG Key of OFC conditions object"};
52  SG::ReadCondHandleKey<ILArShape> m_shapeKey{this,"ShapeKey","LArShapeSC","SG Key of Shape conditions object"};
53 
54 
55  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
56 
57  //Other jobOptions:
58  Gaudi::Property<float> m_eCutFortQ{this,"ECutFortQ",256.0,"Time and Quality will be computed only for channels with E above this value"};
59  //This flag decides if we compute Q and t for cells with negative energy
60  Gaudi::Property<bool> m_absECutFortQ{this,"absECut",true,"Cut on fabs(E) for Q and t computation"};
61  Gaudi::Property<bool> m_useShapeDer{this,"useShapeDer",true,"Use shape derivative in Q-factor computation"};
62 
63  //The following matters only in the MC case, when we have a 32 sample shapes
64  Gaudi::Property<int> m_firstSample{this,"firstSample",0,"first of the 32 sampels of the MC shape to be used"};
65 
66 
67  //Identifier helper
69 
70  // Super Cell DD manager key
72  this,"CaloSuperCellDetDescrManager","CaloSuperCellDetDescrManager","SG key of the resulting CaloSuperCellDetDescrManager"};
73 };
74 
75 
76 
77 #endif
LArRawChannelBuilderSCAlg::initialize
StatusCode initialize() override
Definition: LArRawChannelBuilderSCAlg.cxx:16
LArRawChannelBuilderSCAlg::m_pedestalKey
SG::ReadCondHandleKey< ILArPedestal > m_pedestalKey
Definition: LArRawChannelBuilderSCAlg.h:49
LArRawChannelBuilderSCAlg::m_firstSample
Gaudi::Property< int > m_firstSample
Definition: LArRawChannelBuilderSCAlg.h:64
LArRawChannelBuilderSCAlg::m_absECutFortQ
Gaudi::Property< bool > m_absECutFortQ
Definition: LArRawChannelBuilderSCAlg.h:60
LArRawChannelBuilderSCAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArRawChannelBuilderSCAlg.h:55
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:83
CaloSuperCellDetDescrManager
Definition: CaloDetDescrManager.h:490
LArADC2MeV.h
WriteHandle.h
Handle class for recording to StoreGate.
LArRawChannelBuilderSCAlg::m_digitKey
SG::ReadHandleKey< LArDigitContainer > m_digitKey
Definition: LArRawChannelBuilderSCAlg.h:42
LArOnOffIdMapping.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
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:71
LArRawChannelBuilderSCAlg::m_eCutFortQ
Gaudi::Property< float > m_eCutFortQ
Definition: LArRawChannelBuilderSCAlg.h:58
LArRawChannelBuilderSCAlg::m_onlineId
const LArOnline_SuperCellID * m_onlineId
Definition: LArRawChannelBuilderSCAlg.h:68
LArRawChannelBuilderSCAlg::m_cellKey
SG::WriteHandleKey< CaloCellContainer > m_cellKey
Definition: LArRawChannelBuilderSCAlg.h:45
AthReentrantAlgorithm.h
ILArShape.h
LArRawChannelBuilderSCAlg::m_adc2MeVKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2MeVKey
Definition: LArRawChannelBuilderSCAlg.h:50
LArRawChannelBuilderSCAlg::m_useShapeDer
Gaudi::Property< bool > m_useShapeDer
Definition: LArRawChannelBuilderSCAlg.h:61
LArRawChannelBuilderSCAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: LArRawChannelBuilderSCAlg.cxx:35
LArRawChannelBuilderSCAlg::m_ofcKey
SG::ReadCondHandleKey< ILArOFC > m_ofcKey
Definition: LArRawChannelBuilderSCAlg.h:51
LArRawChannelBuilderSCAlg::m_shapeKey
SG::ReadCondHandleKey< ILArShape > m_shapeKey
Definition: LArRawChannelBuilderSCAlg.h:52
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
LArOnline_SuperCellID
Definition: LArOnline_SuperCellID.h:20
LArRawChannelBuilderSCAlg::finalize
StatusCode finalize() override
Definition: LArRawChannelBuilderSCAlg.cxx:31
SG::ReadCondHandleKey< ILArPedestal >
ILArPedestal.h
LArRawChannelBuilderSCAlg
Definition: LArRawChannelBuilderSCAlg.h:30
LArDigitContainer
Container class for LArDigit.
Definition: LArDigitContainer.h:24
ReadHandle.h
Handle class for reading from StoreGate.