HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoAnalysePmm2Monitor.h
Go to the documentation of this file.
1  #ifndef HARPOANALYSEEXAMPLE_H
2 #define HARPOANALYSEEXAMPLE_H
3 
5 //
6 // HarpoAnalysePmm2Monitor
7 //
8 // Dummy analise which print all run events.
9 //
10 
11 #include "TObject.h"
12 #include "HarpoAnalyse.h"
13 #include "HarpoEvent.h"
14 #include "TProfile.h"
15 #include "TH1F.h"
16 #include "TH2F.h"
17 #include "TArrayD.h"
18 #include "TMapFile.h"
19 #include "TGraphErrors.h"
20 
22 
23  public:
24 
26 
27  void Init();
28  void Save(char *mode=NULL);
29  void process();
30  void print();
31 
32  private:
33 
34  Double_t GetThr(TH1F* h);
35  Double_t GetTruncMean(TH1F* h, Double_t &min, Double_t &max, Double_t tl = 0., Double_t th = 0.6);
36  Double_t TruncMean(TArrayD* vect, Double_t tl = 0., Double_t th = 0.6);
37 
38 
39  TH1F* fHistSpectrum[16];
41  TH2F* fHistTime2D;
45  TH1F* fHistSize;
46 
47  TH1F* fHistSpectrumTrig[16];
54 
55  TH1F* fHistNscint;
56  TH1F* fHistInfo;
57  TH1F* fHistMissed;
61 
64  TGraphErrors* gRatePmm2[16];
65  TGraphErrors* gRatePmm2Tot;
66  TGraphErrors* gTimeVsEvent;
67 
68  Long_t itscorr;
69  Long_t itsold;
70  Long_t itsold2;
72  Bool_t startRun;
73  double missed[16];
74  double trigged[16];
75  Double_t timestampold;
76  Double_t rate[16];
77  Double_t fRateSample;
78 
79  TMapFile* mfile;
80  Int_t fSaveRate;
81  Int_t fDisplay;
82  Double_t fTimeTot;
83 
84  ClassDef(HarpoAnalysePmm2Monitor,1) //Run AnalysePrint
85 };
86 
87 #endif
void print()
Ovreloaded medod whic do all job.
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
Definition: HarpoAnalyse.h:47
Monitor Pmm2 data for online GUI.
Double_t GetTruncMean(TH1F *h, Double_t &min, Double_t &max, Double_t tl=0., Double_t th=0.6)
Double_t TruncMean(TArrayD *vect, Double_t tl=0., Double_t th=0.6)
Double_t GetThr(TH1F *h)
Redefine empty default.