PlotResults.h 2.01 KB
Newer Older
Agata Analysis's avatar
Agata Analysis committed
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
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>

#include "TChain.h"
#include "TFile.h"
#include "TEntryList.h"
#include "TROOT.h"
#include "TCutG.h"
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "Rtypes.h"
#include "TLine.h"
#include "TGraphErrors.h"
#include "TStyle.h"
#include "TDatime.h"
#include "TObjArray.h"
#include "TError.h"
#include "TGraph2D.h"
#include "TPolyLine.h"
#include "TFrame.h"
#include "TList.h"
#include "TSystem.h"
#include "TBrowser.h"
#include "TProfile.h"
#include "TRandom.h"
#include "KeySymbols.h"
#include "TPaveText.h"
#include "TMath.h"
#include "Math/Minimizer.h"
#include "Math/Factory.h"
#include "Math/Functor.h"
#include "TFitResult.h"
#include "TVirtualFitter.h"
#include "TProofPlayer.h"
#include "TProof.h"
#include "TEnv.h"

using namespace std;

///Global variables

TString fWorkingDirectory = "";
TString fTreeName = "TreeMaster";

Int_t fNWorkers = 0;

TList *fListOfHists;

std::vector <Int_t> runs;

TChain *MyChain=0x0;
TChain *MyChainFriend;
TString fDataFolder;
TString fBaseRootFileName;
fabian's avatar
fabian committed
58
TString fDiamantLookUpTable;
59
TString fDiamantCutsLocation;
60
TString fDiamantTSPeaks;
Agata Analysis's avatar
Agata Analysis committed
61
TString fNedaLookUpTable;
62
TString fNedaCutsLocation;
63
TString fSpecificFile = "";
Agata Analysis's avatar
Agata Analysis committed
64 65 66 67 68 69 70 71 72
TString fFATIMAGatesInfo;
TString fOupsGatesInfo;
TString fGxGInfo;
TString fGXGFatInfo;
TString fEThetaAg;
TString fEThetaFat;
TString fEGxGAgFat;
TString fListOfZToPlot;

73 74 75
TString fNedaTimeGateFormula = "";
TString fDiamantTimeGateFormula = "";

76
Bool_t fLightMode = false;
77
Int_t fStatMin=-1;
78

79
Bool_t fUseProof;
Agata Analysis's avatar
Agata Analysis committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93

TString fFileNameOut;
ULong64_t fNEntries = 0;

TProof *fProof;

TFile *fFinalFile;

TChain *GetChain();

void InitProof();

void ReadChainUsingProof();

Agata Analysis's avatar
Agata Analysis committed
94 95
void ReadChainWithoutProof();

Agata Analysis's avatar
Agata Analysis committed
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
int main(int argc, char** argv);

void ReadConfFile();

void ErrorMessage(const char *err)
{
    cout<<"\e[1;91m"<<err<<"\e[0m"<<endl;
}

void InfoMessage(const char *info)
{
    cout<<"\e[1;92m"<<info<<"\e[0m"<<endl;
}

void WarningMessage(const char *warn)
{
    cout<<"\e[1;93m"<<warn<<"\e[0m"<<endl;
}