]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add method to recalculate track matching on ESD analysis
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Nov 2010 18:45:58 +0000 (18:45 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Nov 2010 18:45:58 +0000 (18:45 +0000)
Move AliEMCALTrack from rec library to Utils library

EMCAL/AliEMCALRecoUtils.cxx
EMCAL/AliEMCALRecoUtils.h
EMCAL/EMCALUtilsLinkDef.h
EMCAL/EMCALrecLinkDef.h
EMCAL/Makefile
EMCAL/libEMCALUtils.pkg
EMCAL/libEMCALrec.pkg

index 4b71f0cdb1c8d68f96720f182533b79885a1e1f3..ec8f74960ecbc57856fa82d9ad254d103eda6e60 100644 (file)
 #include "AliEMCALGeometry.h"
 #include "AliVCluster.h"
 #include "AliVCaloCells.h"
+#include "AliVEvent.h"
 #include "AliLog.h"
 #include "AliEMCALPIDUtils.h"
 #include "AliPID.h"
+#include "AliESDEvent.h"
+#include "AliESDtrack.h"
+#include "AliEMCALTrack.h"
 
 ClassImp(AliEMCALRecoUtils)
   
@@ -50,8 +54,13 @@ AliEMCALRecoUtils::AliEMCALRecoUtils():
   fNonLinearityFunction (kNoCorrection), fParticleType(kPhoton),
   fPosAlgo(kUnchanged),fW0(4.),
   fRecalibration(kFALSE), fEMCALRecalibrationFactors(),
-  fRemoveBadChannels(kFALSE),fEMCALBadChannelMap(),
-  fNCellsFromEMCALBorder(0),fNoEMCALBorderAtEta0(kTRUE), fPIDUtils()
+  fRemoveBadChannels(kFALSE), fEMCALBadChannelMap(),
+  fNCellsFromEMCALBorder(0), fNoEMCALBorderAtEta0(kTRUE),
+  fMatchedClusterIndex(0x0), fResidualZ(0x0), fResidualR(0x0), fCutR(40), fCutZ(20),
+  fCutMinNClusterTPC(0), fCutMinNClusterITS(0), fCutMaxChi2PerClusterTPC(0), fCutMaxChi2PerClusterITS(0),
+  fCutRequireTPCRefit(0), fCutRequireITSRefit(0), fCutAcceptKinkDaughters(0),
+  fCutMaxDCAToVertexXY(0), fCutMaxDCAToVertexZ(0),fCutDCAToVertex2D(0),
+  fPIDUtils()
 {
 //
   // Constructor.
@@ -68,9 +77,15 @@ AliEMCALRecoUtils::AliEMCALRecoUtils():
   fNonLinearityParams[0] = 0.1457/0.1349766/1.038;
   fNonLinearityParams[1] = -0.02024/0.1349766/1.038;
   fNonLinearityParams[2] = 1.046;
+
+  fMatchedClusterIndex = new TArrayI();
+  fResidualZ = new TArrayF();
+  fResidualR = new TArrayF();
   
   fPIDUtils = new AliEMCALPIDUtils();
 
+  InitTrackCuts();
+
 }
 
 //______________________________________________________________________
@@ -80,6 +95,15 @@ AliEMCALRecoUtils::AliEMCALRecoUtils(const AliEMCALRecoUtils & reco)
   fRecalibration(reco.fRecalibration),fEMCALRecalibrationFactors(reco.fEMCALRecalibrationFactors),
   fRemoveBadChannels(reco.fRemoveBadChannels),fEMCALBadChannelMap(reco.fEMCALBadChannelMap),
   fNCellsFromEMCALBorder(reco.fNCellsFromEMCALBorder),fNoEMCALBorderAtEta0(reco.fNoEMCALBorderAtEta0),
+  fMatchedClusterIndex(reco.fMatchedClusterIndex?new TArrayI(*reco.fMatchedClusterIndex):0x0),
+  fResidualZ(reco.fResidualZ?new TArrayF(*reco.fResidualZ):0x0),
+  fResidualR(reco.fResidualR?new TArrayF(*reco.fResidualR):0x0),
+  fCutR(reco.fCutR),fCutZ(reco.fCutZ),
+  fCutMinNClusterTPC(reco.fCutMinNClusterTPC), fCutMinNClusterITS(reco.fCutMinNClusterITS), 
+  fCutMaxChi2PerClusterTPC(reco.fCutMaxChi2PerClusterTPC), fCutMaxChi2PerClusterITS(reco.fCutMaxChi2PerClusterITS),
+  fCutRequireTPCRefit(reco.fCutRequireTPCRefit), fCutRequireITSRefit(reco.fCutRequireITSRefit),
+  fCutAcceptKinkDaughters(reco.fCutAcceptKinkDaughters),
+  fCutMaxDCAToVertexXY(reco.fCutMaxDCAToVertexXY), fCutMaxDCAToVertexZ(reco.fCutMaxDCAToVertexZ),fCutDCAToVertex2D(reco.fCutDCAToVertex2D),
   fPIDUtils(reco.fPIDUtils)
 
 {
@@ -90,6 +114,7 @@ AliEMCALRecoUtils::AliEMCALRecoUtils(const AliEMCALRecoUtils & reco)
       fMisalTransShift[i] = reco.fMisalTransShift[i]; 
   } 
   for(Int_t i = 0; i < 6  ; i++) fNonLinearityParams[i] = reco.fNonLinearityParams[i]; 
+
 }
 
 
@@ -111,11 +136,66 @@ AliEMCALRecoUtils & AliEMCALRecoUtils::operator = (const AliEMCALRecoUtils & rec
   fEMCALBadChannelMap    = reco.fEMCALBadChannelMap;
   fNCellsFromEMCALBorder = reco.fNCellsFromEMCALBorder;
   fNoEMCALBorderAtEta0   = reco.fNoEMCALBorderAtEta0;
-  fPIDUtils              = reco.fPIDUtils;
+
 
   for(Int_t i = 0; i < 15 ; i++) {fMisalTransShift[i] = reco.fMisalTransShift[i]; fMisalRotShift[i] = reco.fMisalRotShift[i];}
   for(Int_t i = 0; i < 6  ; i++) fNonLinearityParams[i] = reco.fNonLinearityParams[i]; 
   
+  fCutR                  = reco.fCutR;
+  fCutZ                  = reco.fCutZ;
+
+  fCutMinNClusterTPC        = reco.fCutMinNClusterTPC;
+  fCutMinNClusterITS        = reco.fCutMinNClusterITS; 
+  fCutMaxChi2PerClusterTPC  = reco.fCutMaxChi2PerClusterTPC;
+  fCutMaxChi2PerClusterITS  = reco.fCutMaxChi2PerClusterITS;
+  fCutRequireTPCRefit       = reco.fCutRequireTPCRefit;
+  fCutRequireITSRefit       = reco.fCutRequireITSRefit;
+  fCutAcceptKinkDaughters   = reco.fCutAcceptKinkDaughters;
+  fCutMaxDCAToVertexXY      = reco.fCutMaxDCAToVertexXY;
+  fCutMaxDCAToVertexZ       = reco.fCutMaxDCAToVertexZ;
+  fCutDCAToVertex2D         = reco.fCutDCAToVertex2D;
+
+  fPIDUtils              = reco.fPIDUtils;
+  
+  
+  if(reco.fResidualR){
+    // assign or copy construct
+    if(fResidualR){ 
+      *fResidualR = *reco.fResidualR;
+    }
+    else fResidualR = new TArrayF(*reco.fResidualR);
+  }
+  else{
+    if(fResidualR)delete fResidualR;
+    fResidualR = 0;
+  }
+  
+  if(reco.fResidualZ){
+    // assign or copy construct
+    if(fResidualZ){ 
+      *fResidualZ = *reco.fResidualZ;
+    }
+    else fResidualZ = new TArrayF(*reco.fResidualZ);
+  }
+  else{
+    if(fResidualZ)delete fResidualZ;
+    fResidualZ = 0;
+  }
+  
+  
+  if(reco.fMatchedClusterIndex){
+    // assign or copy construct
+    if(fMatchedClusterIndex){ 
+      *fMatchedClusterIndex = *reco.fMatchedClusterIndex;
+    }
+    else fMatchedClusterIndex = new TArrayI(*reco.fMatchedClusterIndex);
+  }
+  else{
+    if(fMatchedClusterIndex)delete fMatchedClusterIndex;
+    fMatchedClusterIndex = 0;
+  }
+  
+  
   return *this;
 }
 
@@ -134,7 +214,11 @@ AliEMCALRecoUtils::~AliEMCALRecoUtils()
                fEMCALBadChannelMap->Clear();
                delete  fEMCALBadChannelMap;
        }
-  
+  if(fMatchedClusterIndex) {delete fMatchedClusterIndex; fMatchedClusterIndex=0;}
+  if(fResidualR)           {delete fResidualR;           fResidualR=0;}
+  if(fResidualZ)           {delete fResidualZ;           fResidualZ=0;}
+
 }
 
 //_______________________________________________________________
@@ -754,6 +838,204 @@ void AliEMCALRecoUtils::RecalculateClusterShowerShapeParameters(AliEMCALGeometry
   
 }
 
+//__________________________________________________
+void AliEMCALRecoUtils::FindMatches(AliVEvent *event)
+{
+  //This function should be called before the cluster loop
+  //Before call this function, please recalculate the cluster positions
+  //Given the input event, loop over all the tracks, select the closest cluster as matched with fCutR
+  //Store matched cluster indexes and residuals
+  //It only works with ESDs, not AODs
+  
+  fMatchedClusterIndex->Reset();
+  fResidualZ->Reset();
+  fResidualR->Reset();
+  
+  fMatchedClusterIndex->Set(100);
+  fResidualZ->Set(100);
+  fResidualR->Set(100);
+  
+  Int_t    matched=0;
+  Float_t  clsPos[3];
+  Double_t trkPos[3];
+  for(Int_t itr=0; itr<event->GetNumberOfTracks(); itr++)
+  {
+    AliESDtrack *track = ((AliESDEvent*)event)->GetTrack(itr);
+    if(!track || !IsAccepted(track)) continue;
+    
+    Float_t dRMax = fCutR, dZMax = fCutZ;
+    Int_t index = -1;
+    AliEMCALTrack *emctrack = new AliEMCALTrack(*track);
+    for(Int_t icl=0; icl<event->GetNumberOfCaloClusters(); icl++)
+    {
+      AliVCluster *cluster = (AliVCluster*) event->GetCaloCluster(icl);
+      if(!cluster->IsEMCAL()) continue;
+      cluster->GetPosition(clsPos); //Has been recalculated
+      if(!emctrack->PropagateToGlobal(clsPos[0],clsPos[1],clsPos[2],0.,0.) )  continue;
+      emctrack->GetXYZ(trkPos);
+      Float_t tmpR = TMath::Sqrt( TMath::Power(clsPos[0]-trkPos[0],2)+TMath::Power(clsPos[1]-trkPos[1],2)+TMath::Power(clsPos[2]-trkPos[2],2) );
+      Float_t tmpZ = TMath::Abs(clsPos[2]-trkPos[2]);
+      
+      if(tmpR<dRMax)
+           {
+             dRMax=tmpR;
+             dZMax=tmpZ;
+             index=icl;
+           }
+      
+    }//cluser loop
+    
+    if(index>-1)
+    {
+      fMatchedClusterIndex->AddAt(index,matched);
+      fResidualZ->AddAt(dZMax,matched);
+      fResidualR->AddAt(dRMax,matched);
+      matched++;
+    }
+    delete emctrack;
+  }//track loop
+  fMatchedClusterIndex->Set(matched);
+  fResidualZ->Set(matched);
+  fResidualR->Set(matched);
+  
+  //printf("Number of matched pairs: %d\n",matched);
+}
+
+//__________________________________________________
+void AliEMCALRecoUtils::GetMatchedResiduals(Int_t index, Float_t &dR, Float_t &dZ)
+{
+  //Given a cluster index as in AliESDEvent::GetCaloCluster(index)
+  //Get the residuals dR and dZ for this cluster
+  //It only works with ESDs, not AODs
+
+  if( FindMatchedPos(index)==-1 )
+  {
+    AliDebug(2,"No matched tracks found!\n");
+    dR=999.;
+    dZ=999.;
+    return;
+  }
+  dR = fResidualR->At(FindMatchedPos(index));
+  dZ = fResidualZ->At(FindMatchedPos(index));
+}
+
+//__________________________________________________
+Bool_t AliEMCALRecoUtils::IsMatched(Int_t index)
+{
+  //Given a cluster index as in AliESDEvent::GetCaloCluster(index)
+  //Returns if cluster has a match
+  if(FindMatchedPos(index)>-1) return kTRUE;
+  else
+    return kFALSE;
+}
+//__________________________________________________
+Int_t AliEMCALRecoUtils::FindMatchedPos(Int_t index) const
+{
+  //Given a cluster index as in AliESDEvent::GetCaloCluster(index)
+  //Returns the position of the match in the fMatchedClusterIndex array
+  Float_t tmpR = fCutR;
+  Int_t pos=-1;
+
+  for(Int_t i=0; i<fMatchedClusterIndex->GetSize(); i++)
+    {
+      if(fMatchedClusterIndex->At(i)==index && fResidualR->At(i)<tmpR)
+       {
+         pos=i;
+         tmpR=fResidualR->At(i);
+       }
+      //printf("Matched cluster pos: %d, index: %d, dR: %2.4f, dZ: %2.4f.\n",i,fMatchedClusterIndex->At(i),fResidualR->At(i),fResidualZ->At(i));
+    }
+  return pos;
+}
+
+Bool_t AliEMCALRecoUtils::IsAccepted(AliESDtrack *esdTrack)
+{
+  // Given a esd track, return whether the track survive all the cuts
+
+  // The different quality parameter are first
+  // retrieved from the track. then it is found out what cuts the
+  // track did not survive and finally the cuts are imposed.
+
+  UInt_t status = esdTrack->GetStatus();
+
+  Int_t nClustersITS = esdTrack->GetITSclusters(0);
+  Int_t nClustersTPC = esdTrack->GetTPCclusters(0);
+
+  Float_t chi2PerClusterITS = -1;
+  Float_t chi2PerClusterTPC = -1;
+  if (nClustersITS!=0)
+    chi2PerClusterITS = esdTrack->GetITSchi2()/Float_t(nClustersITS);
+  if (nClustersTPC!=0) 
+    chi2PerClusterTPC = esdTrack->GetTPCchi2()/Float_t(nClustersTPC);
+      
+  Float_t b[2];
+  Float_t bCov[3];
+  esdTrack->GetImpactParameters(b,bCov);
+  if (bCov[0]<=0 || bCov[2]<=0) {
+    AliDebug(1, "Estimated b resolution lower or equal zero!");
+    bCov[0]=0; bCov[2]=0;
+  }
+
+  Float_t dcaToVertexXY = b[0];
+  Float_t dcaToVertexZ = b[1];
+  Float_t dcaToVertex = -1;
+
+  if (fCutDCAToVertex2D)
+    dcaToVertex = TMath::Sqrt(dcaToVertexXY*dcaToVertexXY/fCutMaxDCAToVertexXY/fCutMaxDCAToVertexXY + dcaToVertexZ*dcaToVertexZ/fCutMaxDCAToVertexZ/fCutMaxDCAToVertexZ);
+  else
+    dcaToVertex = TMath::Sqrt(dcaToVertexXY*dcaToVertexXY + dcaToVertexZ*dcaToVertexZ);
+    
+  // cut the track?
+  
+  Bool_t cuts[kNCuts];
+  for (Int_t i=0; i<kNCuts; i++) cuts[i]=kFALSE;
+  
+  // track quality cuts
+  if (fCutRequireTPCRefit && (status&AliESDtrack::kTPCrefit)==0)
+    cuts[0]=kTRUE;
+  if (fCutRequireITSRefit && (status&AliESDtrack::kITSrefit)==0)
+    cuts[1]=kTRUE;
+  if (nClustersTPC<fCutMinNClusterTPC)
+    cuts[2]=kTRUE;
+  if (nClustersITS<fCutMinNClusterITS) 
+    cuts[3]=kTRUE;
+  if (chi2PerClusterTPC>fCutMaxChi2PerClusterTPC) 
+    cuts[4]=kTRUE; 
+  if (chi2PerClusterITS>fCutMaxChi2PerClusterITS) 
+    cuts[5]=kTRUE;  
+  if (!fCutAcceptKinkDaughters && esdTrack->GetKinkIndex(0)>0)
+    cuts[6]=kTRUE;
+  if (fCutDCAToVertex2D && dcaToVertex > 1)
+    cuts[7] = kTRUE;
+  if (!fCutDCAToVertex2D && TMath::Abs(dcaToVertexXY) > fCutMaxDCAToVertexXY)
+    cuts[8] = kTRUE;
+  if (!fCutDCAToVertex2D && TMath::Abs(dcaToVertexZ) > fCutMaxDCAToVertexZ)
+    cuts[9] = kTRUE;
+
+  Bool_t cut=kFALSE;
+  for (Int_t i=0; i<kNCuts; i++) 
+    if (cuts[i]) {cut = kTRUE;}
+
+    // cut the track
+  if (cut) 
+    return kFALSE;
+  else 
+    return kTRUE;
+}
+//__________________________________________________
+void AliEMCALRecoUtils::InitTrackCuts()
+{
+  //Intilize the track cut criteria
+  //By default these cuts are set according to AliESDtrackCuts::GetStandardTPCOnlyTrackCuts()
+  //Also you can customize the cuts using the setters
+
+  SetMinNClustersTPC(50);
+  SetMaxChi2PerClusterTPC(4);
+  SetAcceptKinkDaughters(kFALSE);
+  SetMaxDCAToVertexZ(3.2);
+  SetMaxDCAToVertexXY(2.4);
+  SetDCAToVertex2D(kTRUE);
+}
 
 //__________________________________________________
 void AliEMCALRecoUtils::Print(const Option_t *) const 
@@ -769,5 +1051,15 @@ void AliEMCALRecoUtils::Print(const Option_t *) const
   for(Int_t i=0; i<6; i++) printf("param[%d]=%f\n",i, fNonLinearityParams[i]);
   
   printf("Position Recalculation option %d, Particle Type %d, fW0 %2.2f, Recalibrate Data %d \n",fPosAlgo,fParticleType,fW0, fRecalibration);
+
+  printf("Matching criteria: dR < %2.2f[cm], dZ < %2.2f[cm]\n",fCutR,fCutZ);
+
+  printf("Track cuts: \n");
+  printf("TPCRefit = %d, ITSRefit = %d\n",fCutRequireTPCRefit,fCutRequireITSRefit);
+  printf("AcceptKinks = %d\n",fCutAcceptKinkDaughters);
+  printf("MinNCulsterTPC = %d, MinNClusterITS = %d\n",fCutMinNClusterTPC,fCutMinNClusterITS);
+  printf("MaxChi2TPC = %2.2f, MaxChi2ITS = %2.2f\n",fCutMaxChi2PerClusterTPC,fCutMaxChi2PerClusterITS);
+  printf("DCSToVertex2D = %d, MaxDCAToVertexXY = %2.2f, MaxDCAToVertexZ = %2.2f\n",fCutDCAToVertex2D,fCutMaxDCAToVertexXY,fCutMaxDCAToVertexZ);
+
     
 }
index be626511456a3449981b06aa048afeb5cdfc0a57..0465ba7efafa2589f1aa11e3d21de5345e48cbec 100644 (file)
 #include "TNamed.h"
 #include "TMath.h"
 #include "TObjArray.h"
+#include "TArrayI.h"
+#include "TArrayF.h"
 #include "TH2F.h"
 
 //AliRoot includes
 class AliVCluster;
 class AliVCaloCells;
+class AliVEvent;
 #include "AliLog.h"
 class AliEMCALGeometry;
 class AliEMCALPIDUtils;
+class AliESDtrack;
 
 class AliEMCALRecoUtils : public TNamed {
   
@@ -159,6 +163,47 @@ public:
 
   void RecalculateClusterShowerShapeParameters(AliEMCALGeometry * geom, AliVCaloCells* cells, AliVCluster * cluster);
 
+  //Track matching
+  void FindMatches(AliVEvent *event);
+  void GetMatchedResiduals(Int_t index, Float_t &dR, Float_t &dZ);
+  Bool_t IsMatched(Int_t index);
+  Int_t FindMatchedPos(Int_t index) const;
+
+  Float_t GetCutR() const { return fCutR; }
+  Float_t GetCutZ() const { return fCutZ; }
+
+  void SetCutR(Float_t CutR) { fCutR=CutR; }
+  void SetCutZ(Float_t CutZ) { fCutZ=CutZ; }
+
+  //Track Cuts 
+  Bool_t IsAccepted(AliESDtrack *track);
+  void InitTrackCuts();
+
+  // track quality cut setters  
+  void SetMinNClustersTPC(Int_t min=-1)          {fCutMinNClusterTPC=min;}
+  void SetMinNClustersITS(Int_t min=-1)          {fCutMinNClusterITS=min;}
+  void SetMaxChi2PerClusterTPC(Float_t max=1e10) {fCutMaxChi2PerClusterTPC=max;}
+  void SetMaxChi2PerClusterITS(Float_t max=1e10) {fCutMaxChi2PerClusterITS=max;}
+  void SetRequireTPCRefit(Bool_t b=kFALSE)       {fCutRequireTPCRefit=b;}
+  void SetRequireITSRefit(Bool_t b=kFALSE)       {fCutRequireITSRefit=b;}
+  void SetAcceptKinkDaughters(Bool_t b=kTRUE)    {fCutAcceptKinkDaughters=b;}
+  void SetMaxDCAToVertexXY(Float_t dist=1e10)         {fCutMaxDCAToVertexXY = dist;}
+  void SetMaxDCAToVertexZ(Float_t dist=1e10)          {fCutMaxDCAToVertexZ = dist;}
+  void SetDCAToVertex2D(Bool_t b=kFALSE)              {fCutDCAToVertex2D = b;}
+
+  // getters
+
+  Int_t   GetMinNClusterTPC()        const   { return fCutMinNClusterTPC;}
+  Int_t   GetMinNClustersITS()       const   { return fCutMinNClusterITS;}
+  Float_t GetMaxChi2PerClusterTPC()  const   { return fCutMaxChi2PerClusterTPC;}
+  Float_t GetMaxChi2PerClusterITS()  const   { return fCutMaxChi2PerClusterITS;}
+  Bool_t  GetRequireTPCRefit()       const   { return fCutRequireTPCRefit;}
+  Bool_t  GetRequireITSRefit()       const   { return fCutRequireITSRefit;}
+  Bool_t  GetAcceptKinkDaughters()   const   { return fCutAcceptKinkDaughters;}
+  Float_t GetMaxDCAToVertexXY()      const   { return fCutMaxDCAToVertexXY;}
+  Float_t GetMaxDCAToVertexZ()       const   { return fCutMaxDCAToVertexZ;}
+  Bool_t  GetDCAToVertex2D()         const   { return fCutDCAToVertex2D;}
+
 
 private:
   
@@ -177,9 +222,27 @@ private:
   Int_t      fNCellsFromEMCALBorder;     // Number of cells from EMCAL border the cell with maximum amplitude has to be.
   Bool_t     fNoEMCALBorderAtEta0;       // Do fiducial cut in EMCAL region eta = 0?
 
+  TArrayI *fMatchedClusterIndex;  //Array that stores indexes of matched clusters
+  TArrayF *fResidualZ;            //Array that stores the residual z
+  TArrayF *fResidualR;            //Array that stores the residual r
+  Float_t fCutR; //dR cut on matching
+  Float_t fCutZ; //dZ cut on matching
+
+  enum { kNCuts = 10 }; 
+  Int_t   fCutMinNClusterTPC;         // min number of tpc clusters
+  Int_t   fCutMinNClusterITS;         // min number of its clusters  
+  Float_t fCutMaxChi2PerClusterTPC;   // max tpc fit chi2 per tpc cluster
+  Float_t fCutMaxChi2PerClusterITS;   // max its fit chi2 per its cluster
+  Bool_t  fCutRequireTPCRefit;        // require TPC refit
+  Bool_t  fCutRequireITSRefit;        // require ITS refit
+  Bool_t  fCutAcceptKinkDaughters;    // accepting kink daughters?
+  Float_t fCutMaxDCAToVertexXY;       // track-to-vertex cut in max absolute distance in xy-plane
+  Float_t fCutMaxDCAToVertexZ;        // track-to-vertex cut in max absolute distance in z-plane
+  Bool_t  fCutDCAToVertex2D;          // if true a 2D DCA cut is made. Tracks are accepted if sqrt((DCAXY / fCutMaxDCAToVertexXY)^2 + (DCAZ / fCutMaxDCAToVertexZ)^2) < 1 AND sqrt((DCAXY / fCutMinDCAToVertexXY)^2 + (DCAZ / fCutMinDCAToVertexZ)^2) > 1
+
   AliEMCALPIDUtils * fPIDUtils;               // Recalculate PID parameters
   
-  ClassDef(AliEMCALRecoUtils, 5)
+  ClassDef(AliEMCALRecoUtils, 6)
   
 };
 
index f01595c5eca00e1acdf4ebdade5a0a53c2800137..d7a81480c52ae3f5a9131671a408de6295d85172 100644 (file)
@@ -21,5 +21,6 @@
 #pragma link C++ class AliCaloPeakFinderVectors+;
 #pragma link C++ class AliEMCALHistoUtilities+;
 #pragma link C++ class AliEMCALRecoUtils+;
+#pragma link C++ class AliEMCALTrack+;
 
 #endif
index 73c9d6ebcc04858fc4e94d25b0f43ef317ffe858..5ca5b2ce2a87ba887dca8cf546eaeb73fdae401a 100644 (file)
@@ -8,7 +8,6 @@
 #pragma link C++ class AliEMCALClusterizerv1+;
 #pragma link C++ class AliEMCALClusterizerNxN+;
 #pragma link C++ class AliEMCALUnfolding+;
-#pragma link C++ class AliEMCALTrack+;
 #pragma link C++ class AliEMCALTracker+;
 #pragma link C++ class AliEMCALPID+;
 #pragma link C++ class AliEMCALQADataMakerRec+;
index 08a826e23975598f625d636ae90314ba6e39fad5..73aacdf09d45a6f1bc08bbcb4b45de633f654e6c 100644 (file)
@@ -14,6 +14,8 @@ ALICEINC      = -I.
 ### if modification of EMCAL libraries, include STEER and RAW
 ifneq ($(STEERBase_INCLUDE),)
   ALICEINC += -I../$(STEERBase_INCLUDE)
+  ALICEINC += -I../$(ESD_INCLUDE)
+  ALICEINC += -I../$(AOD_INCLUDE)
 else
     ALICEINC += -I$(ALICE_ROOT)/include
     ALICEINC += -I$(ALICE_ROOT)/STEER
index 70a857e7b02853d6d705d85b723f57613b52ebeb..21a66aead6cd7b48a17431b4e43277cabc73128b 100644 (file)
@@ -17,13 +17,14 @@ AliCaloRawAnalyzerLMS.cxx \
 AliCaloRawAnalyzerNN.cxx \
 AliCaloPeakFinderVectors.cxx \
 AliEMCALHistoUtilities.cxx \
-AliEMCALRecoUtils.cxx
+AliEMCALRecoUtils.cxx \
+AliEMCALTrack.cxx
 
 HDRS:= $(SRCS:.cxx=.h)  AliCaloConstants.h
 
 DHDR= EMCALUtilsLinkDef.h
 
-EXPORT:=AliEMCALGeoParams.h AliEMCALGeoUtils.h AliEMCALEMCGeometry.h AliEMCALShishKebabTrd1Module.h AliEMCALPIDUtils.h AliCaloNeuralFit.h AliCaloRawAnalyzer.h AliCaloBunchInfo.h AliCaloFitResults.h AliCaloRawAnalyzerCrude.h AliCaloRawAnalyzerLMS.h AliCaloRawAnalyzerPeakFinder.h AliCaloRawAnalyzerNN.h AliEMCALGeometry.h AliEMCALRecoUtils.h
+EXPORT:=AliEMCALGeoParams.h AliEMCALGeoUtils.h AliEMCALEMCGeometry.h AliEMCALShishKebabTrd1Module.h AliEMCALPIDUtils.h AliCaloNeuralFit.h AliCaloRawAnalyzer.h AliCaloBunchInfo.h AliCaloFitResults.h AliCaloRawAnalyzerCrude.h AliCaloRawAnalyzerLMS.h AliCaloRawAnalyzerPeakFinder.h AliCaloRawAnalyzerNN.h AliEMCALGeometry.h AliEMCALRecoUtils.h AliEMCALTrack.h
 
 CXXFLAGS+=-D__EMCALUTIL__
 
index c1b2ec81531bf9ffa6b542d218c57d83120e86cf..d4d9c101819b1919c9a89c1418cea1fbef8760dc 100644 (file)
@@ -7,7 +7,6 @@ AliEMCALClusterizer.cxx \
 AliEMCALClusterizerv1.cxx \
 AliEMCALClusterizerNxN.cxx \
 AliEMCALUnfolding.cxx \
-AliEMCALTrack.cxx \
 AliEMCALTracker.cxx \
 AliEMCALPID.cxx \
 AliEMCALQADataMakerRec.cxx \
@@ -22,7 +21,7 @@ DHDR:=EMCALrecLinkDef.h
 # have to tune
 EINCLUDE:=PYTHIA6 RAW EVGEN THijing VZERO
 
-EXPORT:=AliEMCALTrack.h
+EXPORT:=
 
 ifeq (win32gcc,$(ALICE_TARGET))
 PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) \