-
Notifications
You must be signed in to change notification settings - Fork 0
/
CompileCorrectGammaV2.C
88 lines (82 loc) · 3.98 KB
/
CompileCorrectGammaV2.C
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include <Riostream.h>
#include <fstream>
#include "TMath.h"
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <TROOT.h>
#include <TApplication.h>
#include <TPaveLabel.h>
#include <TSystem.h>
#include <TFrame.h>
#include <TStyle.h>
#include <TString.h>
#include "TGaxis.h"
#include "TFile.h"
#include "TH1F.h"
#include "TH1D.h"
#include "TH2F.h"
#include "TF1.h"
#include "TVirtualFitter.h"
#include "TObject.h"
#include "TCanvas.h"
#include "TMultiGraph.h"
#include "TLegend.h"
#include "TDatabasePDG.h"
#include "TMinuit.h"
#include "TLatex.h"
#include "TASImage.h"
#include "TPostScript.h"
#include "TGraphErrors.h"
#include "TArrow.h"
#include "TMarker.h"
#include "TGraphAsymmErrors.h"
void CompileCorrectGammaV2(){
//*****************************************************************************************
// Find out which user is running the code and set RooUnfold directory accordingly
// RooUnfold is a separate piece of software which needs to be compiled on your system
// Please download it from https://github.com/skluth/RooUnfold and compile it!
// Afterwards you have to add the location of the software here for your system
//*****************************************************************************************
#ifdef __CLING__
cout << " USING ROOT6, NO NEED TO LOAD RooUnfold !!! " << endl;
#else
TString homedirectory = gSystem->HomeDirectory();
cout << "***************************************" << endl;
cout << "HomeDirectory: " << homedirectory.Data() << endl;
cout << "***************************************" << endl;
if (homedirectory.CompareTo("/home/admin1") == 0){
gSystem->AddIncludePath("-I/home/admin1/leardini/newSoftware/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/home/admin1/leardini/newSoftware/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/fbock") == 0){
gSystem->AddIncludePath("-I/home/fbock/Photon/Software/PCGGIT/RooUnfold/src");
gSystem->Load("/home/fbock/Photon/Software/PCGGIT/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/daniel") == 0){
gSystem->AddIncludePath("-I/home/daniel/data/work/pcgGit/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/home/daniel/data/work/pcgGit/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/Users/lucasaltenkaemper") == 0) {
gSystem->AddIncludePath("-I/Volumes/Data/PWGGA/GammaConv/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/Volumes/Data/PWGGA/GammaConv/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/meike") == 0){
gSystem->AddIncludePath("-I/home/meike/analysis/software/photonconv/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/home/meike/analysis/software/photonconv/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/loizides") == 0){
gSystem->AddIncludePath("-I/home/loizides/sw/pcm_git/RooUnfold/src");
gSystem->Load("/home/loizides/sw/pcm_git/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/nschmidt") == 0){
gSystem->AddIncludePath("-I/home/nschmidt/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/home/nschmidt/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/Users/marin") == 0) {
gSystem->AddIncludePath("-I/Users/marin/analysis/GIT/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/Users/marin/analysis/GIT/AnalysisSoftware/RooUnfold/libRooUnfold");
} else if (homedirectory.CompareTo("/home/mike") == 0) {
gSystem->AddIncludePath("-I/home/mike/git_afterburner/AnalysisSoftware/RooUnfold/src");
gSystem->Load("/home/mike/git_afterburner/AnalysisSoftware/RooUnfold/libRooUnfold");
} else {
cout << "You have not defined where RooUnfold can be found on your system! This macro can't run without it!" << endl;
return;
}
gROOT->LoadMacro("TaskV1/CorrectGammaV2.C+");
#endif
return;
}