]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterFinderSimpleFit.cxx
Update HFE v2 analyses
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterFinderSimpleFit.cxx
index 314f27d37a8e07d43bd53cc84083e2c0d60181ec..3886a5f18d954982b4ce44a3e798409d4d98cdbb 100644 (file)
@@ -25,7 +25,6 @@
 #include "AliMUONMathieson.h"
 #include "AliMUONPad.h"
 #include "AliMpArea.h"
-#include "TClonesArray.h"
 #include "TObjArray.h"
 #include "TVector2.h"
 #include "TVirtualFitter.h"
@@ -94,7 +93,8 @@ namespace
 AliMUONClusterFinderSimpleFit::AliMUONClusterFinderSimpleFit(AliMUONVClusterFinder* clusterFinder)
 : AliMUONVClusterFinder(),
 fClusterFinder(clusterFinder),
-fMathieson(0x0)
+fMathieson(0x0),
+fLowestClusterCharge(0)
 {
   /// ctor
 }
@@ -110,7 +110,7 @@ AliMUONClusterFinderSimpleFit::~AliMUONClusterFinderSimpleFit()
 //_____________________________________________________________________________
 Bool_t 
 AliMUONClusterFinderSimpleFit::Prepare(Int_t detElemId,
-                                       TClonesArray* pads[2],
+                                       TObjArray* pads[2],
                                        const AliMpArea& area)
 {
   /// Prepare for clustering
@@ -153,7 +153,7 @@ AliMUONClusterFinderSimpleFit::NextCluster()
   {
     ComputePosition(*cluster);
 
-    if ( cluster->Charge() < 7 )
+    if ( cluster->Charge() < fLowestClusterCharge )
     {
       // skip that one
       return NextCluster();