move from AliAODTrack to AliVTrack
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 22:23:29 +0000 (22:23 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 22:23:29 +0000 (22:23 +0000)
PWG4/PartCorrDep/AliAnaChargedParticles.cxx
PWG4/PartCorrDep/AliAnaExample.cxx
PWG4/PartCorrDep/AliAnaParticleHadronCorrelation.cxx
PWG4/PartCorrDep/AliAnaParticleIsolation.cxx
PWG4/PartCorrDep/AliAnaParticleJetFinderCorrelation.cxx
PWG4/PartCorrDep/AliAnaParticleJetLeadingConeCorrelation.cxx

index 20519e7..a53d9fc 100755 (executable)
@@ -34,7 +34,7 @@
 #include "AliAODPWG4Particle.h"
 #include "AliStack.h"
 #include "AliFiducialCut.h"
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 #include "AliAODMCParticle.h"
 
 ClassImp(AliAnaChargedParticles)
@@ -274,7 +274,7 @@ void  AliAnaChargedParticles::MakeAnalysisFillAOD()
   Int_t evtIndex = 0;
   for(Int_t i = 0; i < ntracks; i++){
     
-    AliAODTrack * track =  (AliAODTrack*) (GetCTSTracks()->At(i));
+    AliVTrack * track =  (AliVTrack*) (GetCTSTracks()->At(i));
     
     //Fill AODParticle after some selection       
     Double_t mom[3] = {track->Px(),track->Py(),track->Pz()};
@@ -328,7 +328,7 @@ void  AliAnaChargedParticles::MakeAnalysisFillHistograms()
     fhPhi->Fill(tr->Pt(), tr->Phi());
     fhEta->Fill(tr->Pt(), tr->Eta());
     //for charge information
-    AliAODTrack * track =  (AliAODTrack*) (GetCTSTracks()->At(iaod));
+    AliVTrack * track =  (AliVTrack*) (GetCTSTracks()->At(iaod));
     if(track->Charge()>0)fhPtEtaPhiPos->Fill(tr->Pt(), tr->Eta(),tr->Phi());
     if(track->Charge()<0)fhPtEtaPhiNeg->Fill(tr->Pt(), tr->Eta(),tr->Phi());
     
index f1259a8..4abbd5b 100755 (executable)
@@ -43,7 +43,7 @@
 #include "AliCaloPID.h"
 #include "AliFiducialCut.h"
 #include "AliVCluster.h"
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 
 ClassImp(AliAnaExample)
   
@@ -215,7 +215,7 @@ void  AliAnaExample::MakeAnalysisFillAOD()
     TVector3 p3;
     for(Int_t i = 0; i < GetCTSTracks()->GetEntriesFast(); i++){
       
-      AliAODTrack * track =  (AliAODTrack*) (GetCTSTracks()->At(i));
+      AliVTrack * track =  (AliVTrack*) (GetCTSTracks()->At(i));
       
       //Fill AODParticle after some selection       
       Double_t mom[3] = {track->Px(),track->Py(),track->Pz()};
index 38015d5..7e948f1 100755 (executable)
@@ -41,7 +41,7 @@
 #include "AliCaloPID.h"
 #include "AliAODPWG4ParticleCorrelation.h"
 #include "AliFiducialCut.h"
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 #include "AliVCluster.h"
 #include "AliMCAnalysisUtils.h"
 #include "TParticle.h"
@@ -840,7 +840,7 @@ void  AliAnaParticleHadronCorrelation::MakeChargedCorrelation(AliAODPWG4Particle
   //Track loop, select tracks with good pt, phi and fill AODs or histograms
   //Int_t currentIndex = -1 ; 
   for(Int_t ipr = 0;ipr < pl->GetEntriesFast() ; ipr ++ ){
-    AliAODTrack * track = (AliAODTrack *) (pl->At(ipr)) ;
+    AliVTrack * track = (AliVTrack *) (pl->At(ipr)) ;
 
     //check if inside the vertex cut
     //printf("charge = %d\n", track->Charge());
index bd2ec4a..0a8bc03 100755 (executable)
@@ -42,7 +42,7 @@
 #include "AliNeutralMesonSelection.h"
 #include "AliAODPWG4ParticleCorrelation.h"
 #include "AliMCAnalysisUtils.h"
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 #include "AliVCluster.h"
 
 ClassImp(AliAnaParticleIsolation)
@@ -657,7 +657,7 @@ void  AliAnaParticleIsolation::MakeAnalysisFillHistograms()
     Double_t sumptFR = 0. ;
     TObjArray * trackList   = GetCTSTracks() ;
     for(Int_t itrack=0; itrack < trackList->GetEntriesFast(); itrack++){
-      AliAODTrack* track = (AliAODTrack *) trackList->At(itrack);
+      AliVTrack* track = (AliVTrack *) trackList->At(itrack);
       //fill the histograms at forward range
       if(!track){
         printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Track not available?");
@@ -680,7 +680,7 @@ void  AliAnaParticleIsolation::MakeAnalysisFillHistograms()
     fhFRConeSumPt->Fill(ptcluster,sumptFR);
     if(reftracks){  
       for(Int_t itrack=0; itrack < reftracks->GetEntriesFast(); itrack++){
-        AliAODTrack* track = (AliAODTrack *) reftracks->At(itrack);
+        AliVTrack* track = (AliVTrack *) reftracks->At(itrack);
         fhPtInCone->Fill(ptcluster,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py()));
         coneptsum+=track->Pt();
       }
index 7554570..57100d0 100755 (executable)
@@ -31,7 +31,7 @@
 #include "AliAODJet.h"
 #include "AliAnaParticleJetFinderCorrelation.h" 
 #include "AliAODPWG4ParticleCorrelation.h"
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 #include "AliAODCaloCluster.h"
 #include "AliAODEvent.h"
 
@@ -360,12 +360,12 @@ void  AliAnaParticleJetFinderCorrelation::MakeAnalysisFillHistograms()
     else //If you want to use jet tracks from JETAN
       ntracks =  (jet->GetRefTracks())->GetEntriesFast();
     
-    AliAODTrack* track = 0x0 ;
+    AliVTrack* track = 0x0 ;
     for(Int_t ipr = 0;ipr < ntracks ; ipr ++ ){
       if(!fUseJetRefTracks)
-        track = (AliAODTrack *) (GetCTSTracks()->At(ipr)) ; 
+        track = (AliVTrack *) (GetCTSTracks()->At(ipr)) ; 
       else //If you want to use jet tracks from JETAN
-        track = (AliAODTrack *) ((jet->GetRefTracks())->At(ipr));
+        track = (AliVTrack *) ((jet->GetRefTracks())->At(ipr));
       
       p3.SetXYZ(track->Px(),track->Py(),track->Pz());
       pt    = p3.Pt();
index 8916930..b61bfe9 100755 (executable)
@@ -35,7 +35,7 @@
 //#include "Riostream.h"
 
 //---- Analysis system ----
-#include "AliAODTrack.h"
+#include "AliVTrack.h"
 #include "AliVCluster.h"
 #include "AliCaloTrackReader.h"
 #include "AliNeutralMesonSelection.h"
@@ -43,7 +43,6 @@
 #include "AliCaloPID.h"
 #include "AliAODPWG4ParticleCorrelation.h"
 #include "AliFiducialCut.h"
-#include "AliAODTrack.h"
 
 ClassImp(AliAnaParticleJetLeadingConeCorrelation)
 
@@ -435,7 +434,7 @@ void AliAnaParticleJetLeadingConeCorrelation::FillJetHistos(AliAODPWG4ParticleCo
   Int_t nTracksInCone = 0; 
   
   for(Int_t ipr = 0;ipr < pl->GetEntriesFast() ; ipr ++ ){
-    AliAODTrack* track = dynamic_cast<AliAODTrack *>(pl->At(ipr)) ;
+    AliVTrack* track = dynamic_cast<AliVTrack *>(pl->At(ipr)) ;
     if(track)p3.SetXYZ(track->Px(),track->Py(),track->Pz());
     else printf("AliAnaParticleJetLeadingConeCorrelation::FillJetHistos() - Track not available\n");
     
@@ -912,7 +911,7 @@ void  AliAnaParticleJetLeadingConeCorrelation::GetLeadingCharge(AliAODPWG4Partic
     TVector3 p3;
     
     for(Int_t ipr = 0;ipr < GetCTSTracks()->GetEntriesFast() ; ipr ++ ){
-      AliAODTrack* track = (AliAODTrack *)(GetCTSTracks()->At(ipr)) ;
+      AliVTrack* track = (AliVTrack *)(GetCTSTracks()->At(ipr)) ;
       p3.SetXYZ(track->Px(),track->Py(),track->Pz());
       pt   = p3.Pt();
       phi  = p3.Phi() ;
@@ -1461,7 +1460,7 @@ void AliAnaParticleJetLeadingConeCorrelation::MakeAODJet(AliAODPWG4ParticleCorre
   TObjArray * reftracksbkg  = new TObjArray;
   
   for(Int_t ipr = 0;ipr < (GetCTSTracks())->GetEntriesFast() ; ipr ++ ){
-    AliAODTrack* track = (AliAODTrack *)((GetCTSTracks())->At(ipr)) ;
+    AliVTrack* track = (AliVTrack *)((GetCTSTracks())->At(ipr)) ;
     p3.SetXYZ(track->Px(),track->Py(),track->Pz());
     
     //Particles in jet 
@@ -1598,7 +1597,7 @@ void AliAnaParticleJetLeadingConeCorrelation::MakeJetFromAOD(AliAODPWG4ParticleC
   TVector3 p3;
   if(reftracks){
     for(Int_t ipr = 0;ipr < reftracks->GetEntriesFast() ; ipr ++ ){
-      AliAODTrack* track = (AliAODTrack *) reftracks->At(ipr) ;
+      AliVTrack* track = (AliVTrack *) reftracks->At(ipr) ;
       p3.SetXYZ(track->Px(),track->Py(),track->Pz());
       Float_t phi = p3.Phi();
       if(phi < 0) phi+=TMath::TwoPi();
@@ -1611,7 +1610,7 @@ void AliAnaParticleJetLeadingConeCorrelation::MakeJetFromAOD(AliAODPWG4ParticleC
   //Particles in background   
   if(reftracksbkg){
     for(Int_t ipr = 0;ipr < reftracksbkg->GetEntriesFast() ; ipr ++ ){
-      AliAODTrack* track = (AliAODTrack *) reftracksbkg->At(ipr) ;
+      AliVTrack* track = (AliVTrack *) reftracksbkg->At(ipr) ;
       p3.SetXYZ(track->Px(),track->Py(),track->Pz());
       if(p3.Pt() > ptcut && IsParticleInJetCone(p3.Eta(),p3.Phi(),etal, phiTrig) ) {  
        lv.SetVect(p3);