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