From 0e7de35b781258ee69c92a958fa0994933581c6f Mon Sep 17 00:00:00 2001 From: mploskon Date: Thu, 22 Sep 2011 08:51:37 +0000 Subject: [PATCH] by Rongrong: 1. Add an option to use loose track cuts without DCA cut 2. Enable the automatic rotation. --- EMCAL/AliEMCALRecoUtils.cxx | 10 ++++++++-- EMCAL/AliEMCALRecoUtils.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/EMCAL/AliEMCALRecoUtils.cxx b/EMCAL/AliEMCALRecoUtils.cxx index 7aaf608cfe2..5fad55a242b 100644 --- a/EMCAL/AliEMCALRecoUtils.cxx +++ b/EMCAL/AliEMCALRecoUtils.cxx @@ -1404,8 +1404,7 @@ Bool_t AliEMCALRecoUtils::ExtrapolateTrackToCluster(AliExternalTrackParam *trkP TVector3 vec(clsPos[0],clsPos[1],clsPos[2]); Double_t alpha = ((int)(vec.Phi()*TMath::RadToDeg()/20)+0.5)*20*TMath::DegToRad(); vec.RotateZ(-alpha); //Rotate the cluster to the local extrapolation coordinate system - trkParam->Rotate(alpha); //Rotate the track to the same local extrapolation system - if(!AliTrackerBase::PropagateTrackToBxByBz(trkParam, vec.X(), fMass, fStep,kFALSE, 0.8, -1)) return kFALSE; + if(!AliTrackerBase::PropagateTrackToBxByBz(trkParam, vec.X(), fMass, fStep,kTRUE, 0.99, -1)) return kFALSE; trkParam->GetXYZ(trkPos); //Get the extrapolated global position TVector3 clsPosVec(clsPos[0],clsPos[1],clsPos[2]); @@ -1694,6 +1693,13 @@ void AliEMCALRecoUtils::InitTrackCuts() break; } + + case kLooseCut: + { + AliInfo(Form("Track cuts for matching: Loose cut w/o DCA cut")); + SetMinNClustersTPC(50); + SetAcceptKinkDaughters(kFALSE); + } } } diff --git a/EMCAL/AliEMCALRecoUtils.h b/EMCAL/AliEMCALRecoUtils.h index 03945c28fad..f2292ef5f83 100644 --- a/EMCAL/AliEMCALRecoUtils.h +++ b/EMCAL/AliEMCALRecoUtils.h @@ -49,7 +49,7 @@ public: enum PositionAlgorithms{kUnchanged=-1,kPosTowerIndex=0, kPosTowerGlobal=1}; enum ParticleType{kPhoton=0, kElectron=1,kHadron =2, kUnknown=-1}; enum { kNCuts = 11 }; //track matching - enum TrackCutsType{kTPCOnlyCut=0, kGlobalCut=1}; + enum TrackCutsType{kTPCOnlyCut=0, kGlobalCut=1, kLooseCut=2}; //----------------------------------------------------- //Position recalculation -- 2.43.0