////////////////////////////////////
//
-// 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;
fMUONData = 0;
fChambers = new TObjArray(AliMUONConstants::NCh());
- fPrintLevel = kDefaultPrintLevel;
+ fPrintLevel = fgkDefaultPrintLevel;
// initialize loader's
fLoader = 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)
{
((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;
}
//__________________________________________________________________________
muonDigits = fMUONData->Digits(ich);
ndig=muonDigits->GetEntriesFast();
if(fDebug)
- printf("1 Found %d digits in %p chamber %d\n", ndig, muonDigits,ich);
+ printf("1 Found %d digits in %p chamber %d\n", ndig, (void*)muonDigits,ich);
TClonesArray &lhits1 = *dig1;
Int_t n = 0;
for (k = 0; k < ndig; k++) {
muonDigits = fMUONData->Digits(ich);
ndig=muonDigits->GetEntriesFast();
if(fDebug)
- printf("\n 2 Found %d digits in %p %d", ndig, muonDigits, ich);
+ printf("\n 2 Found %d digits in %p %d", ndig, (void*)muonDigits, ich);
TClonesArray &lhits2 = *dig2;
n=0;
delete dig1;
delete dig2;
}
+
+//____________________________________________________________________
+void AliMUONClusterReconstructor::Digits2Clusters(AliRawReader* /*rawReader*/)
+{
+
+// Perform cluster finding form raw data
+
+ Fatal("Digits2Clusters","clusterization not implemented for raw data input");
+}