Updated PbPb systematic errors (close to final)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Nov 2011 16:44:02 +0000 (16:44 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Nov 2011 16:44:02 +0000 (16:44 +0000)
PWG3/vertexingHF/AliHFSystErr.cxx

index 99c475d..8351f79 100644 (file)
@@ -210,41 +210,26 @@ void AliHFSystErr::InitD0toKpi2010PbPb020() {
 
   // Tracking efficiency
   fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20);
-  for(Int_t i=2;i<=12;i++) fTrackingEff->SetBinContent(i,0.05+0.005*(Float_t)i);
+  for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.08);//0.05+0.005*(Float_t)i);
 
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",20,0,20);
   fRawYield->SetBinContent(1,0);
   fRawYield->SetBinContent(2,0);
-  fRawYield->SetBinContent(3,0.05);
-  fRawYield->SetBinContent(4,0.05);
-  fRawYield->SetBinContent(5,0.10);
-  fRawYield->SetBinContent(6,0.10);
-  for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.05);
- // for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,0);
+  fRawYield->SetBinContent(3,0.08);
+  for(Int_t i=4;i<=12;i++) fRawYield->SetBinContent(i,0.06);
+  for(Int_t i=13;i<=16;i++) fRawYield->SetBinContent(i,0.10);
 
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20);
   fCutsEff->SetBinContent(1,0.);
   fCutsEff->SetBinContent(2,0.);
-  fCutsEff->SetBinContent(3,0.18);
-  fCutsEff->SetBinContent(4,0.18);
-  fCutsEff->SetBinContent(5,0.18);
-  fCutsEff->SetBinContent(6,0.15);
-  fCutsEff->SetBinContent(7,0.15);
-  fCutsEff->SetBinContent(8,0.15);
-fCutsEff->SetBinContent(9,0.15);
- fCutsEff->SetBinContent(10,0.15);
-  fCutsEff->SetBinContent(11,0.15);
-  fCutsEff->SetBinContent(12,0.15);
- // for(Int_t i=13;i<=20;i++) fCutsEff->SetBinContent(i,0.);
+  for(Int_t i=3;i<=16;i++) fCutsEff->SetBinContent(i,0.10);
+  for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.);
 
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20);
-  for(Int_t i=3;i<=12;i++) fPIDEff->SetBinContent(i,0.05);
-  fPIDEff->SetBinContent(5,0.10);
-  fPIDEff->SetBinContent(6,0.10);
+  for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05);
 
   // MC dN/dpt
   fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20);
@@ -252,14 +237,13 @@ fCutsEff->SetBinContent(9,0.15);
   fMCPtShape->SetBinContent(1,0.03);
   fMCPtShape->SetBinContent(2,0.03);
 
-
-  // particle-antiparticle
-  fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20);
-  for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05);
-  fPartAntipart->SetBinContent(3,0.10);
-  fPartAntipart->SetBinContent(4,0.10);
-  fPartAntipart->SetBinContent(7,0.10);
-  fPartAntipart->SetBinContent(8,0.10);
+//   // particle-antiparticle
+//   fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20);
+//   for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05);
+//   fPartAntipart->SetBinContent(3,0.10);
+//   fPartAntipart->SetBinContent(4,0.10);
+//   fPartAntipart->SetBinContent(7,0.10);
+//   fPartAntipart->SetBinContent(8,0.10);
   
   return;
 }
@@ -280,35 +264,28 @@ void AliHFSystErr::InitD0toKpi2010PbPb4080() {
 
   // Tracking efficiency
   fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20);
-  for(Int_t i=2;i<=12;i++) fTrackingEff->SetBinContent(i,0.5*(0.05+0.005*(Float_t)i));
+  for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.08);//0.5*(0.05+0.005*(Float_t)i));
 
 
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",20,0,20);
   fRawYield->SetBinContent(1,0);
   fRawYield->SetBinContent(2,0);
-  for(Int_t i=3;i<=12;i++) fRawYield->SetBinContent(i,0.05);
+  for(Int_t i=3;i<=16;i++) fRawYield->SetBinContent(i,0.05);
   //for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,0);
 
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20);
   fCutsEff->SetBinContent(1,0.);
   fCutsEff->SetBinContent(2,0.);
-  fCutsEff->SetBinContent(3,0.15);
-  fCutsEff->SetBinContent(4,0.15);
-  fCutsEff->SetBinContent(5,0.15);
-  fCutsEff->SetBinContent(6,0.15);
-  fCutsEff->SetBinContent(7,0.15);
-  fCutsEff->SetBinContent(8,0.15);
-  fCutsEff->SetBinContent(9,0.15);
-  fCutsEff->SetBinContent(10,0.15);
-  fCutsEff->SetBinContent(11,0.15);
-  fCutsEff->SetBinContent(12,0.15);
- // for(Int_t i=13;i<=20;i++) fCutsEff->SetBinContent(i,0.);
+  for(Int_t i=3;i<=16;i++) fCutsEff->SetBinContent(i,0.10);
+  for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.);
 
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20);
-  for(Int_t i=3;i<=12;i++) fPIDEff->SetBinContent(i,0.05);
+//   for(Int_t i=3;i<=6;i++) fPIDEff->SetBinContent(i,0.10);
+//   for(Int_t i=7;i<=16;i++) fPIDEff->SetBinContent(i,0.05);
+  for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05);
 
   // MC dN/dpt
   fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20);
@@ -316,9 +293,9 @@ void AliHFSystErr::InitD0toKpi2010PbPb4080() {
   fMCPtShape->SetBinContent(1,0.03);
   fMCPtShape->SetBinContent(2,0.03);
 
-  // particle-antiparticle
-  fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20);
-  for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05);
+//   // particle-antiparticle
+//   fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20);
+//   for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05);
   
   return;
 }
@@ -333,7 +310,7 @@ void AliHFSystErr::InitD0toKpi2010ppLowEn() {
 
   // Normalization
   fNorm = new TH1F("fNorm","fNorm",20,0,20);
-  for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and
+  for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and
 
   // Branching ratio 
   fBR = new TH1F("fBR","fBR",20,0,20);
@@ -346,11 +323,11 @@ void AliHFSystErr::InitD0toKpi2010ppLowEn() {
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",20,0,20);
   fRawYield->SetBinContent(1,1);
-  fRawYield->SetBinContent(2,1);
+  fRawYield->SetBinContent(2,0.2);
   fRawYield->SetBinContent(3,0.2);
   fRawYield->SetBinContent(4,0.2);
-  fRawYield->SetBinContent(5,0.1);
-  fRawYield->SetBinContent(6,0.1);
+  fRawYield->SetBinContent(5,0.15);
+  fRawYield->SetBinContent(6,0.15);
   fRawYield->SetBinContent(7,0.2);
   fRawYield->SetBinContent(8,0.2);
   for(Int_t i=9;i<=20;i++) fRawYield->SetBinContent(i,0.065);
@@ -358,14 +335,18 @@ void AliHFSystErr::InitD0toKpi2010ppLowEn() {
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20);
   for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.18); // 10% 
+  for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% 
+  fCutsEff->SetBinContent(2,0.15);
+  fCutsEff->SetBinContent(3,0.05);
+  fCutsEff->SetBinContent(4,0.05);
 
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20);
   for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.20); // 10%
-  fPIDEff->SetBinContent(3,0.25); // 10%
-  fPIDEff->SetBinContent(4,0.25); // 10%
-  fPIDEff->SetBinContent(7,0.25); // 10%
-  fPIDEff->SetBinContent(8,0.25); // 10%
+  fPIDEff->SetBinContent(3,0.20); // 10%
+  fPIDEff->SetBinContent(4,0.20); // 10%
+  fPIDEff->SetBinContent(7,0.10); // 10%
+  fPIDEff->SetBinContent(8,0.10); // 10%
 
   // MC dN/dpt
   fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20);
@@ -378,6 +359,7 @@ void AliHFSystErr::InitD0toKpi2010ppLowEn() {
   fPartAntipart->SetBinContent(1,1);
   fPartAntipart->SetBinContent(2,1);
   for(Int_t i=3;i<=6;i++) fPartAntipart->SetBinContent(i,0.08);
+  for(Int_t i=1;i<=20;i++) fPartAntipart->SetBinContent(i,0.);
   
   return;
 }
@@ -523,22 +505,19 @@ void AliHFSystErr::InitDplustoKpipi2010PbPb020() {
 
   // Tracking efficiency
   fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20);
-  for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,i,0.075+0.005*(Float_t)i); 
-
+  for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) //i,0.075+0.005*(Float_t)i); 
 
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",20,0,20);
-  for(Int_t i=1;i<=20;i++) fRawYield->SetBinContent(i,1);  //5 to 10%
-//   for(Int_t i=6;i<=7;i++) fRawYield->SetBinContent(i,0.32);
-//   for(Int_t i=7;i<=9;i++) fRawYield->SetBinContent(i,0.32);
-//   for(Int_t i=9;i<=12;i++) fRawYield->SetBinContent(i,0.05);//31./156.);
-  fRawYield->SetBinContent(6,0.12);
-  fRawYield->SetBinContent(7,0.17);
-  fRawYield->SetBinContent(8,0.17);
-  fRawYield->SetBinContent(9,0.08);
-  fRawYield->SetBinContent(10,0.08);
-  fRawYield->SetBinContent(11,0.08);
-  fRawYield->SetBinContent(12,0.08);
+  for(Int_t i=1;i<=20;i++) fRawYield->SetBinContent(i,.10);  //5 to 10%
+  // fRawYield->SetBinContent(5,0.23);
+  //fRawYield->SetBinContent(6,0.23);
+  fRawYield->SetBinContent(7,0.23);
+  fRawYield->SetBinContent(8,0.23);
+  fRawYield->SetBinContent(9,0.13);
+  fRawYield->SetBinContent(10,0.13);
+  fRawYield->SetBinContent(11,0.13);
+  fRawYield->SetBinContent(12,0.13);
 
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20);
@@ -547,8 +526,6 @@ void AliHFSystErr::InitDplustoKpipi2010PbPb020() {
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20);
   for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5%
-  fPIDEff->SetBinContent(3,0.13); // 13%
 
   // MC dN/dpt  (copied from D0 : will update later)
   fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20);
@@ -565,6 +542,7 @@ void AliHFSystErr::InitDplustoKpipi2010PbPb020() {
   fPartAntipart->SetBinContent(3,0.12);
   for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05);   //5 to 12%
   */
+
   return;
 }
 
@@ -798,6 +776,7 @@ void AliHFSystErr::InitDstartoD0pi2010ppLowEn() {
 
   return;
 }
+
 //------------------------------------------------------------------------
 void AliHFSystErr::InitDstartoD0pi2010PbPb020() {
   // 
@@ -817,12 +796,16 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb020() {
 
   // Tracking efficiency
   fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);;
-  for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 3% (1% per track)
+  for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track)i,0.075+0.005*(Float_t)i); 
 
 
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",24,0,24);
-  for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.15);  //4%
+  for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.1);  //4%
+  fRawYield->SetBinContent(3,0.2);
+  fRawYield->SetBinContent(4,0.2);
+  fRawYield->SetBinContent(5,0.2);
+  fRawYield->SetBinContent(6,0.2);
  
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24);
@@ -830,7 +813,7 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb020() {
 
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24);
-  for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3%
+  for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3%
  
 
   // MC dN/dpt  (copied from D0 : will update later)
@@ -842,6 +825,7 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb020() {
   return;
 
 }
+
 //-------------------------------------------------------------------------
 void AliHFSystErr::InitDstartoD0pi2010PbPb2040() {
   // 
@@ -886,6 +870,7 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb2040() {
   return;
 
 }
+
 //--------------------------------------------------------------------------
 void AliHFSystErr::InitDstartoD0pi2010PbPb4080() {
   // 
@@ -905,20 +890,37 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb4080() {
 
   // Tracking efficiency
   fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);;
-  for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 3% (1% per track)
+  for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12);//0.5*(0.075+0.005*(Float_t)i));
 
 
   // Raw yield extraction
   fRawYield = new TH1F("fRawYield","fRawYield",24,0,24);
-  for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.15);  //4%
+  for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.2);  //4%
+  fRawYield->SetBinContent(1,1);
+  fRawYield->SetBinContent(2,0.15);
+  fRawYield->SetBinContent(3,0.15);
+  fRawYield->SetBinContent(4,0.15);
+  fRawYield->SetBinContent(5,0.15);
+  fRawYield->SetBinContent(6,0.10);
+  fRawYield->SetBinContent(7,0.10);
+  fRawYield->SetBinContent(8,0.10);
+  fRawYield->SetBinContent(9,0.11);
+  fRawYield->SetBinContent(10,0.11);
+  fRawYield->SetBinContent(11,0.11);
+  fRawYield->SetBinContent(12,0.11);
+  fRawYield->SetBinContent(13,0.08);
+  fRawYield->SetBinContent(14,0.08);
+  fRawYield->SetBinContent(15,0.08);
+  fRawYield->SetBinContent(16,0.08);
+
+
   // Cuts efficiency (from cuts variation)
   fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24);
   for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10%
 
   // PID efficiency (from PID/noPID)
   fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24);
-  for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3%
+  for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3%
  
 
   // MC dN/dpt  (copied from D0 : will update later)
@@ -930,6 +932,7 @@ void AliHFSystErr::InitDstartoD0pi2010PbPb4080() {
   return;
 
 }
+
 //--------------------------------------------------------------------------
 Double_t AliHFSystErr::GetCutsEffErr(Double_t pt) const {
   //