er  dev
ERRawToAnalyzeConverter.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef ERRawToAnalyzeConverter_H
10 #define ERRawToAnalyzeConverter_H
11 
12 #include "FairTask.h"
13 
14 #include "ERNeuRadRawEvent.h"
15 #include "ERNeuRadAEvent.h"
16 
17 class FairTask;
18 
19 class ERNeuRadRawEvent;
20 class ERNeuRadAEvent;
21 
28 class ERRawToAnalyzeConverter : public FairTask {
29 
30 public:
33 
37  ERRawToAnalyzeConverter(Int_t verbose);
38 
41 
43  virtual InitStatus Init();
44 
46  virtual void Exec(Option_t* opt);
47 
49  virtual void Finish();
50 
52  virtual void Reset();
53 
54  void SetNChanels(Int_t chanels){fNChanels = chanels;}
55  void SetNPoints(Int_t points){fNPoints = points;}
56  void SetSmooth(Int_t smpar){ if (smpar == 1) fSmoothPar = kTRUE;}
57 
58 protected:
59  //Input objects
60  ERNeuRadRawEvent** fRawEvents;
61 
62  //Output arrays
63  ERNeuRadAEvent** fAEvents;
64 
65  Int_t fNChanels;
66  Int_t fNPoints;
67  Bool_t fSmoothPar;
68 
69  const Double_t fRatio;
70  const Double_t fTD; //in ns
71  Double_t fNoiseMin;
72  Double_t fNoiseMax;
73  Int_t fNumSmoothP; //number of points to smooth
74 
75  Int_t fEvent;
76 
77 private:
78  virtual void SetParContainers();
79 
80  ClassDef(ERRawToAnalyzeConverter,1)
81 };
82 
83 #endif
class for processing raw data and getting amp and time properties of signal
task for analyzing raw data
virtual void Exec(Option_t *opt)
class for raw data obtained from measurements or simulations