]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CONTAINERS/AliH2F.cxx
Incrementing class definitions
[u/mrichter/AliRoot.git] / CONTAINERS / AliH2F.cxx
index 28fa9537e80a94f82c63bb1f8c36f48a0b0b646e..6e66634c5e7b868cdeb2c5c55fdf7d4c5ab2264e 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "AliH2F.h"
 #include "TClonesArray.h"
-#include "AliTPC.h"
 #include "TRandom.h"
 
 
@@ -53,26 +52,33 @@ AliH2F::~AliH2F()
   //
 }
 
-AliH2F::AliH2F(const AliH2F &his) 
+AliH2F::AliH2F(const AliH2F &his) :
+  TH2F(his)
 {
   //
   
 }
 
-AliH2F & AliH2F::operator = (const AliH2F & his
+AliH2F & AliH2F::operator = (const AliH2F & /*his*/
 {
   //
   return *this;
 }
 
+/*
 TClonesArray * AliH2F::FindPeaks(Float_t threshold, Float_t noise)
 {
-
-  //
-  // not implemented
-  //
-  return 0;
+  //find peaks and write it in form of AliTPCcluster to array
+    
+  //firstly we need to create object for cluster finding
+  //and fill it with contents of histogram
+  AliTPCClusterFinder cfinder;
+  cfinder.SetThreshold(threshold);
+  cfinder.SetNoise(noise);
+  cfinder.GetHisto(this);
+  return cfinder.FindPeaks3();
 }
+*/
 
 void AliH2F::ClearSpectrum()
 {