ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecUtils
LArRecUtils
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
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
12
#include "
LArElecCalib/ILArOFC.h
"
13
#include "
LArElecCalib/ILArShape.h
"
14
#include "
CaloIdentifier/CaloGain.h
"
15
#include "
LArRawEvent/LArOFIterResults.h
"
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
18
class
LArOnlineID_Base
;
19
24
25
static
const
InterfaceID
IID_LArOFPeakRecoTool
(
"LArOFPeakRecoTool"
, 1 , 0);
26
27
28
class
LArOFPeakRecoTool
:
public
AthAlgTool
29
30
{
31
public
:
32
33
typedef
LArOFIterResults
Result
;
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
:
63
bool
m_iterate
;
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"
};
66
bool
m_useShape
;
67
bool
m_useShapeDer
;
68
int
m_delayShift
;
69
float
m_samplingPeriod
;
70
bool
m_forceHighGain
;
71
bool
m_isSC
;
72
const
LArOnlineID_Base
*
m_lar_on_id
=
nullptr
;
73
74
};
75
76
77
#endif
AthAlgTool.h
CaloGain.h
ILArOFC.h
ILArShape.h
delay
double delay(std::size_t d)
Definition
JetTrigTimerTest.cxx:11
LArOFIterResults.h
IID_LArOFPeakRecoTool
static const InterfaceID IID_LArOFPeakRecoTool("LArOFPeakRecoTool", 1, 0)
Given a set of multiple samples, this class finds a peak using OFC.
ReadCondHandleKey.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
HWIdentifier
Definition
HWIdentifier.h:13
LArOFIterResults
Definition
LArOFIterResults.h:15
LArOFPeakRecoTool::m_lar_on_id
const LArOnlineID_Base * m_lar_on_id
Definition
LArOFPeakRecoTool.h:72
LArOFPeakRecoTool::m_keyOFC
SG::ReadCondHandleKey< ILArOFC > m_keyOFC
Definition
LArOFPeakRecoTool.h:64
LArOFPeakRecoTool::peak
LArOFIterResults peak(const std::vector< short > &samples, HWIdentifier chID, CaloGain::CaloGain gain, int delay) const
Definition
LArOFPeakRecoTool.cxx:74
LArOFPeakRecoTool::m_iterate
bool m_iterate
Definition
LArOFPeakRecoTool.h:63
LArOFPeakRecoTool::m_delayShift
int m_delayShift
Definition
LArOFPeakRecoTool.h:68
LArOFPeakRecoTool::m_keyShape
SG::ReadCondHandleKey< ILArShape > m_keyShape
Definition
LArOFPeakRecoTool.h:65
LArOFPeakRecoTool::ERROR
@ ERROR
Definition
LArOFPeakRecoTool.h:60
LArOFPeakRecoTool::~LArOFPeakRecoTool
virtual ~LArOFPeakRecoTool()
Definition
LArOFPeakRecoTool.cxx:40
LArOFPeakRecoTool::LArOFPeakRecoTool
LArOFPeakRecoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
LArOFPeakRecoTool.cxx:21
LArOFPeakRecoTool::m_samplingPeriod
float m_samplingPeriod
Definition
LArOFPeakRecoTool.h:69
LArOFPeakRecoTool::interfaceID
static const InterfaceID & interfaceID()
Definition
LArOFPeakRecoTool.h:43
LArOFPeakRecoTool::m_useShapeDer
bool m_useShapeDer
Definition
LArOFPeakRecoTool.h:67
LArOFPeakRecoTool::Result
LArOFIterResults Result
Definition
LArOFPeakRecoTool.h:33
LArOFPeakRecoTool::m_isSC
bool m_isSC
Definition
LArOFPeakRecoTool.h:71
LArOFPeakRecoTool::initialize
virtual StatusCode initialize()
Definition
LArOFPeakRecoTool.cxx:43
LArOFPeakRecoTool::m_useShape
bool m_useShape
Definition
LArOFPeakRecoTool.h:66
LArOFPeakRecoTool::m_forceHighGain
bool m_forceHighGain
Definition
LArOFPeakRecoTool.h:70
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition
LArOnlineID_Base.h:97
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
CaloGain::CaloGain
CaloGain
Definition
CaloGain.h:11
type
Generated on
for ATLAS Offline Software by
1.17.0