ATLAS Offline Software
Loading...
Searching...
No Matches
LArOFPeakRecoTool.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#ifndef LARCALIBUTILS_LAROFPEAKRECOTOOL_H
8#define LARCALIBUTILS_LAROFPEAKRECOTOOL_H
9
12
18
20
25
26static const InterfaceID IID_LArOFPeakRecoTool("LArOFPeakRecoTool", 1 , 0);
27
28
30
31{
32 public:
33
35 // constructor
36 LArOFPeakRecoTool(const std::string& type,
37 const std::string& name,
38 const IInterface* parent);
39
40 // destructor
41 virtual ~LArOFPeakRecoTool();
42
43 // Retrieve interface ID
44 static const InterfaceID& interfaceID() { return IID_LArOFPeakRecoTool;}
45
46 LArOFIterResults peak (const std::vector<short>& samples, HWIdentifier chID, CaloGain::CaloGain gain, int delay) const;
47
48 LArOFIterResults peak(const std::vector<float>& samples, // raw data after pedestal subtraction
49 const HWIdentifier chID, // online channel id
50 const CaloGain::CaloGain gain, // gain
51 const float delayIn, // initial delay for Shape and OFC
52 const unsigned nIter=0, // number of iteration
53 const unsigned npeak=2, // initial peak position.
54 unsigned peak_low=2, // lower limit for peak position
55 unsigned peak_high=2 // upper limit for peak position
56 ) const;
57
58 // initialize and finalize methods
59 virtual StatusCode initialize();
60
61 enum { ERROR = -99999999 } ;
62
63 private:
65 SG::ReadCondHandleKey<ILArOFC> m_keyOFC {this, "OFCKey", "LArOFC", "SG key for OFC object"};
66 SG::ReadCondHandleKey<ILArShape> m_keyShape {this, "ShapeKey", "LArShape", "SG key for Shape object"};
72 bool m_isSC;
73 const LArOnlineID_Base* m_lar_on_id = nullptr;
74
75};
76
77
78#endif
defines and typedefs for IOVSvc
double delay(std::size_t d)
static const InterfaceID IID_LArOFPeakRecoTool("LArOFPeakRecoTool", 1, 0)
Given a set of multiple samples, this class finds a peak using OFC.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
const LArOnlineID_Base * m_lar_on_id
SG::ReadCondHandleKey< ILArOFC > m_keyOFC
LArOFIterResults peak(const std::vector< short > &samples, HWIdentifier chID, CaloGain::CaloGain gain, int delay) const
SG::ReadCondHandleKey< ILArShape > m_keyShape
LArOFPeakRecoTool(const std::string &type, const std::string &name, const IInterface *parent)
static const InterfaceID & interfaceID()
LArOFIterResults Result
virtual StatusCode initialize()
Helper for the Liquid Argon Calorimeter cell identifiers.