Changes for decay length debugging.
authorddobrigk <ddobrigk@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Nov 2012 13:36:36 +0000 (13:36 +0000)
committerddobrigk <ddobrigk@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Nov 2012 13:36:36 +0000 (13:36 +0000)
PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractPerformanceV0.cxx
PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractPerformanceV0.h
PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0.cxx
PWGLF/STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0.h

index 1a997ac..bdb46e9 100644 (file)
@@ -372,6 +372,15 @@ void AliAnalysisTaskExtractPerformanceV0::UserCreateOutputObjects()
         fTree->Branch("fTreeVariableMCV0Py",&fTreeVariableMCV0Py,"fTreeVariableMCV0Py/F");
         fTree->Branch("fTreeVariableMCV0Pz",&fTreeVariableMCV0Pz,"fTreeVariableMCV0Pz/F");
 
+//-----------FOR CTAU DEBUGGING: Primary vertex info 
+        fTree->Branch("fTreeVariablePVx",&fTreeVariablePVx,"fTreeVariablePVx/F");
+        fTree->Branch("fTreeVariablePVy",&fTreeVariablePVy,"fTreeVariablePVy/F");
+        fTree->Branch("fTreeVariablePVz",&fTreeVariablePVz,"fTreeVariablePVz/F");
+
+        fTree->Branch("fTreeVariableMCPVx",&fTreeVariableMCPVx,"fTreeVariableMCPVx/F");
+        fTree->Branch("fTreeVariableMCPVy",&fTreeVariableMCPVy,"fTreeVariableMCPVy/F");
+        fTree->Branch("fTreeVariableMCPVz",&fTreeVariableMCPVz,"fTreeVariableMCPVz/F");
+
 //------------------------------------------------
 // Particle Identification Setup
 //------------------------------------------------
@@ -1199,6 +1208,14 @@ void AliAnalysisTaskExtractPerformanceV0::UserExec(Option_t *)
 
   fTreeVariableVertexZ = lPrimaryVtxPosition[2];
 
+  fTreeVariablePVx = lPrimaryVtxPosition[0];
+  fTreeVariablePVy = lPrimaryVtxPosition[1];
+  fTreeVariablePVz = lPrimaryVtxPosition[2];
+
+  fTreeVariableMCPVx = (mcPrimaryVtx.At(0));
+  fTreeVariableMCPVy = (mcPrimaryVtx.At(1));
+  fTreeVariableMCPVz = (mcPrimaryVtx.At(2));
+
 //------------------------------------------------
 // stack loop starts here
 //------------------------------------------------
index 33c0355..eb6dfbe 100644 (file)
@@ -149,6 +149,14 @@ class AliAnalysisTaskExtractPerformanceV0 : public AliAnalysisTaskSE {
   Float_t fTreeVariableMCV0Py; //!
   Float_t fTreeVariableMCV0Pz; //!
 
+  Float_t fTreeVariablePVx; //!
+  Float_t fTreeVariablePVy; //!
+  Float_t fTreeVariablePVz; //!
+
+  Float_t fTreeVariableMCPVx; //!
+  Float_t fTreeVariableMCPVy; //!
+  Float_t fTreeVariableMCPVz; //!
+
 //===========================================================================================
 //   Histograms
 //===========================================================================================
index f1ef5b7..6c90c0f 100644 (file)
@@ -239,6 +239,10 @@ void AliAnalysisTaskExtractV0::UserCreateOutputObjects()
 /*25*/ fTree->Branch("fTreeVariableRunNumber",&fTreeVariableRunNumber,"fTreeVariableRunNumber/I");
 /*26*/ fTree->Branch("fTreeVariableEventNumber",&fTreeVariableEventNumber,"fTreeVariableEventNumber/l");
 //-----------FOR CTAU DEBUGGING: Full Phase Space + Decay Position Info 
+        fTree->Branch("fTreeVariablePVx",&fTreeVariablePVx,"fTreeVariablePVx/F");
+        fTree->Branch("fTreeVariablePVy",&fTreeVariablePVy,"fTreeVariablePVy/F");
+        fTree->Branch("fTreeVariablePVz",&fTreeVariablePVz,"fTreeVariablePVz/F");
+
         fTree->Branch("fTreeVariableV0x",&fTreeVariableV0x,"fTreeVariableV0x/F");
         fTree->Branch("fTreeVariableV0y",&fTreeVariableV0y,"fTreeVariableV0y/F");
         fTree->Branch("fTreeVariableV0z",&fTreeVariableV0z,"fTreeVariableV0z/F");
@@ -603,6 +607,10 @@ void AliAnalysisTaskExtractV0::UserExec(Option_t *)
       fHistPVzAnalysis->Fill( tPrimaryVtxPosition[2] );
    }
 
+  fTreeVariablePVx = tPrimaryVtxPosition[0];
+  fTreeVariablePVy = tPrimaryVtxPosition[1];
+  fTreeVariablePVz = tPrimaryVtxPosition[2];
+
 //Variable definition
    Int_t    lOnFlyStatus = 0;// nv0sOn = 0, nv0sOff = 0;
    Double_t lChi2V0 = 0;
index 425eb67..74500b1 100644 (file)
@@ -122,6 +122,10 @@ class AliAnalysisTaskExtractV0 : public AliAnalysisTaskSE {
   Float_t fTreeVariableV0Py; //!
   Float_t fTreeVariableV0Pz; //!
 
+  Float_t fTreeVariablePVx; //!
+  Float_t fTreeVariablePVy; //!
+  Float_t fTreeVariablePVz; //!
+
 //Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength.
 
        TH1F    *fHistV0MultiplicityBeforeTrigSel;             //! V0 multiplicity distribution