]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterReconstructor.cxx
Adding HLTbase to the list of libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterReconstructor.cxx
index 22b36840436cf8db1da6019872d771c0388e8a15..7c6109228705f7aa1d5aee0ac9245c892ba08845 100644 (file)
 // MUON cluster reconstructor for MUON
 // Should implement a virtual class ClusterFinder to choose between VS and AZ method
 
+#include <Riostream.h>
 #include "AliMUONClusterReconstructor.h"
-#include "AliRun.h" // for gAlice
 #include "AliRunLoader.h"
 #include "AliLoader.h"
 
-#include "AliMUON.h"
 #include "AliMUONDigit.h"
 #include "AliMUONConstants.h"
 #include "AliMUONData.h"
@@ -37,6 +36,7 @@
 #include "AliMUONCluster.h"
 #include "AliMpDEManager.h"
 #include "AliMpSegmentation.h"
+#include "AliMpCathodType.h"
 #include "AliMUONGeometryTransformer.h"
 #include "AliLog.h"
 
@@ -81,10 +81,13 @@ AliMUONClusterReconstructor::~AliMUONClusterReconstructor(void)
 void
 AliMUONClusterReconstructor::ClusterizeOneDEV2(Int_t detElemId)
 {
+/// Clusterize one detection element, and let fMUONData know about
+/// the results.
+
   AliDebug(1,Form("DE %d",detElemId));
   const AliMpVSegmentation* seg[2] = 
-  { AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,0),
-    AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,1)
+  { AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,AliMp::kCath0),
+    AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,AliMp::kCath1)
   };
   
   
@@ -102,8 +105,8 @@ AliMUONClusterReconstructor::ClusterizeOneDEV2(Int_t detElemId)
   
   while ( ( cluster = fClusterFinder->NextCluster() ) )
   {
-    StdoutToAliDebug(1,cout << "From AliMUONClusterReconstructor::ClusterizeOneDEV2 : cluster->Print():" << endl;
-                     cluster->Print(););
+//    StdoutToAliDebug(1,cout << "From AliMUONClusterReconstructor::ClusterizeOneDEV2 : cluster->Print():" << endl;
+//                     cluster->Print(););
     
     // Converts cluster objects into ones suitable for output
     //
@@ -133,7 +136,6 @@ AliMUONClusterReconstructor::ClusterizeOneDEV2(Int_t detElemId)
       rawCluster.SetZ(cathode,zg);      
     }
     fMUONData->AddRawCluster(chamber,rawCluster);
-    delete cluster;
   }
 }
 
@@ -156,10 +158,10 @@ AliMUONClusterReconstructor::ClusterizeOneDE(Int_t detElemId)
       AliMUONClusterInput::Instance()->SetDigits(iChamber, detElemId,
                                                  fDigitsCath0,fDigitsCath1);
       AliDebug(3,Form("ClusterizeOneDE iChamber=%d DE=%d",iChamber,detElemId));
-      StdoutToAliDebug(3,cout << "DigitsCath0=" << endl;
-                       fDigitsCath0->Print();
-                       cout << "DigitsCath1=" << endl;
-                       fDigitsCath1->Print(););
+//      StdoutToAliDebug(3,cout << "DigitsCath0=" << endl;
+//                       fDigitsCath0->Print();
+//                       cout << "DigitsCath1=" << endl;
+//                       fDigitsCath1->Print(););
       fRecModel->FindRawClusters();
       
       // copy results into the output container