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