-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathOR64PDHistDrawer.hh
63 lines (52 loc) · 1.35 KB
/
OR64PDHistDrawer.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// OR64PDHistDrawer.hh
#ifndef _OR64PDHistDrawer_hh_
#define _OR64PDHistDrawer_hh_
#include "TROOT.h"
#include "TApplication.h"
#include "TH1.h"
#include "TCanvas.h"
#include "ORDataProcessor.hh"
#include "ORShaperShaperDecoder.hh"
class TRandom3;
class OR64PDHistDrawer : public ORDataProcessor
{
public:
OR64PDHistDrawer(ORShaperShaperDecoder* histDecoder);
virtual ~OR64PDHistDrawer();
virtual EReturnCode StartProcessing();
virtual EReturnCode StartRun();
virtual EReturnCode ProcessMyDataRecord(UInt_t* record);
virtual EReturnCode ProcessRecordTime(Double_t t_s);
virtual EReturnCode EndRun();
virtual EReturnCode EndProcessing();
protected:
ORShaperShaperDecoder *fShaperDecoder;
TH1* fEnergyHist;
TH1* fRateHist;
TCanvas* Tcanvas;
TCanvas* Ecanvas;
TApplication *app;
TRandom3 *r3;
UInt_t card;
UInt_t channel;
UInt_t adc;
Double_t ecal_slope[9][8];
Double_t ecal_slope_error[9][8];
Double_t ecal_constant[9][8];
Double_t ecal_constant_error[9][8];
Double_t maxE;
Double_t threshold;
Double_t energy;
Double_t ELow;
Double_t EHigh;
size_t lowBin;
size_t upBin;
UInt_t nbinsE;
Int_t maxT;
Double_t time;
Double_t fLastDrawTime;
Double_t fRefreshTime;
Int_t reset;
bool fUseEcal;
};
#endif