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