X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONClusterFinderSimpleFit.cxx;h=3886a5f18d954982b4ce44a3e798409d4d98cdbb;hb=f182ec5f1193fc6367fc0fb799afa2989a011226;hp=0e001404affb5e23a7958b44729bd3922bc055ad;hpb=b1a19e07ea02109b08bb4351942a5b5c1482563d;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONClusterFinderSimpleFit.cxx b/MUON/AliMUONClusterFinderSimpleFit.cxx index 0e001404aff..3886a5f18d9 100644 --- a/MUON/AliMUONClusterFinderSimpleFit.cxx +++ b/MUON/AliMUONClusterFinderSimpleFit.cxx @@ -19,14 +19,12 @@ #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" @@ -34,6 +32,7 @@ #include "AliMUONVDigitStore.h" #include +//----------------------------------------------------------------------------- /// \class AliMUONClusterFinderSimpleFit /// /// Basic cluster finder @@ -45,6 +44,7 @@ /// FIXME: this one is still at the developping stage... /// /// \author Laurent Aphecetche +//----------------------------------------------------------------------------- /// \cond CLASSIMP ClassImp(AliMUONClusterFinderSimpleFit) @@ -93,7 +93,8 @@ namespace AliMUONClusterFinderSimpleFit::AliMUONClusterFinderSimpleFit(AliMUONVClusterFinder* clusterFinder) : AliMUONVClusterFinder(), fClusterFinder(clusterFinder), -fMathieson(0x0) +fMathieson(0x0), +fLowestClusterCharge(0) { /// ctor } @@ -108,37 +109,22 @@ AliMUONClusterFinderSimpleFit::~AliMUONClusterFinderSimpleFit() //_____________________________________________________________________________ Bool_t -AliMUONClusterFinderSimpleFit::Prepare(const AliMpVSegmentation* segmentations[2], - const AliMUONVDigitStore& digitStore) +AliMUONClusterFinderSimpleFit::Prepare(Int_t detElemId, + TObjArray* pads[2], + const AliMpArea& area) { /// Prepare for clustering // FIXME: should we get the Mathieson from elsewhere ? // Find out the DetElemId - Int_t detElemId(-1); - - TIter next(digitStore.CreateIterator()); - AliMUONVDigit* d = static_cast(next()); - - if (d) - { - detElemId = d->DetElemId(); - } - else - { - AliWarning("Could not find DE. Probably no digits at all : here's the digitStore :"); - StdoutToAliWarning(digitStore.Print();); - return kFALSE; - } - - 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(); @@ -152,7 +138,7 @@ AliMUONClusterFinderSimpleFit::Prepare(const AliMpVSegmentation* segmentations[2 fMathieson->SetSqrtKx3AndDeriveKx2Kx4(kx3); fMathieson->SetSqrtKy3AndDeriveKy2Ky4(ky3); - return fClusterFinder->Prepare(segmentations,digitStore); + return fClusterFinder->Prepare(detElemId,pads,area); } //_____________________________________________________________________________ @@ -167,7 +153,7 @@ AliMUONClusterFinderSimpleFit::NextCluster() { ComputePosition(*cluster); - if ( cluster->Charge() < 7 ) + if ( cluster->Charge() < fLowestClusterCharge ) { // skip that one return NextCluster();