1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 /// \class AliMUONTracker
17 /// Interface class for use of global tracking framework;
18 /// reconstruct tracks from recpoints
20 /// \author Christian Finck, SUBATECH Nantes
22 #include "AliMUONTracker.h"
23 #include "AliMUONTrackReconstructorK.h"
24 #include "AliMUONTrackReconstructor.h"
25 #include "AliMUONRecData.h"
28 //_____________________________________________________________________________
29 AliMUONTracker::AliMUONTracker()
38 //_____________________________________________________________________________
39 AliMUONTracker::~AliMUONTracker()
45 //_____________________________________________________________________________
46 void AliMUONTracker::SetOption(Option_t* option)
48 /// set reconstructor class
51 AliError("MUONData not defined");
54 AliError("TriggerCircuit not defined");
56 if (strstr(option,"Original"))
57 fTrackReco = new AliMUONTrackReconstructor(fMUONData);
58 else if (strstr(option,"Combi"))
59 fTrackReco = new AliMUONTrackReconstructorK(fMUONData,"Combi");
61 fTrackReco = new AliMUONTrackReconstructorK(fMUONData,"Kalman");
63 fTrackReco->SetTriggerCircuit(fTriggerCircuit);
67 //_____________________________________________________________________________
68 Int_t AliMUONTracker::Clusters2Tracks(AliESD* /*esd*/)
71 /// clusters2Tracks method
72 /// in general tracking framework
74 // open TClonesArray for reading
75 fMUONData->SetTreeAddress("TC,RC");
79 fMUONData->MakeBranch("RL"); //trigger track
80 fMUONData->SetTreeAddress("RL");
81 fTrackReco->EventReconstructTrigger();
82 fMUONData->Fill("RL");
85 fMUONData->MakeBranch("RT"); //track
86 fMUONData->SetTreeAddress("RT");
87 fTrackReco->EventReconstruct();
88 fMUONData->Fill("RT");
90 fMUONData->ResetRecTracks();
91 fMUONData->ResetRecTriggerTracks();