-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRootBase.hh
27 lines (18 loc) · 883 Bytes
/
RootBase.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef RootBase_hh
#define RootBase_hh
#include "Base.hh"
class FindPeakBaseRoot : public FindPeakBase{
public:
// Fills result using adc waveform data
// NOTE : This function may begin with peak data provided in result which is replaced
//virtual void process(const adcWaveform adcData, resultantHitData &result) = 0;
// FindPeakBaseRoot normal constructor with configStruct initilization parameters
FindPeakBaseRoot(const configStruct &initParams) : FindPeakBase(initParams);
virtual ~FindPeakBaseRoot();
protected:
// Fits a model function to a waveform
void fitModel2Waveform(TF1 &fitModel, TGraphErrors &fitData, const Double_t *initialParameters, Double_t *fitParameters);
// Converts adcWaveform object to TGraphErrors object for easier manipulation in ROOT
void adcWaveform2TGraphErrors(adcWaveform adcData, TGraphErrors &fitData);
};
#endif