void GetCorrections(char *prodname = "Enter Production Name", char *shortprodname = "EnterProductionName", bool ispp = true, bool forSim = true, bool TPC = true, char *infilename="Et.ESD.new.sim.merged.root", int dataset = 2009){
TStopwatch timer;
timer.Start();
- gSystem->Load("libTree.so");
- gSystem->Load("libGeom.so");
- gSystem->Load("libVMC.so");
- gSystem->Load("libXMLIO.so");
+ gSystem->Load("libTree");
+ gSystem->Load("libGeom");
+ gSystem->Load("libVMC");
+ gSystem->Load("libXMLIO");
- gSystem->Load("libSTEERBase.so");
- gSystem->Load("libESD.so");
- gSystem->Load("libAOD.so");
+ gSystem->Load("libSTEERBase");
+ gSystem->Load("libESD");
+ gSystem->Load("libAOD");
gSystem->Load("libANALYSIS");
gSystem->Load("libANALYSISalice");
TH1D *efficiencyHadronITSCB10 = GetHistoEfficiency(etacut,"hEfficiencyHadronITSCB10",0,1,20,false,true,10,15);
for(int i=10;i<=20;i++) hadCorrectionEMCAL->SetEfficiencyHadronITS((TH1D*)efficiencyHadronITSCB10->Clone(Form("Test%i",i)),i);//Hadron
}//EMCAL
- hadCorrectionEMCAL->SetEfficiencyErrorLowBound(0.99);
- hadCorrectionEMCAL->SetEfficiencyErrorHighBound(1.01);
+ hadCorrectionEMCAL->SetEfficiencyErrorLowBound(0.95);
+ hadCorrectionEMCAL->SetEfficiencyErrorHighBound(1.05);
//CorrEfficiencyPlots(true,prodname,shortprodname);
//CorrEfficiencyPlots(false,prodname,shortprodname,infilename);
//hadCorrectionEMCAL->GetEfficiencyHadronTPC()->Draw();
TH1D *backgroundTPC;
TH1D *backgroundITS;
- if((dataset==20111 || dataset==20100) && !forSim){//2.76 TeV p+p or Pb+Pb
+ if((dataset==20111 || dataset==20100|| dataset==2011) && !forSim){//2.76 TeV p+p or Pb+Pb
if(dataset==20111){
cout<<"Fixing 2.76 TeV p+p background to be average of 900 GeV and 7 TeV scaling"<<endl;
backgroundTPC = pp276TPCBkgd();
bkgdpcterror = 0.13;
break;
case 20100:
+ case 2011:
bkgdpcterror = 0.76;
break;
}
TH1D *efficiencyHadronITSCB10 = GetHistoEfficiency(etacut,"hEfficiencyHadronITSCB10",0,1,20,false,true,10,15);
for(int i=10;i<=20;i++) hadCorrectionPHOS->SetEfficiencyHadronITS((TH1D*)efficiencyHadronITSCB10->Clone(Form("Test%i",i)),i);//Hadron
}//EMCAL
+ hadCorrectionPHOS->SetEfficiencyErrorLowBound(0.95);
+ hadCorrectionPHOS->SetEfficiencyErrorHighBound(1.05);
TH1D *backgroundTPC;
TH1D *backgroundITS;
- if((dataset==20111 || dataset==20100) && !forSim){//2.76 TeV p+p or Pb+Pb
+ if((dataset==20111 || dataset==20100|| dataset==2011) && !forSim){//2.76 TeV p+p or Pb+Pb
if(dataset==20111){
cout<<"Fixing 2.76 TeV p+p background to be average of 900 GeV and 7 TeV scaling"<<endl;
backgroundTPC = pp276TPCBkgd();