ATLAS Offline Software
Loading...
Searching...
No Matches
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
15 public:
18
19 ZdcSignalSinc(int);
21
22 ZdcSignalSinc(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};
const int m_n_Slices
const double m_tClock
const double m_AmpThresh
ZdcSignalSinc(const ZdcSignalSinc &)=delete
const double m_Pi
double getTime() const
double fraction(double, double)
ZdcSignalSinc & operator=(const ZdcSignalSinc &)=delete
int getWarning() const
int getError() const
double getAmp() const
double waveform(double t)
double m_wfm[3]
double m_tim[3]
const std::string process