fixing the time cut of the clusters in the isolation cone
authormcosenti <mcosenti@cern.ch>
Sat, 2 Aug 2014 20:01:23 +0000 (17:01 -0300)
committermcosenti <mcosenti@cern.ch>
Sat, 2 Aug 2014 20:01:23 +0000 (17:01 -0300)
PWGGA/EMCALTasks/AliAnalysisTaskEMCALIsoPhoton.cxx
PWGGA/EMCALTasks/AliAnalysisTaskEMCALIsoPhoton.h

index 93010dd..5f19db7 100644 (file)
@@ -86,6 +86,7 @@ AliAnalysisTaskEMCALIsoPhoton::AliAnalysisTaskEMCALIsoPhoton() :
   fMinIsoClusE(0),
   fNCuts(5),
   fTrCoreRem(kTRUE),
+  fClusTDiff(30e-9),
   fESD(0),
   fAOD(0),
   fVEvent(0),
@@ -190,6 +191,7 @@ AliAnalysisTaskEMCALIsoPhoton::AliAnalysisTaskEMCALIsoPhoton(const char *name) :
   fMinIsoClusE(0),
   fNCuts(5),
   fTrCoreRem(kTRUE),
+  fClusTDiff(30e-9),
   fESD(0),
   fAOD(0),
   fVEvent(0),
@@ -843,7 +845,7 @@ void AliAnalysisTaskEMCALIsoPhoton::GetCeIso(TVector3 vec, Int_t maxid, Float_t
     Short_t id;
     GetMaxCellEnergy( c, id);
     Double_t maxct = cells->GetCellTime(id);
-    if(TMath::Abs(maxtcl-maxct)>2.5e-9 && (!fIsMc))
+    if(TMath::Abs(maxtcl-maxct)>fClusTDiff/*2.5e-9*/ && (!fIsMc))
       continue;
     Float_t clsPos[3] = {0,0,0};
     c->GetPosition(clsPos);
index 25e14cc..94ebfab 100644 (file)
@@ -73,7 +73,7 @@ class AliAnalysisTaskEMCALIsoPhoton : public AliAnalysisTaskSE {
   void                  SetRemoveMatchClus(Bool_t b)            { fRemMatchClus       = b;       }
   void                  SetMinIsoClusE(Double_t emin)           { fMinIsoClusE        = emin;    }
   void                  SetTrCoreRemoval(Bool_t b)              { fTrCoreRem          = b;       }
-
+  void                  SetClusTDiff(Double_t diff)             { fClusTDiff          = diff;    }
  protected:
   TObjArray             *fESDClusters;           //!pointer to EMCal clusters
   TObjArray             *fAODClusters;           //!pointer to EMCal clusters
@@ -117,7 +117,7 @@ class AliAnalysisTaskEMCALIsoPhoton : public AliAnalysisTaskSE {
   Double_t               fMinIsoClusE;           // minimum energy for a cluster to be counted in the iso cone
   Int_t                  fNCuts;                 // number of cuts (QA purposes)
   Bool_t                 fTrCoreRem;             // flag to set the removal of the core in track isolation (true removes it, default)
-
+  Double_t               fClusTDiff;             // variable to hold the time diff between the candidate cluster and the isolation clusters
   
  private:
   AliESDEvent *fESD;      //! ESD object