ATLAS Offline Software
LArCaliWaveAverage.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef LARCALIWAVEAVERAGE_H
9 #define LARCALIWAVEAVERAGE_H
10 
12 #include "StoreGate/StoreGateSvc.h"
20 
21 #include <string>
22 
24 
25 public:
26 
27  LArCaliWaveAverage (const std::string& name, ISvcLocator* pSvcLocator);
29 
30  StatusCode initialize() override final;
31  StatusCode execute() override final;
32  StatusCode stop() override final;
33  StatusCode finalize()override final {return StatusCode::SUCCESS;}
34 
35 private:
36 
37  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
38  SG::ReadCondHandleKey<LArCaliWaveContainer> m_keyInput{this, "KeyInput", "LArCaliWave", "SG key of input cali wave container"};
39  SG::WriteCondHandleKey<LArCaliWaveContainer> m_keyOutputCorr{this, "KeyOutputCorr", "LArCaliWaveCorr", "SG key for corrected container"};
40  SG::WriteCondHandleKey<LArCaliWaveContainer> m_keyOutputSymm{this, "KeyOutputSymm", "LArCaliWaveSymm", "SG key for symmetrized container"};
41 
43 
44  const LArEM_ID* m_emId;
47 
48  std::string m_groupingType;
49 
50  std::vector<unsigned> m_chids;
51 
52  std::vector<HWIdentifier> SymmetricChannels(HWIdentifier ChID,const std::vector<unsigned>& ChannelsNotToUse, const LArOnOffIdMapping* cabling );
53  LArCaliWave WaveAverage(const std::vector<LArCaliWave>& ToBeAveraged);
54 
55 };
56 
57 #endif
LArCaliWaveAverage::LArCaliWaveAverage
LArCaliWaveAverage(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArCaliWaveAverage.cxx:20
LArEM_ID.h
LArCaliWaveAverage::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArCaliWaveAverage.h:42
LArCaliWaveAverage::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCaliWaveAverage.h:37
LArCaliWaveContainer.h
LArCaliWaveAverage
Definition: LArCaliWaveAverage.h:23
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
WriteCondHandleKey.h
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
HWIdentifier
Definition: HWIdentifier.h:13
LArCaliWave.h
LArCaliWaveAverage::m_emId
const LArEM_ID * m_emId
Definition: LArCaliWaveAverage.h:44
AthAlgorithm.h
LArCaliWave
Definition: LArCaliWave.h:44
LArOnOffIdMapping.h
LArCaliWaveAverage::m_chids
std::vector< unsigned > m_chids
Definition: LArCaliWaveAverage.h:50
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArCaliWaveAverage::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArCaliWaveAverage.h:46
LArCaliWaveAverage::initialize
StatusCode initialize() override final
Definition: LArCaliWaveAverage.cxx:34
LArCaliWaveAverage::m_keyOutputSymm
SG::WriteCondHandleKey< LArCaliWaveContainer > m_keyOutputSymm
Definition: LArCaliWaveAverage.h:40
LArCaliWaveAverage::~LArCaliWaveAverage
~LArCaliWaveAverage()
LArCaliWaveAverage::m_keyInput
SG::ReadCondHandleKey< LArCaliWaveContainer > m_keyInput
Definition: LArCaliWaveAverage.h:38
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
HWIdentifier.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArCaliWaveAverage::m_hecId
const LArHEC_ID * m_hecId
Definition: LArCaliWaveAverage.h:45
LArOnlineID
Definition: LArOnlineID.h:20
LArCaliWaveAverage::m_groupingType
std::string m_groupingType
Definition: LArCaliWaveAverage.h:48
LArCaliWaveAverage::stop
StatusCode stop() override final
Definition: LArCaliWaveAverage.cxx:75
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArCaliWaveAverage::m_keyOutputCorr
SG::WriteCondHandleKey< LArCaliWaveContainer > m_keyOutputCorr
Definition: LArCaliWaveAverage.h:39
LArCaliWaveAverage::WaveAverage
LArCaliWave WaveAverage(const std::vector< LArCaliWave > &ToBeAveraged)
Definition: LArCaliWaveAverage.cxx:331
LArCaliWaveAverage::finalize
StatusCode finalize() override final
Definition: LArCaliWaveAverage.h:33
SG::WriteCondHandleKey< LArCaliWaveContainer >
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArCaliWaveAverage::execute
StatusCode execute() override final
Definition: LArCaliWaveAverage.cxx:70
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
StoreGateSvc.h
LArCaliWaveAverage::SymmetricChannels
std::vector< HWIdentifier > SymmetricChannels(HWIdentifier ChID, const std::vector< unsigned > &ChannelsNotToUse, const LArOnOffIdMapping *cabling)
Definition: LArCaliWaveAverage.cxx:227
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20