make ptmin setteable
authorloizides <cloizides@lbl.gov>
Tue, 12 Aug 2014 11:21:04 +0000 (13:21 +0200)
committerloizides <cloizides@lbl.gov>
Tue, 12 Aug 2014 11:21:04 +0000 (13:21 +0200)
EMCAL/AliEMCALRecoUtils.cxx
EMCAL/AliEMCALRecoUtils.h

index dbe223b..7a46f16 100644 (file)
@@ -2000,13 +2000,13 @@ Int_t  AliEMCALRecoUtils::FindMatchedClusterInClusterArr(const AliExternalTrackP
 
 //------------------------------------------------------------------------------------
 Bool_t AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(AliVTrack *track,
-                                                        Double_t emcalR, Double_t mass, Double_t step)
+                                                        Double_t emcalR, Double_t mass, Double_t step, Double_t minpt)
 { 
   // Extrapolate track to EMCAL surface
 
   track->SetTrackPhiEtaPtOnEMCal(-999, -999, -999);
 
-  if (track->Pt()<0.350) //todo: discuss with Marta, everywhere else we use pT=0
+  if (track->Pt()<minpt)
     return kFALSE;
 
   Double_t phi = track->Phi()*TMath::RadToDeg();
index 529d9dd..b974303 100644 (file)
@@ -226,7 +226,7 @@ public:
                                           const TObjArray * clusterArr, 
                                           Float_t &dEta, Float_t &dPhi);
   static Bool_t ExtrapolateTrackToEMCalSurface(AliVTrack *track, /*note, on success the call will change the track*/
-                                               Double_t emcalR=440, Double_t mass=0.1396, Double_t step=20); 
+                                               Double_t emcalR=440, Double_t mass=0.1396, Double_t step=20, Double_t minpT=0.35); 
   static Bool_t ExtrapolateTrackToEMCalSurface(AliExternalTrackParam *trkParam, 
                                                Double_t emcalR, Double_t mass, Double_t step, 
                                                Float_t &eta, Float_t &phi, Float_t &pt);