ROOTANA
examples
TV1730RawWaveform.h
Go to the documentation of this file.
1
#ifndef TV1730RawWaveforms_h
2
#define TV1730RawWaveforms_h
3
4
#include <string>
5
#include "
THistogramArrayBase.h
"
6
7
/// Class for making histogram of raw V1730Dpp waveforms
8
class
TV1730RawWaveform
:
public
THistogramArrayBase
{
9
public
:
10
TV1730RawWaveform
();
11
virtual
~TV1730RawWaveform
(){};
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
TV1730RawWaveform
Class for making histogram of raw V1730Dpp waveforms.
Definition:
TV1730RawWaveform.h:8
TV1730RawWaveform::TV1730RawWaveform
TV1730RawWaveform()
Reset the histogram for this canvas.
Definition:
TV1730RawWaveform.cxx:7
TV1730RawWaveform::~TV1730RawWaveform
virtual ~TV1730RawWaveform()
Definition:
TV1730RawWaveform.h:11
TV1730RawWaveform::EndRun
void EndRun(int transition, int run, int time)
Take actions at end run
Definition:
TV1730RawWaveform.cxx:117
TV1730RawWaveform::CreateHistograms
void CreateHistograms()
Function to create histograms; users will want to implement this function.
Definition:
TV1730RawWaveform.cxx:18
TV1730RawWaveform::Reset
void Reset()
Definition:
TV1730RawWaveform.cxx:94
TV1730RawWaveform::GetNsecsPerSample
int GetNsecsPerSample()
Definition:
TV1730RawWaveform.h:25
TV1730RawWaveform::BeginRun
void BeginRun(int transition, int run, int time)
Take actions at begin run.
Definition:
TV1730RawWaveform.cxx:110
TV1730RawWaveform::UpdateHistograms
void UpdateHistograms(TDataContainer &dataContainer)
Definition:
TV1730RawWaveform.cxx:55
TV1730RawWaveform::SetNumSamples
void SetNumSamples(int numSamples)
Definition:
TV1730RawWaveform.h:24
TV1730RawWaveform::numSamples
int numSamples
Definition:
TV1730RawWaveform.h:33
TV1730RawWaveform::GetNumSamples
int GetNumSamples()
Definition:
TV1730RawWaveform.h:23
TV1730RawWaveform::nanosecsPerSample
int nanosecsPerSample
Definition:
TV1730RawWaveform.h:34
TV1730RawWaveform::SetNanosecsPerSample
void SetNanosecsPerSample(int nsecsPerSample)
Definition:
TV1730RawWaveform.h:26
Generated on Sat Nov 23 2024 05:01:03 for ROOTANA by
1.9.1