]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/MUONRecoTest.C
Reconstruct and FillESD method in AliMUON for AliModule (Christian)
[u/mrichter/AliRoot.git] / MUON / MUONRecoTest.C
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18 // Macro MUONTracker.C (TO BE COMPILED)
19 // for testing the C++ reconstruction code
20 // Output is using aliroot standard output MUON.Tracks.root
21 // The output is a TClonesArray of AliMUONTracks.
22 // Gines MARTINEZ, Subatech, sep 2003
23
24 #if !defined(__CINT__) || defined(__MAKECINT__)
25 #include <TClonesArray.h>
26
27 #include "AliRun.h"
28 #include "AliESD.h"
29 #include "AliMUON.h"
30 #include "AliMUONData.h"
31 #include "AliMUONEventReconstructor.h"
32 #include "AliMUONTrack.h"
33 #include "AliMUONTrackHit.h"
34 #include "AliMUONTrackParam.h"
35 #endif
36
37 void MUONRecoTest(Text_t *FileName = "galice.root")
38 {
39   //
40   cout << "MUONRecoTest" << endl;
41   cout << "FileName ``" << FileName << "''" << endl;
42   
43   // Creating Run Loader and openning file containing Hits, Digits and RecPoints
44   AliRunLoader * RunLoader = AliRunLoader::Open(FileName,"Event","UPDATE");
45   if (RunLoader ==0x0) {
46     printf(">>> Error : Error Opening %s file \n",FileName);
47     return;
48   }
49   // Loading AliRun master
50   RunLoader->LoadgAlice();
51   gAlice = RunLoader->GetAliRun();
52  
53   // Loading MUON subsystem
54   AliMUON* MUON = (AliMUON *) gAlice->GetDetector("MUON");
55
56   //AliESD *event = new AliESD(); 
57   MUON->Reconstruct();
58   //  MUON->FillESD(event);
59 }