]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added missing histogram
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 16:01:58 +0000 (16:01 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2012 16:01:58 +0000 (16:01 +0000)
PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraAODHistoManager.cxx
PWGLF/SPECTRA/PiKaPr/TestAOD/Histograms.h

index 03342c62c1192dc407a3083bedc5dfd5911d8b15..c89189ad917cb00534e0bd710c968f46eed5b500 100644 (file)
@@ -265,6 +265,9 @@ TH1* AliSpectraAODHistoManager::GetHistogram1D(UInt_t histoType, UInt_t particle
   case kHistPtRecTruePrimary:
     baseId = kHistPtRecTruePrimaryPionPlus;
     break;
+  case kHistPtRecPrimary:
+    baseId = kHistPtRecPrimaryPionPlus;
+    break;
   case kHistPtRecSigmaPrimary:
     baseId = kHistPtRecSigmaPrimaryPionPlus;
     break;
@@ -288,7 +291,7 @@ TH1* AliSpectraAODHistoManager::GetHistogram1D(UInt_t histoType, UInt_t particle
   }
   
   if (baseId < 0)
-    AliFatal("Wrong histogram type");
+    AliFatal(Form("Wrong histogram type %d", histoType));
 
   baseId = baseId + particleType + 3*(charge);
   //  cout << "ID " << baseId << endl;
index 2ae3447b8367c37ba51594781a46f079c662f939..9ae0c9ab86bd71cfa292797f89a184c6f8fa6ae8 100644 (file)
@@ -31,7 +31,7 @@ namespace AliSpectraNameSpace
       kHistPtRecSigmaKaonMinus,                 // Pt histo for kaons -, reconstructed tracks, sigma ID
       kHistPtRecSigmaProtonMinus,               // Pt histo for protons -, reconstructed tracks, sigma ID
       
-      // 6 Pt Reconstructed True
+      // 6 Pt Reconstructed True & identified with nsigma
       kHistPtRecTruePionPlus,                   // Pt histo for pions +, reconstructed tracks, true ID
       kHistPtRecTrueKaonPlus,                   // Pt histo for kaons +, reconsructed tracks, true ID
       kHistPtRecTrueProtonPlus,                 // Pt histo for protons +, reconstructed tracks, true ID
@@ -40,6 +40,16 @@ namespace AliSpectraNameSpace
       kHistPtRecTrueProtonMinus,                // Pt histo for protons -, reconstructed tracks, true ID
       kHistPtRecTrueMuonPlus,                   // Pt histo for muons +, reconstructed tracks, true ID,
       kHistPtRecTrueMuonMinus,                  // Pt histo for muons +, reconstructed tracks, true ID,
+
+      // 6 Pt Reconstructed True & (regardless of the offline nsigma identification)
+      kHistPtRecPrimaryPionPlus,                   // Pt histo for pions +, reconstructed tracks, true ID
+      kHistPtRecPrimaryKaonPlus,                   // Pt histo for kaons +, reconsructed tracks, true ID
+      kHistPtRecPrimaryProtonPlus,                 // Pt histo for protons +, reconstructed tracks, true ID
+      kHistPtRecPrimaryPionMinus,                  // Pt histo for pions -, reconstructed tracks, true ID
+      kHistPtRecPrimaryKaonMinus,                  // Pt histo for kaons -, reconstructed tracks, true ID
+      kHistPtRecPrimaryProtonMinus,                // Pt histo for protons -, reconstructed tracks, true ID
+      kHistPtRecPrimaryMuonPlus,                   // Pt histo for muons +, reconstructed tracks, true ID,
+      kHistPtRecPrimaryMuonMinus,                  // Pt histo for muons +, reconstructed tracks, true ID,
             
       // 6 Pt Reconstructed Sigma Primary
       kHistPtRecSigmaPrimaryPionPlus,           // Pt histo for pions +, reconstructed tracks, sigma ID, primary Event