]>
Commit | Line | Data |
---|---|---|
108615fc | 1 | #ifndef ALILEVEL3_H |
2 | #define ALILEVEL3_H | |
3 | ||
4 | #include <TBuffer.h> | |
5 | #include <TFile.h> | |
6 | ||
7 | #include "AliL3DigitData.h" | |
8 | #include "AliL3RootTypes.h" | |
9 | ||
10 | class AliL3SpacePointData; | |
11 | class AliL3DigitRowData; | |
12 | class AliL3TrackSegmentData; | |
13 | class AliL3DigitData; | |
14 | class AliL3Transform; | |
15 | class AliL3ConfMapper; | |
16 | class AliL3Vertex; | |
17 | class AliL3VertexFinder; | |
18 | class AliL3TrackMerger; | |
19 | class AliL3GlobalMerger; | |
20 | class AliL3Transform; | |
21 | class AliL3ClustFinder; | |
22 | class AliL3Merger; | |
23 | class AliL3InterMerger; | |
24 | class AliL3MemHandler; | |
25 | class AliL3Benchmark; | |
26 | ||
27 | class AliLevel3{ | |
28 | ||
29 | private: | |
30 | UInt_t fNTrackData; | |
31 | AliL3TrackSegmentData* fTrackData; //! | |
32 | AliL3ConfMapper *fTracker; //! | |
33 | AliL3Vertex *fVertex; //! | |
34 | AliL3VertexFinder *fVertexFinder; //! | |
35 | AliL3TrackMerger *fTrackMerger; //! | |
36 | AliL3GlobalMerger *fGlobalMerger; //! | |
37 | AliL3InterMerger *fInterMerger; //! | |
38 | AliL3ClustFinder *fClusterFinder; //! | |
39 | AliL3MemHandler *fFileHandler; //! | |
40 | AliL3Benchmark *fBenchmark;//! | |
41 | Int_t fNPatch; | |
42 | Char_t fPath[256]; | |
43 | AliL3Transform *fTransformer; //! | |
44 | TDirectory *savedir; | |
45 | TFile *fInputFile; | |
46 | TFile *fOutputFile; | |
47 | Bool_t fFindVertex; | |
48 | void Init(); | |
49 | void WriteSpacePoints(UInt_t npoints,AliL3SpacePointData *points, | |
50 | Int_t slice,Int_t patch); | |
51 | void WriteResults(); | |
52 | Int_t WriteTracks(char *filename,AliL3Merger *merger,char opt='o'); | |
53 | Float_t fEta[2]; | |
54 | Bool_t fDoRoi; | |
55 | Bool_t fUseBinary; | |
56 | Bool_t fWriteOut; | |
57 | void SetPath(char *p){sprintf(fPath,"%s",p);} | |
58 | public: | |
59 | AliLevel3 (); | |
60 | AliLevel3(Char_t *infile,Char_t *outfile); | |
61 | AliLevel3(TFile *in, TFile *out); | |
62 | virtual ~AliLevel3(); | |
63 | ||
64 | void SetTrackerParam(Int_t phi_segments=50,Int_t eta_segments=100, | |
65 | Int_t trackletlength=3,Int_t tracklength=5, | |
66 | Int_t rowscopetracklet=2,Int_t rowscopetrack=3, | |
67 | Double_t min_pt_fit=0,Double_t maxangle=1.31, | |
68 | Double_t goodDist=5,Double_t hitChi2Cut=10, | |
69 | Double_t goodHitChi2=20,Double_t trackChi2Cut=50, | |
70 | Int_t maxdist=50); | |
71 | ||
72 | ||
73 | void ProcessEvent(Int_t first,Int_t last); | |
74 | void ProcessSlice(Int_t slice); | |
75 | ||
76 | ||
77 | void UseBinaryInput(char *path){SetPath(path);fUseBinary=kTRUE;} | |
78 | void DoMc(char* file="point_mc.dat"); | |
79 | void DoBench(char* name="benchmark"); | |
80 | void DoRoi(Float_t e0=0.4,Float_t e1=0.5){fEta[0]=e0;fEta[1]=e1;fDoRoi=kTRUE;} | |
81 | void WriteFiles(){fWriteOut = kTRUE;} | |
82 | ClassDef(AliLevel3,1) //Interface class for Level3-tracking | |
83 | }; | |
84 | ||
85 | #endif |