#include "AliLog.h"
#include "AliMUONCluster.h"
#include "AliMpVSegmentation.h"
+#include "AliMpPad.h"
#include "TClonesArray.h"
#include "TVector2.h"
#include "AliMUONPad.h"
AliMUONPreClusterFinderV2::AliMUONPreClusterFinderV2()
: AliMUONVClusterFinder(),
fClusters(0x0),
- fSegmentations(0x0),
+ fkSegmentations(0x0),
fPads(0x0),
fDetElemId(0)
{
fClusters = new TClonesArray("AliMUONCluster");
fPads = pads;
- fSegmentations = seg;
+ fkSegmentations = seg;
fDetElemId = detElemId;
// Check neighbours
TObjArray neighbours;
- AliMpPad p = fSegmentations[pad->Cathode()]->PadByIndices(AliMpIntPair(pad->Ix(),pad->Iy()),kTRUE);
- Int_t nn = fSegmentations[pad->Cathode()]->GetNeighbours(p,neighbours);
+ AliMpPad p = fkSegmentations[pad->Cathode()]->PadByIndices(pad->Ix(),pad->Iy(),kTRUE);
+ Int_t nn = fkSegmentations[pad->Cathode()]->GetNeighbours(p,neighbours);
for (Int_t in = 0; in < nn; ++in)
{
AliMpPad* p1 = static_cast<AliMpPad*>(neighbours.At(in));
while ( ( p2 = static_cast<AliMUONPad*>(next2()) ) )
{
- if ( !p2->IsUsed() && p2->Ix()==p1->GetIndices().GetFirst()
- && p2->Iy() == p1->GetIndices().GetSecond() &&
+ if ( !p2->IsUsed() && p2->Ix()==p1->GetIx()
+ && p2->Iy() == p1->GetIy() &&
p2->Cathode() == pad->Cathode() )
{
AddPad(cluster,p2);