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
11
17
19
24
25static const InterfaceID IID_LArOFPeakRecoTool("LArOFPeakRecoTool", 1 , 0);
26
27
29
30{
31 public:
32
34 // constructor
35 LArOFPeakRecoTool(const std::string& type,
36 const std::string& name,
37 const IInterface* parent);
38
39 // destructor
40 virtual ~LArOFPeakRecoTool();
41
42 // Retrieve interface ID
43 static const InterfaceID& interfaceID() { return IID_LArOFPeakRecoTool;}
44
45 LArOFIterResults peak (const std::vector<short>& samples, HWIdentifier chID, CaloGain::CaloGain gain, int delay) const;
46
47 LArOFIterResults peak(const std::vector<float>& samples, // raw data after pedestal subtraction
48 const HWIdentifier chID, // online channel id
49 const CaloGain::CaloGain gain, // gain
50 const float delayIn, // initial delay for Shape and OFC
51 const unsigned nIter=0, // number of iteration
52 const unsigned npeak=2, // initial peak position.
53 unsigned peak_low=2, // lower limit for peak position
54 unsigned peak_high=2 // upper limit for peak position
55 ) const;
56
57 // initialize and finalize methods
58 virtual StatusCode initialize();
59
60 enum { ERROR = -99999999 } ;
61
62 private:
64 SG::ReadCondHandleKey<ILArOFC> m_keyOFC {this, "OFCKey", "LArOFC", "SG key for OFC object"};
65 SG::ReadCondHandleKey<ILArShape> m_keyShape {this, "ShapeKey", "LArShape", "SG key for Shape object"};
71 bool m_isSC;
72 const LArOnlineID_Base* m_lar_on_id = nullptr;
73
74};
75
76
77#endif
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.