]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODEvent.cxx
Updated ITS PID parameters for MC tracks + usage of momentum at the vertex to paramet...
[u/mrichter/AliRoot.git] / STEER / AliAODEvent.cxx
index 318c85c1ca46c2d3af88709d0e388e40c6b9c0e6..350f99f09f7f1004cfbe5b674d7c020f7dc43b1f 100644 (file)
@@ -527,15 +527,15 @@ void AliAODEvent::ReadFromTree(TTree *tree, Option_t* opt /*= ""*/)
     TList* connectedList = (TList*) (tree->GetUserInfo()->FindObject("AODObjectsConnectedToTree"));
     if (connectedList && (strcmp(opt, "reconnect"))) {
         // If connected use the connected list of objects
-      fAODObjects->Delete();
-      fAODObjects = connectedList;
-      GetStdContent(); 
-      fConnected = kTRUE;
-      return;
+       fAODObjects->Delete();
+       fAODObjects = connectedList;
+       GetStdContent(); 
+       fConnected = kTRUE;
+       return;
     } 
       // Connect to tree
       // prevent a memory leak when reading back the TList
-      // if (!(strcmp(opt, "reconnect"))) fAODObjects->Delete();
+//      if (!(strcmp(opt, "reconnect"))) fAODObjects->Delete();
     
       // create a new TList from the UserInfo TList... 
       // copy constructor does not work...
@@ -705,7 +705,7 @@ Bool_t  AliAODEvent::IsPileupFromSPD(Int_t minContributors,
       Double_t z2=pv->GetZ();
       Double_t distZ=TMath::Abs(z2-z1);
       Double_t distZdiam=TMath::Abs(z2-GetDiamondZ());
-      Double_t cutZdiam=nSigmaDiamZ*GetSigma2DiamondZ();
+      Double_t cutZdiam=nSigmaDiamZ*TMath::Sqrt(GetSigma2DiamondZ());
       if(GetSigma2DiamondZ()<0.0001)cutZdiam=99999.; //protection for missing z diamond information
       if(distZ>minZdist && distZdiam<cutZdiam){
        Double_t x2=pv->GetX();