ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtPedestal.h
Go to the documentation of this file.
1 // =================================================
2 // AtPedestal Class
3 //
4 // Description:
5 // This class is used for calculating pedestal
6 // values of each channel using FPN channels.
7 //
8 // Author :Genie Jhang ( geniejhang@majimak.com )
9 // Modified by Y. Ayyad for the AtTPCROOT
10 //
11 // =================================================
12 
13 #ifndef AtPEDESTAL
14 #define AtPEDESTAL
15 
16 #include <Rtypes.h>
17 #include <TObject.h>
18 
19 #include "GETMath2.h"
20 
21 #include <memory>
22 
23 class TBuffer;
24 class TClass;
25 class TMemberInspector;
26 
27 class AtPedestal : public TObject {
28 public:
29  AtPedestal();
30 
31  Bool_t SubtractPedestal(Int_t numTbs, Int_t *fpn, Int_t *rawADC, Double_t *dest, Double_t rmsCut = 5,
32  Bool_t signalNegativePolarity = kFALSE, Int_t startTb = 3, Int_t averageTbs = 10);
33 
34 private:
35  std::unique_ptr<GETMath2> fMath;
36 
37  ClassDef(AtPedestal, 1);
38 };
39 
40 #endif
GETMath2.h
AtPedestal
Definition: AtPedestal.h:27
AtPedestal::AtPedestal
AtPedestal()
Definition: AtPedestal.cxx:23
AtPedestal::SubtractPedestal
Bool_t SubtractPedestal(Int_t numTbs, Int_t *fpn, Int_t *rawADC, Double_t *dest, Double_t rmsCut=5, Bool_t signalNegativePolarity=kFALSE, Int_t startTb=3, Int_t averageTbs=10)
Definition: AtPedestal.cxx:25