]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterFinderCOG.cxx
- update track cuts
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterFinderCOG.cxx
index 2ae2126ff22f817ff011941dfb0979f75d2298c3..7bd0b8a56b98ba9e3c2f8d3121abe0bd15d6b2ca 100644 (file)
@@ -62,7 +62,7 @@ AliMUONClusterFinderCOG::~AliMUONClusterFinderCOG()
 //_____________________________________________________________________________
 Bool_t 
 AliMUONClusterFinderCOG::Prepare(Int_t detElemId,
-                                 TClonesArray* pads[2],
+                                 TObjArray* pads[2],
                                  const AliMpArea& area)
 {
   /// Prepare for clustering
@@ -82,7 +82,7 @@ AliMUONClusterFinderCOG::NextCluster()
   {
     ComputePosition(*cluster);
 
-    if ( cluster->Charge() < 7 )
+    if ( cluster->Charge() < 1.0675 ) // JC: adc -> fc
     {
       // skip that one
       return NextCluster();
@@ -114,7 +114,7 @@ AliMUONClusterFinderCOG::ComputePosition(AliMUONCluster& cluster)
     {
       AliMUONPad* pad = cluster.Pad(i);
       TVector2 padPosition = pad->Position();
-      AliMpArea area(pad->Position(),pad->Dimensions());
+      AliMpArea area(pad->X(), pad->Y(), pad->DX(), pad->DY());
       xmin = TMath::Min(area.LeftBorder(),xmin);
       xmax = TMath::Max(area.RightBorder(),xmax);
       ymin = TMath::Min(area.DownBorder(),ymin);