]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/AliAnaGammaJetLeadCone.cxx
bugfix: corrected buffer size check
[u/mrichter/AliRoot.git] / PWG4 / AliAnaGammaJetLeadCone.cxx
index 1aa58b8f3ca93a1f01852db9b1d1df2cee1f5c5f..be3f98adf7d6311e29905caa7c14a4c85a541aea 100644 (file)
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.3  2007/10/29 13:48:42  gustavo
+ * Corrected coding violations
+ *
+ * Revision 1.2  2007/08/17 12:40:04  schutz
+ * New analysis classes by Gustavo Conesa
+ *
  * Revision 1.1.2.1  2007/07/26 10:32:09  schutz
  * new analysis classes in the the new analysis framework
  *
  */
 
 //_________________________________________________________________________
-// Class for the analysis of gamma-jet correlations, jet reconstructed in cone around leading
+// Class for the analysis of gamma-jet correlations:
+// 1)Take the prompt photon found with AliAnaGammaDirect,
+// 2) Search for the highest pt leading particle opposite to the photon within a phi, pt window
+// 3) Take all particles around leading in a cone R with pt larger than threshold and construct the jet
 //
 //  Class created from old AliPHOSGammaJet 
 //  (see AliRoot versions previous Release 4-09)
 
 
 // --- ROOT system ---
-#include "Riostream.h"
 
 //---- AliRoot system ----
-#include "AliLog.h"
 #include "AliNeutralMesonSelection.h"
 #include "AliAnaGammaJetLeadCone.h"  
+#include "AliLog.h"
 
 ClassImp(AliAnaGammaJetLeadCone)
 
@@ -209,46 +217,8 @@ AliAnaGammaJetLeadCone & AliAnaGammaJetLeadCone::operator = (const AliAnaGammaJe
 //____________________________________________________________________________
 AliAnaGammaJetLeadCone::~AliAnaGammaJetLeadCone() 
 {
-  delete fhChargedRatio  ; 
-  delete fhNeutralRatio   ; 
-
-  delete fhPhiCharged  ;  
-  delete fhPhiNeutral   ; 
-  delete fhEtaCharged  ; 
-  delete fhEtaNeutral  ; 
-  delete fhDeltaPhiGammaCharged  ;  
-  delete fhDeltaPhiGammaNeutral   ; 
-  delete fhDeltaEtaGammaCharged  ; 
-  delete fhDeltaEtaGammaNeutral  ; 
-  
-  delete fhAnglePairLeading  ; 
-  delete fhInvMassPairLeading  ; 
-  delete fhNBkg   ; 
-  delete fhNLeading  ; 
-  delete fhNJet  ; 
-  delete fhJetRatio  ; 
-  delete fhJetPt   ; 
-  delete fhBkgRatio   ; 
-  delete fhBkgPt  ; 
-  delete fhJetFragment  ; 
-  delete fhBkgFragment  ; 
-  delete fhJetPtDist  ; 
-  delete fhBkgPtDist  ; 
-  
-  delete [] fhJetRatios;  
-  delete [] fhJetPts;  
-  delete [] fhBkgRatios;
-  delete [] fhBkgPts;  
-
-  delete [] fhNLeadings;
-  delete [] fhNJets;  
-  delete [] fhNBkgs;
-  
-  delete [] fhJetFragments;
-  delete [] fhBkgFragments;
-  delete [] fhJetPtDists;
-  delete [] fhBkgPtDists;
+   // Remove all pointers except analysis output pointers.
+
 }