ROOTANA
Loading...
Searching...
No Matches
examples
TV1730DppWaveform.h
Go to the documentation of this file.
1
#ifndef TV1730DppWaveforms_h
2
#define TV1730DppWaveforms_h
3
4
#include <string>
5
#include "
THistogramArrayBase.h
"
6
7
/// Class for making histogram of V1730 waveforms (with DPP event encoding)
8
class
TV1730DppWaveform
:
public
THistogramArrayBase
{
9
public
:
10
TV1730DppWaveform
();
11
virtual
~TV1730DppWaveform
(){};
12
13
/// Update the histogram for this canvas.
14
/// This method works, but is generally not used; instead, TDeapAnaManager handles filling this histogram.
15
void
UpdateHistograms
(
TDataContainer
& dataContainer);
16
17
/// Take actions at begin run
18
void
BeginRun
(
int
transition,
int
run,
int
time);
19
20
/// Take actions at end run
21
void
EndRun
(
int
transition,
int
run,
int
time);
22
23
int
GetNumSamples
() {
return
numSamples
; }
24
void
SetNumSamples
(
int
numSamples
) { this->numSamples =
numSamples
; }
25
int
GetNsecsPerSample
() {
return
nanosecsPerSample
; }
26
void
SetNanosecsPerSample
(
int
nsecsPerSample) { this->
nanosecsPerSample
= nsecsPerSample; }
27
28
// Reset the histogram; needed before we re-fill each histo.
29
void
Reset
();
30
31
private
:
32
33
int
numSamples
;
34
int
nanosecsPerSample
;
35
void
CreateHistograms
();
36
37
38
};
39
40
#endif
41
42
THistogramArrayBase.h
TDataContainer
Definition
TDataContainer.hxx:29
THistogramArrayBase
Definition
THistogramArrayBase.h:34
TV1730DppWaveform
Class for making histogram of V1730 waveforms (with DPP event encoding)
Definition
TV1730DppWaveform.h:8
TV1730DppWaveform::numSamples
int numSamples
Definition
TV1730DppWaveform.h:33
TV1730DppWaveform::nanosecsPerSample
int nanosecsPerSample
Definition
TV1730DppWaveform.h:34
TV1730DppWaveform::SetNanosecsPerSample
void SetNanosecsPerSample(int nsecsPerSample)
Definition
TV1730DppWaveform.h:26
TV1730DppWaveform::UpdateHistograms
void UpdateHistograms(TDataContainer &dataContainer)
Definition
TV1730DppWaveform.cxx:53
TV1730DppWaveform::~TV1730DppWaveform
virtual ~TV1730DppWaveform()
Definition
TV1730DppWaveform.h:11
TV1730DppWaveform::TV1730DppWaveform
TV1730DppWaveform()
Reset the histogram for this canvas.
Definition
TV1730DppWaveform.cxx:8
TV1730DppWaveform::Reset
void Reset()
Definition
TV1730DppWaveform.cxx:94
TV1730DppWaveform::BeginRun
void BeginRun(int transition, int run, int time)
Take actions at begin run.
Definition
TV1730DppWaveform.cxx:110
TV1730DppWaveform::EndRun
void EndRun(int transition, int run, int time)
Take actions at end run
Definition
TV1730DppWaveform.cxx:117
TV1730DppWaveform::CreateHistograms
void CreateHistograms()
Function to create histograms; users will want to implement this function.
Definition
TV1730DppWaveform.cxx:19
TV1730DppWaveform::GetNumSamples
int GetNumSamples()
Definition
TV1730DppWaveform.h:23
TV1730DppWaveform::SetNumSamples
void SetNumSamples(int numSamples)
Definition
TV1730DppWaveform.h:24
TV1730DppWaveform::GetNsecsPerSample
int GetNsecsPerSample()
Definition
TV1730DppWaveform.h:25
Generated on Wed Dec 25 2024 05:01:03 for ROOTANA by
1.9.8