ATLAS Offline Software
LArRawChannelSimpleBuilder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
14 #ifndef LARRAWCHANNELSIMPLEBUILDER
15 #define LARRAWCHANNELSIMPLEBUILDER
16 
18 #include "GaudiKernel/ToolHandle.h"
30 
32 class LArOnlineID;
33 
34 
36 {
37 
38 public:
39 
40  LArRawChannelSimpleBuilder (const std::string& name, ISvcLocator* pSvcLocator);
41  virtual StatusCode initialize() override;
42  virtual StatusCode execute(const EventContext& ctx) const override;
43  virtual StatusCode finalize() override;
44 
45 
46 private:
47  //Services & Tools
48  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
50  { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" };
51  const LArEM_ID* m_emId;
55 
56  ToolHandle<LArParabolaPeakRecoTool> m_peakParabolaTool;
57 
58  //Algo-properties
60  { this, "DataLocation", "FREE", "" };
62  { this, "LArRawChannelContainerName", "LArRawChannels", "" };
64  std::string m_mode;
65  std::string m_FCALmodeTime;
70 
71  float m_ADCtoMeVFCAL[3]{};
72  float m_ADCtoMeVHEC[2]{};
73  float m_ADCtoMeVEMECInner[2]{};
74  float m_ADCtoMeVEMECOuter[4]{};
75  float m_ADCtoMeVEMB[4]{};
76 
77  unsigned int m_iPedestal;
78 };
79 
80 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArRawChannelSimpleBuilder::m_ChannelContainerName
SG::WriteHandleKey< LArRawChannelContainer > m_ChannelContainerName
Definition: LArRawChannelSimpleBuilder.h:62
LArRawChannelSimpleBuilder::m_cubicAdcCut
float m_cubicAdcCut
Definition: LArRawChannelSimpleBuilder.h:66
LArEM_ID.h
LArRawChannelSimpleBuilder::m_averageScaleEM
float m_averageScaleEM
Definition: LArRawChannelSimpleBuilder.h:69
LArRawChannelSimpleBuilder::m_peakParabolaTool
ToolHandle< LArParabolaPeakRecoTool > m_peakParabolaTool
Definition: LArRawChannelSimpleBuilder.h:56
LArRawChannelSimpleBuilder::m_adc2mevKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
Definition: LArRawChannelSimpleBuilder.h:50
LArRawChannelSimpleBuilder::m_ADCtoMeVFCAL
float m_ADCtoMeVFCAL[3]
Definition: LArRawChannelSimpleBuilder.h:71
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArRawChannelSimpleBuilder::m_ADCtoMeVEMB
float m_ADCtoMeVEMB[4]
Definition: LArRawChannelSimpleBuilder.h:75
SG::ReadHandleKey< LArDigitContainer >
LArHEC_ID.h
LArRawChannelSimpleBuilder::m_ADCtoMeVHEC
float m_ADCtoMeVHEC[2]
Definition: LArRawChannelSimpleBuilder.h:72
LArRawChannelSimpleBuilder::initialize
virtual StatusCode initialize() override
Definition: LArRawChannelSimpleBuilder.cxx:71
LArRawChannelSimpleBuilder::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArRawChannelSimpleBuilder.h:48
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArRawChannelSimpleBuilder::m_usePedestalDB
bool m_usePedestalDB
Definition: LArRawChannelSimpleBuilder.h:67
LArRawChannelSimpleBuilder::m_ADCtoMeVEMECOuter
float m_ADCtoMeVEMECOuter[4]
Definition: LArRawChannelSimpleBuilder.h:74
LArRawChannelSimpleBuilder::m_imaxSamp
int m_imaxSamp
Definition: LArRawChannelSimpleBuilder.h:63
LArADC2MeV.h
LArOnOffIdMapping.h
LArRawChannelSimpleBuilder::m_iPedestal
unsigned int m_iPedestal
Definition: LArRawChannelSimpleBuilder.h:77
SG::WriteHandleKey< LArRawChannelContainer >
LArRawChannelSimpleBuilder::m_useRampDB
bool m_useRampDB
Definition: LArRawChannelSimpleBuilder.h:67
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRawChannelSimpleBuilder::m_averageSamplesEM
int m_averageSamplesEM
Definition: LArRawChannelSimpleBuilder.h:68
LArRawChannelSimpleBuilder::m_hecId
const LArHEC_ID * m_hecId
Definition: LArRawChannelSimpleBuilder.h:53
LArRawChannelSimpleBuilder::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArRawChannelSimpleBuilder.h:52
LArRawChannelSimpleBuilder::m_averageSamplesFCAL
int m_averageSamplesFCAL
Definition: LArRawChannelSimpleBuilder.h:68
LArRawChannelSimpleBuilder::m_ADCtoMeVEMECInner
float m_ADCtoMeVEMECInner[2]
Definition: LArRawChannelSimpleBuilder.h:73
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArOnlineID
Definition: LArOnlineID.h:20
LArDigitContainer.h
LArRawChannelSimpleBuilder::m_emId
const LArEM_ID * m_emId
Definition: LArRawChannelSimpleBuilder.h:51
LArRawChannelSimpleBuilder::LArRawChannelSimpleBuilder
LArRawChannelSimpleBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArRawChannelSimpleBuilder.cxx:24
LArRawChannelSimpleBuilder::m_mode
std::string m_mode
Definition: LArRawChannelSimpleBuilder.h:64
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArFCAL_ID.h
LArRawChannelSimpleBuilder
CTB simplified LArRawChannelBuilder using hardcoded calib. constants.
Definition: LArRawChannelSimpleBuilder.h:36
LArRawChannelSimpleBuilder::m_averageSamplesHEC
int m_averageSamplesHEC
Definition: LArRawChannelSimpleBuilder.h:68
LArRawChannelSimpleBuilder::m_FCALmodeTime
std::string m_FCALmodeTime
Definition: LArRawChannelSimpleBuilder.h:65
LArParabolaPeakRecoTool.h
LArRawChannelSimpleBuilder::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArRawChannelSimpleBuilder.h:54
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArRawChannelSimpleBuilder::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: LArRawChannelSimpleBuilder.cxx:104
LArRawChannelSimpleBuilder::m_averageScaleFCAL
float m_averageScaleFCAL
Definition: LArRawChannelSimpleBuilder.h:69
LArRawChannelSimpleBuilder::finalize
virtual StatusCode finalize() override
Definition: LArRawChannelSimpleBuilder.cxx:584
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
LArRawChannelSimpleBuilder::m_averageScaleHEC
float m_averageScaleHEC
Definition: LArRawChannelSimpleBuilder.h:69
LArRawChannelSimpleBuilder::m_DataLocation
SG::ReadHandleKey< LArDigitContainer > m_DataLocation
Definition: LArRawChannelSimpleBuilder.h:60
LArRawChannelContainer.h
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition: LArRawChannelContainer.h:26