diff --git a/macros/CCEScan/drawScheme.C b/macros/CCEScan/drawScheme.C index a517e06..6014c48 100755 --- a/macros/CCEScan/drawScheme.C +++ b/macros/CCEScan/drawScheme.C @@ -19,19 +19,15 @@ // ROOT include -#include "incBasicROOT.h" -#include "incDrawROOT.h" -#include "incGraphROOT.h" -#include "incHistROOT.h" -#include "incIOROOT.h" -#include "incRooFit.h" - - -#include "basicROOTTools.h" -#include "basicRooFitTools.h" - - -#include "lhcbstyle.C" +#include "../../include/incBasicROOT.h" +#include "../../include/incDrawROOT.h" +#include "../../include/incGraphROOT.h" +#include "../../include/incHistROOT.h" +#include "../../include/incIOROOT.h" +#include "../../include/incRooFit.h" +#include "../../include/basicROOTTools.h" +#include "../../include/basicRooFitTools.h" +#include "../../include/lhcbstyle.C" #include "deplTool.h" @@ -96,7 +92,7 @@ // -d detector (TT/IT) // -f fill number // -ns Do not save the value in the root file - +int val = 5; // Executable method int drawScheme(int argc, char* argv[]){ @@ -107,7 +103,7 @@ gStyle->SetTitleOffset(1.0,"X"); const char* diskVar = std::getenv ("DISK"); - const char* homeVar = std::getenv ("HOME"); + const char* homeVar = std::getenv ("CCEHOME"); TString det("TT"); @@ -160,18 +156,23 @@ TTree* t_hit = (TTree*)f_hit->Get(tn_hit.Data()); - TString dn_sector(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); + //TString dn_sector(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); + //TString fn_sector(Form("%s/fluence.root",dn_sector.Data())); + TString dn_sector(Form("%s/data/db",homeVar)); TString fn_sector(Form("%s/fluence.root",dn_sector.Data())); + TFile* f_sector = TFile::Open(fn_sector.Data()); - TString dn_fill(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); - TString fn_fill(Form("%s/lumi.root",dn_fill.Data())); + //TString dn_fill(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); + //TString fn_fill(Form("%s/lumi.root",dn_fill.Data())); + TString fn_fill(Form("%s/lumi.root",dn_sector.Data())); TFile* f_fill = TFile::Open(fn_fill.Data()); - TString dn_deplV(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); - TString fn_deplV(Form("%s/vdepl.root",dn_deplV.Data())); + //TString dn_deplV(Form("%s/cmtuser/Vetra_v13r2/ST/STAging/data/db",homeVar)); + //TString fn_deplV(Form("%s/vdepl.root",dn_deplV.Data())); + TString fn_deplV(Form("%s/vdepl.root",dn_sector.Data())); TFile* f_deplV = TFile::Open(fn_deplV.Data());