]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterFinderSimpleFit.cxx
Add option to run on some local files with test mode using the alien plugin
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterFinderSimpleFit.cxx
index b2b126cdf06458b77d1a0ba5804a88196b837006..3886a5f18d954982b4ce44a3e798409d4d98cdbb 100644 (file)
 
 #include "AliLog.h"
 #include "AliMpDEManager.h"
-#include "AliMpStationType.h"
 #include "AliMUONCluster.h"
 #include "AliMUONConstants.h"
 #include "AliMUONVDigit.h"
 #include "AliMUONMathieson.h"
 #include "AliMUONPad.h"
 #include "AliMpArea.h"
-#include "TClonesArray.h"
 #include "TObjArray.h"
 #include "TVector2.h"
 #include "TVirtualFitter.h"
@@ -95,7 +93,8 @@ namespace
 AliMUONClusterFinderSimpleFit::AliMUONClusterFinderSimpleFit(AliMUONVClusterFinder* clusterFinder)
 : AliMUONVClusterFinder(),
 fClusterFinder(clusterFinder),
-fMathieson(0x0)
+fMathieson(0x0),
+fLowestClusterCharge(0)
 {
   /// ctor
 }
@@ -111,7 +110,7 @@ AliMUONClusterFinderSimpleFit::~AliMUONClusterFinderSimpleFit()
 //_____________________________________________________________________________
 Bool_t 
 AliMUONClusterFinderSimpleFit::Prepare(Int_t detElemId,
-                                       TClonesArray* pads[2],
+                                       TObjArray* pads[2],
                                        const AliMpArea& area)
 {
   /// Prepare for clustering
@@ -119,13 +118,13 @@ AliMUONClusterFinderSimpleFit::Prepare(Int_t detElemId,
   // FIXME: should we get the Mathieson from elsewhere ?
   
   // Find out the DetElemId
-  AliMp::StationType stationType = AliMpDEManager::GetStationType(detElemId);
+  AliMq::Station12Type stationType = AliMpDEManager::GetStation12Type(detElemId);
   
   Float_t kx3 = AliMUONConstants::SqrtKx3();
   Float_t ky3 = AliMUONConstants::SqrtKy3();
   Float_t pitch = AliMUONConstants::Pitch();
   
-  if ( stationType == AliMp::kStation1 )
+  if ( stationType == AliMq::kStation1 )
   {
     kx3 = AliMUONConstants::SqrtKx3St1();
     ky3 = AliMUONConstants::SqrtKy3St1();
@@ -154,7 +153,7 @@ AliMUONClusterFinderSimpleFit::NextCluster()
   {
     ComputePosition(*cluster);
 
-    if ( cluster->Charge() < 7 )
+    if ( cluster->Charge() < fLowestClusterCharge )
     {
       // skip that one
       return NextCluster();