#include "AliLog.h"
#include "AliMpDEManager.h"
-#include "AliMpStationType.h"
#include "AliMUONCluster.h"
#include "AliMUONConstants.h"
#include "AliMUONVDigit.h"
#include "AliMUONVDigitStore.h"
#include <Riostream.h>
+//-----------------------------------------------------------------------------
/// \class AliMUONClusterFinderSimpleFit
///
/// Basic cluster finder
/// FIXME: this one is still at the developping stage...
///
/// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
/// \cond CLASSIMP
ClassImp(AliMUONClusterFinderSimpleFit)
//_____________________________________________________________________________
Bool_t
-AliMUONClusterFinderSimpleFit::Prepare(const AliMpVSegmentation* segmentations[2],
- const AliMUONVDigitStore& digitStore)
+AliMUONClusterFinderSimpleFit::Prepare(Int_t detElemId,
+ TClonesArray* 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<AliMUONVDigit*>(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();
fMathieson->SetSqrtKx3AndDeriveKx2Kx4(kx3);
fMathieson->SetSqrtKy3AndDeriveKy2Ky4(ky3);
- return fClusterFinder->Prepare(segmentations,digitStore);
+ return fClusterFinder->Prepare(detElemId,pads,area);
}
//_____________________________________________________________________________