]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterReconstructor.cxx
new slow simulation up to RawData
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterReconstructor.cxx
index 71e749fa170125ae5f6623b4349d8783ca5e444f..9395478341cf92c10776717bb1093253ba4e6a63 100644 (file)
 
 ////////////////////////////////////
 //
-// MUON event reconstructor in ALICE
-//
-// This class contains as data:
-// * the parameters for the event reconstruction
-// * a pointer to the array of hits to be reconstructed (the event)
-// * a pointer to the array of segments made with these hits inside each station
-// * a pointer to the array of reconstructed tracks
-//
-// It contains as methods, among others:
-// * MakeEventToBeReconstructed to build the array of hits to be reconstructed
-// * MakeSegments to build the segments
-// * MakeTracks to build the tracks
+// MUON cluster reconstructor for MUON
 //
+// Should implement a virtual class ClusterFinder to chose between VS and AZ method
 ////////////////////////////////////
 
-#include <Riostream.h> // for cout
-#include <stdlib.h> // for exit()
-
-#include <TTree.h>
+#include "AliMUONClusterReconstructor.h"
+#include "AliRun.h" // for gAlice
+#include "AliRunLoader.h"
+#include "AliLoader.h"
 
 #include "AliMUON.h"
-#include "AliMUONClusterReconstructor.h"
 #include "AliMUONDigit.h"
 #include "AliMUONConstants.h"
 #include "AliMUONData.h"
 #include "AliMUONClusterFinderVS.h"
-#include "AliMUONClusterFinderAZ.h"
 #include "AliMUONClusterInput.h"
 #include "AliMUONRawCluster.h"
-#include "AliRun.h" // for gAlice
-#include "AliConfig.h"
-#include "AliRunLoader.h"
-#include "AliLoader.h"
+#include "AliRawReader.h" // for raw data
 
-static const Int_t kDefaultPrintLevel = 0;
+
+const Int_t AliMUONClusterReconstructor::fgkDefaultPrintLevel = 0;
 
 ClassImp(AliMUONClusterReconstructor) // Class implementation in ROOT context
 
 //__________________________________________________________________________
 AliMUONClusterReconstructor::AliMUONClusterReconstructor(AliLoader* loader)
+  : TObject()
 {
-  // Default Constructor
+  // Standard Constructor
  
   fDebug           = 0;
   fNCh             = 0;
@@ -67,7 +54,7 @@ AliMUONClusterReconstructor::AliMUONClusterReconstructor(AliLoader* loader)
   fMUONData        = 0;
   fChambers = new TObjArray(AliMUONConstants::NCh());
 
-  fPrintLevel = kDefaultPrintLevel;
+  fPrintLevel = fgkDefaultPrintLevel;
 
   // initialize loader's
   fLoader = loader;
@@ -82,9 +69,23 @@ AliMUONClusterReconstructor::AliMUONClusterReconstructor(AliLoader* loader)
 
   // getting MUON
   fMUON = (AliMUON*) gAlice->GetDetector("MUON");
+}
 
-  return; 
+//__________________________________________________________________________
+AliMUONClusterReconstructor::AliMUONClusterReconstructor()
+  : TObject(),
+    fNCh(0),
+    fNTrackingCh(0),
+    fMUONData(0),
+    fMUON(0),
+    fChambers(0),
+    fPrintLevel(fgkDefaultPrintLevel),
+    fDebug(0),
+    fLoader(0)
+{
+  // Default Constructor
 }
+
 //____________________________________________________________________
 void AliMUONClusterReconstructor::SetReconstructionModel(Int_t id, AliMUONClusterFinderVS *reconst)
 {
@@ -98,15 +99,25 @@ void AliMUONClusterReconstructor::SetReconstructionModel(Int_t id, AliMUONCluste
   ((AliMUONChamber*) fChambers->At(id))->SetReconstructionModel(reconst);
 }
 //_______________________________________________________________________
-AliMUONClusterReconstructor::AliMUONClusterReconstructor (const AliMUONClusterReconstructor& Reconstructor):TObject(Reconstructor)
+AliMUONClusterReconstructor::AliMUONClusterReconstructor (const AliMUONClusterReconstructor& rhs)
+  : TObject(rhs)
 {
-  // Dummy copy constructor
+// Protected copy constructor
+
+  Fatal("AliMUONClusterReconstructor", "Not implemented.");
 }
 
-AliMUONClusterReconstructor & AliMUONClusterReconstructor::operator=(const AliMUONClusterReconstructor& /*Reconstructor*/)
+//_______________________________________________________________________
+AliMUONClusterReconstructor & 
+AliMUONClusterReconstructor::operator=(const AliMUONClusterReconstructor& rhs)
 {
-  // Dummy assignment operator
-    return *this;
+// Protected assignement operator
+
+  if (this == &rhs) return *this;
+
+  Fatal("operator=", "Not implemented.");
+    
+  return *this;  
 }
 
 //__________________________________________________________________________
@@ -187,3 +198,12 @@ void AliMUONClusterReconstructor::Digits2Clusters()
     delete dig1;
     delete dig2;
 }
+
+//____________________________________________________________________
+void AliMUONClusterReconstructor::Digits2Clusters(AliRawReader* /*rawReader*/)
+{
+
+//  Perform cluster finding form raw data
+
+   Fatal("Digits2Clusters","clusterization not implemented for raw data input");
+}