new centrality class in the tree
authornmartin <nmartin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Jun 2013 12:14:57 +0000 (12:14 +0000)
committernmartin <nmartin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Jun 2013 12:14:57 +0000 (12:14 +0000)
PWGLF/STRANGENESS/Hypernuclei/AliAnalysisTaskLambdaNAOD.cxx
PWGLF/STRANGENESS/Hypernuclei/AliAnalysisTaskLambdaNAOD.h

index 15b49a8..2d5df3e 100644 (file)
@@ -316,7 +316,8 @@ void AliAnalysisTaskLambdaNAOD::UserCreateOutputObjects(){
   fTreeV0->Branch("fkEMCEJE",fkEMCEJE,"fkEMCEJE[fItrk]/I");
   fTreeV0->Branch("fkEMCEGA",fkEMCEGA,"fkEMCEGA[fItrk]/I");
 
-  fTreeV0->Branch("fCentrality",fCentrality,"fCentrality[fItrk]/I");
+  fTreeV0->Branch("fCentralityClass10",fCentralityClass10,"fCentralityClass10[fItrk]/I");
+  fTreeV0->Branch("fCentralityPercentile",fCentralityPercentile,"fCentralityPercentile[fItrk]/I");
   fTreeV0->Branch("fMultiplicity",fMultiplicity,"fMultipicity[fItrk]/I");
   fTreeV0->Branch("fRefMultiplicity",fRefMultiplicity,"fRefMultipicity[fItrk]/I");
 
@@ -679,7 +680,8 @@ void AliAnalysisTaskLambdaNAOD::UserExec(Option_t *){
    fkEMCEJE[fItrk]          = -1;
    fkEMCEGA[fItrk]          = -1;
 
-   fCentrality[fItrk]       = -1;
+   fCentralityClass10[fItrk]  = -1;
+   fCentralityPercentile[fItrk]  = -1;
    fMultiplicity[fItrk]     = -1;
    fRefMultiplicity[fItrk]     = -1;
 
@@ -1265,7 +1267,8 @@ void AliAnalysisTaskLambdaNAOD::UserExec(Option_t *){
          fkEMCEJE[fItrk]          = fTriggerFired[3];
          fkEMCEGA[fItrk]          = fTriggerFired[4];
 
-         fCentrality[fItrk]       = centralityClass10;
+         fCentralityClass10[fItrk]= centralityClass10;
+          fCentralityPercentile[fItrk]= centralityPercentile;
          fMultiplicity[fItrk]     = nTrackMultiplicity;
           fRefMultiplicity[fItrk]  = refMultTpc;
          
index e57711a..5faccc3 100644 (file)
@@ -160,9 +160,11 @@ class AliAnalysisTaskLambdaNAOD : public AliAnalysisTaskSE {
   Int_t fkEMCEJE[maxNofTracks];                                //! Tree variable
   Int_t fkEMCEGA[maxNofTracks];                                //! Tree variable 
 
-  Int_t fCentrality[maxNofTracks];                             //! Tree variable
+  Int_t fCentralityClass10[maxNofTracks];                      //! Tree variable 
+  Int_t fCentralityPercentile[maxNofTracks];                   //! Tree variable
   Int_t fMultiplicity[maxNofTracks];                           //! Tree variable
-  Int_t fRefMultiplicity[maxNofTracks];                        //! Tree variable                                                                                                     
+  Int_t fRefMultiplicity[maxNofTracks];                        //! Tree variable
+
   Double_t fPtotN[maxNofTracks];                               //! Tree variable
   Double_t fPtotP[maxNofTracks];                               //! Tree variable
   Double_t fMotherPt[maxNofTracks];                            //! Tree variable