AnaPlotMaker.h
Go to the documentation of this file.
1 #ifndef _AnaPlotMkr
2 #define _AnaPlotMkr
3 
4 #include <fstream>
5 #include <TH1F.h>
6 #include <TH2F.h>
7 #include <TGraph.h>
8 #include <TGraphErrors.h>
9 #include <TTree.h>
10 #include <TCanvas.h>
11 #include <TFile.h>
12 #include <TPaveText.h>
13 #include <TLegend.h>
14 #include <TStyle.h>
15 #include <TSystem.h>
16 #include <TDatime.h>
17 #include <TMultiGraph.h>
18 #include <TGaxis.h>
19 #include <TPaveStats.h>
20 
21 // REMOVE includes below to be removed when I add partition to the OnMon header
22 #include <TSQLServer.h>
23 #include <TSQLResult.h>
24 #include <TSQLStatement.h>
25 #include <iostream>
26 #include <iomanip>
27 #include <sstream>
28 #include <string>
29 #include <cstring>
30 
31 using namespace std;
32 
33 // Define global variables to be used in AnaPlotMkr.C
34 ifstream inFile;
35 
36 void eff_plots(unsigned int, string, string, string, string);
37 
38 const unsigned int Npar = 5;
39 
40 TDatime *TNowGMT; // current GMT time
41 TDatime *TNow; // current local time
42 TDatime *SRtime;
43 Int_t GMToffset;
44 
45 unsigned int run;
46 unsigned int subrun;
47 UInt_t par;
48 
49 UInt_t LastRun;
50 UInt_t LastSR;
51 
52 // These arrays are used to define last run and subrun for each partition.
53 UInt_t Last_Run[Npar];
54 UInt_t Last_SR[Npar];
55 
56 // Jose's DCM sync plot arrays defined
57 //float *xtime[Npar];
58 //float *sum2dtrk_col[Npar];
59 //float *sum3dtrk_col[Npar];
60 //float *tr3Ddib[Npar];
61 //float *tr2Ddib[Npar];
62 //float *tr3D[Npar];
63 //float *tr2D[Npar];
64 //float *tr3Dfull[Npar];
65 //float *tr2Dfull[Npar];
66 //float *tr3Devo[Npoint];
67 //float *tr2Devo[Npoint];
68 
69 // Define plots to be used in cell efficiency calculation.
70 TH2F *hHitsVwcellDay[Npar]; // 5 is the number of partitions, will need to see if there's a way to improve allocation.
71 TH2F *hCellsVwcellDay[Npar]; // 5 is the number of partitions.
72 
73 
74 
75 
76 
77 #endif
UInt_t LastSR
Definition: AnaPlotMaker.h:50
TH2F * hHitsVwcellDay[Npar]
Definition: AnaPlotMaker.h:70
TDatime * TNow
Definition: AnaPlotMaker.h:41
UInt_t Last_SR[Npar]
Definition: AnaPlotMaker.h:54
unsigned int subrun
Definition: AnaPlotMaker.h:46
TDatime * SRtime
Definition: AnaPlotMaker.h:42
void eff_plots(unsigned int, string, string, string, string)
ifstream inFile
Definition: AnaPlotMaker.h:34
const unsigned int Npar
Definition: AnaPlotMaker.h:38
UInt_t LastRun
Definition: AnaPlotMaker.h:49
TDatime * TNowGMT
Definition: AnaPlotMaker.h:40
UInt_t Last_Run[Npar]
Definition: AnaPlotMaker.h:53
UInt_t par
Definition: AnaPlotMaker.h:47
Int_t GMToffset
Definition: AnaPlotMaker.h:43
unsigned int run
Definition: AnaPlotMaker.h:45
TH2F * hCellsVwcellDay[Npar]
Definition: AnaPlotMaker.h:71