]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG0/dNdEta/drawSystematicsNew.C
removing checking of vertex resolution in getvertex
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / drawSystematicsNew.C
index 0f9aede4ff28741ba7a404e6753a669e61e76b58..3fc4c245e61e6be62a760c93a4c228c82e5d6f09 100644 (file)
@@ -65,18 +65,19 @@ void DrawpiKpAndCombinedZOnly(Float_t upperPtLimit=0.99)
 }
 
 
-void DrawEffectOfChangeInCrossSection(const char* fileName) {
+void DrawEffectOfChangeInCrossSection(const char* fileName = "systematics_vtxtrigger_compositions.root") {
   
   //get the data
   TFile* fin = TFile::Open(fileName);
 
-  //const Char_t* changes[]  = {"pythia","ddmore","ddless","sdmore","sdless", "dmore", "dless", "sdmoreddless", "sdlessddmore" };
-  const Char_t* changes[]  = { "pythia", "qgsm", "phojet" };
-  const Int_t nChanges = 3;
+  const Char_t* changes[]  = {"pythia","ddmore","ddless","sdmore","sdless", "dmore", "dless", "sdmoreddless", "sdlessddmore" };
   //const Char_t* changes[]  = {"pythia","ddmore25","ddless25","sdmore25","sdless25", "dmore25", "dless25", "sdmoreddless25", "sdlessddmore25" };
+  const Int_t nChanges = 9;
+  //const Char_t* changes[]  = { "pythia", "qgsm", "phojet" };
+  //const Int_t nChanges = 3;
   Int_t colors[] = {1,1,kRed,kBlue,kGreen,kPink,1,kRed,kBlue};
 
-  TH1F* hRatios[3];
+  TH1F* hRatios[9];
   for(Int_t i=0; i<nChanges; i++) {
     hRatios[i] = (TH1F*)fin->Get(Form("ratio_vertexReco_triggerBias_%s",changes[i]));
     hRatios[i]->SetLineWidth(2);
@@ -97,7 +98,7 @@ void DrawEffectOfChangeInCrossSection(const char* fileName) {
   null->GetYaxis()->SetTitle("Ratio pythia/modified cross-sections");
   null->Draw();
 
-  TLatex* text[3];
+  TLatex* text[9];
 
   for(Int_t i=1; i<nChanges; i++) {
     hRatios[i]->Draw("same");