ATLAS Offline Software
ForwardDetectors
ZDC
ZdcRec
ZdcRec
ZdcSignalSinc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
* Reconstruction Function for the Time and energy in the ZDC from the ppm counts in the different time slices
7
* Author :: Andrei Poblaguev (08-08-2010)
8
* Details on returned error codes and reconstruction are described in the file "ZdcRecAnalysisOff.h"
9
*/
10
11
12
#include <math.h>
13
14
class
ZdcSignalSinc
{
15
public
:
16
enum
Status
{
e_OK
=0,
e_noData
,
e_wrongFrac
,
e_Overflow
,
17
e_wrongSignal
,
e_noSignal
,
e_localMinimum
};
18
19
ZdcSignalSinc
(
int
);
20
~ZdcSignalSinc
();
21
22
ZdcSignalSinc
(
const
ZdcSignalSinc
&) =
delete
;
23
ZdcSignalSinc
&
operator=
(
const
ZdcSignalSinc
&) =
delete
;
24
25
int
process
(
double
*,
double
gain
=1.,
double
ped
=0.,
26
double
frac
=1.,
bool
corr=
true
);
27
int
getError
()
const
;
28
int
getWarning
()
const
;
29
double
getTime
()
const
;
30
double
getAmp
()
const
;
31
32
private
:
33
const
int
m_n_Slices
;
34
const
double
m_AmpThresh
;
35
const
double
m_tClock
;
36
const
double
m_Pi
;
37
double
m_Time
;
38
double
m_Amp
;
39
int
m_Err
;
40
int
m_Warn
;
41
42
//bool m_CorrFlag;
43
44
double
*
m_buf
;
45
46
int
m_p
;
47
int
m_np
;
48
double
waveform
(
double
t
);
49
double
findpeak
(
int
);
50
double
findpeak
();
51
double
fraction
(
double
,
double
);
52
53
double
m_tim
[3]{},
m_wfm
[3]{},
m_dt
;
54
int
m_AAAA
;
55
56
57
};
ZdcSignalSinc::m_tClock
const double m_tClock
Definition:
ZdcSignalSinc.h:35
ZdcSignalSinc::ZdcSignalSinc
ZdcSignalSinc(int)
Definition:
ZdcSignalSinc.cxx:11
ZdcSignalSinc::m_Pi
const double m_Pi
Definition:
ZdcSignalSinc.h:36
ZdcSignalSinc
Definition:
ZdcSignalSinc.h:14
ZdcSignalSinc::e_noSignal
@ e_noSignal
Definition:
ZdcSignalSinc.h:17
ZdcSignalSinc::operator=
ZdcSignalSinc & operator=(const ZdcSignalSinc &)=delete
ZdcSignalSinc::fraction
double fraction(double, double)
Definition:
ZdcSignalSinc.cxx:166
ZdcSignalSinc::getError
int getError() const
Definition:
ZdcSignalSinc.cxx:151
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:110
ZdcSignalSinc::findpeak
double findpeak()
Definition:
ZdcSignalSinc.cxx:201
ZdcSignalSinc::Status
Status
Definition:
ZdcSignalSinc.h:16
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
ZdcSignalSinc::process
int process(double *, double gain=1., double ped=0., double frac=1., bool corr=true)
Definition:
ZdcSignalSinc.cxx:42
ZdcSignalSinc::m_Warn
int m_Warn
Definition:
ZdcSignalSinc.h:40
ZdcSignalSinc::m_Amp
double m_Amp
Definition:
ZdcSignalSinc.h:38
ZdcSignalSinc::m_Time
double m_Time
Definition:
ZdcSignalSinc.h:37
ZdcSignalSinc::m_tim
double m_tim[3]
Definition:
ZdcSignalSinc.h:53
ZdcSignalSinc::m_p
int m_p
Definition:
ZdcSignalSinc.h:46
ZdcSignalSinc::m_AAAA
int m_AAAA
Definition:
ZdcSignalSinc.h:54
checkxAOD.frac
frac
Definition:
Tools/PyUtils/bin/checkxAOD.py:259
ZdcSignalSinc::getAmp
double getAmp() const
Definition:
ZdcSignalSinc.cxx:154
ZdcSignalSinc::m_dt
double m_dt
Definition:
ZdcSignalSinc.h:53
ZdcSignalSinc::getTime
double getTime() const
Definition:
ZdcSignalSinc.cxx:153
ZdcSignalSinc::e_wrongFrac
@ e_wrongFrac
Definition:
ZdcSignalSinc.h:16
ZdcSignalSinc::waveform
double waveform(double t)
Definition:
ZdcSignalSinc.cxx:156
ZdcSignalSinc::m_AmpThresh
const double m_AmpThresh
Definition:
ZdcSignalSinc.h:34
ZdcSignalSinc::m_n_Slices
const int m_n_Slices
Definition:
ZdcSignalSinc.h:33
ZdcSignalSinc::e_localMinimum
@ e_localMinimum
Definition:
ZdcSignalSinc.h:17
ZdcSignalSinc::e_noData
@ e_noData
Definition:
ZdcSignalSinc.h:16
ZdcSignalSinc::m_Err
int m_Err
Definition:
ZdcSignalSinc.h:39
ZdcSignalSinc::e_wrongSignal
@ e_wrongSignal
Definition:
ZdcSignalSinc.h:17
Example_ReadSampleNoise.ped
ped
Definition:
Example_ReadSampleNoise.py:45
ZdcSignalSinc::ZdcSignalSinc
ZdcSignalSinc(const ZdcSignalSinc &)=delete
ZdcSignalSinc::m_buf
double * m_buf
Definition:
ZdcSignalSinc.h:44
ZdcSignalSinc::~ZdcSignalSinc
~ZdcSignalSinc()
Definition:
ZdcSignalSinc.cxx:40
ZdcSignalSinc::e_Overflow
@ e_Overflow
Definition:
ZdcSignalSinc.h:16
ZdcSignalSinc::e_OK
@ e_OK
Definition:
ZdcSignalSinc.h:16
ZdcSignalSinc::m_np
int m_np
Definition:
ZdcSignalSinc.h:47
ZdcSignalSinc::getWarning
int getWarning() const
Definition:
ZdcSignalSinc.cxx:152
ZdcSignalSinc::m_wfm
double m_wfm[3]
Definition:
ZdcSignalSinc.h:53
Generated on Sun Dec 22 2024 21:23:07 for ATLAS Offline Software by
1.8.18