ROOTANA
examples
TDT724Waveform.h
Go to the documentation of this file.
1
#ifndef TDT724Waveform_h
2
#define TDT724Waveform_h
3
4
#include <string>
5
#include "
THistogramArrayBase.h
"
6
7
/// Class for making histograms of raw DT724 waveforms;
8
class
TDT724Waveform
:
public
THistogramArrayBase
{
9
public
:
10
TDT724Waveform
();
11
virtual
~TDT724Waveform
(){};
12
13
void
UpdateHistograms
(
TDataContainer
& dataContainer);
14
15
/// Getters/setters
16
int
GetNsecsPerSample
() {
return
nanosecsPerSample
; }
17
void
SetNanosecsPerSample
(
int
nsecsPerSample) { this->
nanosecsPerSample
= nsecsPerSample; }
18
19
// Reset the histograms; needed before we re-fill each histo.
20
void
Reset
();
21
22
void
CreateHistograms
();
23
24
/// Take actions at begin run
25
void
BeginRun
(
int
transition,
int
run,
int
time){
26
CreateHistograms
();
27
}
28
29
private
:
30
int
nanosecsPerSample
;
31
};
32
33
#endif
34
35
THistogramArrayBase.h
TDT724Waveform
Class for making histograms of raw DT724 waveforms;.
Definition:
TDT724Waveform.h:8
TDT724Waveform::nanosecsPerSample
int nanosecsPerSample
Definition:
TDT724Waveform.h:30
TDT724Waveform::CreateHistograms
void CreateHistograms()
Function to create histograms; users will want to implement this function.
Definition:
TDT724Waveform.cxx:19
TDT724Waveform::SetNanosecsPerSample
void SetNanosecsPerSample(int nsecsPerSample)
Definition:
TDT724Waveform.h:17
TDT724Waveform::Reset
void Reset()
Definition:
TDT724Waveform.cxx:86
TDT724Waveform::UpdateHistograms
void UpdateHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
Definition:
TDT724Waveform.cxx:53
TDT724Waveform::~TDT724Waveform
virtual ~TDT724Waveform()
Definition:
TDT724Waveform.h:11
TDT724Waveform::TDT724Waveform
TDT724Waveform()
Reset the histograms for this canvas.
Definition:
TDT724Waveform.cxx:8
TDT724Waveform::GetNsecsPerSample
int GetNsecsPerSample()
Getters/setters.
Definition:
TDT724Waveform.h:16
TDT724Waveform::BeginRun
void BeginRun(int transition, int run, int time)
Take actions at begin run.
Definition:
TDT724Waveform.h:25
TDataContainer
Definition:
TDataContainer.hxx:29
THistogramArrayBase
Definition:
THistogramArrayBase.h:34
Generated on Sat Nov 23 2024 05:01:03 for ROOTANA by
1.9.1