BeamlineDigit.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 /// \file BeamlineDigit.cxx
3 /// \brief Encapsulation of reconstructed digitizer 'hits'. Used for
4 /// ToF PMTs and SiPMs, and Cherenkov and Muon Stack PMTs.
5 /// Part of beamline reconstruction for NOvA test beam.
6 /// \author Mike Wallbank (University of Cincinnati) <wallbank@fnal.gov>
7 /// \date November 2018
8 ////////////////////////////////////////////////////////////////////////////
9 
10 #include "BeamlineDigit.h"
11 
12 // -----------------------------------------------------------------------
14 }
15 
16 // -----------------------------------------------------------------------
18  double start_time_ns,
19  double peak_time_ns,
20  double end_time_ns,
21  int peak_adc,
22  int amplitude_adc,
23  double area_adcns,
24  double width_ns) :
25  fChannelID(channel),
26  fStartTimeInNanoSec(start_time_ns),
27  fPeakTimeInNanoSec(peak_time_ns),
28  fEndTimeInNanoSec(end_time_ns),
29  fPeakADC(peak_adc),
30  fAmplitudeInADC(amplitude_adc),
31  fAreaInADCNanoSec(area_adcns),
32  fWidthInNanoSec(width_ns) {
33 }
34 
35 // -----------------------------------------------------------------------
37  return fStartTimeInNanoSec;
38 }
39 
40 // -----------------------------------------------------------------------
42  return fPeakTimeInNanoSec;
43 }
44 
45 // -----------------------------------------------------------------------
47  return fEndTimeInNanoSec;
48 }
49 
50 // -----------------------------------------------------------------------
52  return fPeakADC;
53 }
54 
55 // -----------------------------------------------------------------------
57  return fAmplitudeInADC;
58 }
59 
60 // -----------------------------------------------------------------------
62  return fAreaInADCNanoSec;
63 }
64 
65 // -----------------------------------------------------------------------
67  return fWidthInNanoSec;
68 }
69 
70 // -----------------------------------------------------------------------
72  return fChannelID;
73 }
74 
75 // -----------------------------------------------------------------------
77  fStartTimeInNanoSec = time_ns;
78 }
79 
80 // -----------------------------------------------------------------------
82  fPeakTimeInNanoSec = time_ns;
83 }
84 
85 // -----------------------------------------------------------------------
87  fEndTimeInNanoSec = time_ns;
88 }
89 
90 // -----------------------------------------------------------------------
92  fPeakADC = adc;
93 }
94 
95 // -----------------------------------------------------------------------
97  fAmplitudeInADC = adc;
98 }
99 
100 // -----------------------------------------------------------------------
102  fAreaInADCNanoSec = adcns;
103 }
104 
105 // -----------------------------------------------------------------------
107  fWidthInNanoSec = width_ns;
108 }
109 
110 // -----------------------------------------------------------------------
112  fChannelID = channel;
113 }
void SetEndTimeInNanoSec(double time_ns)
void SetPeakTimeInNanoSec(double time_ns)
double AreaInADCNanoSec() const
int AmplitudeInADC() const
void SetWidthInNanoSec(double width_ns)
void SetStartTimeInNanoSec(double time_ns)
double StartTimeInNanoSec() const
double WidthInNanoSec() const
beamlinegeo::ChannelID fChannelID
Definition: BeamlineDigit.h:61
double fStartTimeInNanoSec
Definition: BeamlineDigit.h:62
void SetAmplitudeInADC(int adc)
Encapsulation of reconstructed digitizer &#39;hits&#39;. Used for ToF PMTs and SiPMs, and Cherenkov and Muon ...
int PeakADC() const
double EndTimeInNanoSec() const
void SetChannelID(beamlinegeo::ChannelID channel)
beamlinegeo::ChannelID ChannelID() const
double PeakTimeInNanoSec() const
void SetPeakADC(int adc)
void SetAreaInADCNanoSec(double area_adcns)