AliRunDigitizer: a few bugs fixed to run under
[u/mrichter/AliRoot.git] / HLT / hough / AliL3Hough.h
CommitLineData
f000f8a5 1#ifndef ALIL3_HOUGH
2#define ALIL3_HOUGH
3
4#include "AliL3RootTypes.h"
5
6class AliL3HoughMaxFinder;
7class AliL3HoughTransformer;
f80b98cb 8class AliL3Histogram;
9class AliL3FileHandler;
10class AliL3HoughEval;
11class AliL3Transform;
12class AliL3TrackArray;
4fc9a6a4 13class TFile;
f000f8a5 14
15class AliL3Hough : public TObject {
16
17 private:
f80b98cb 18 Char_t fPath[256];
4fc9a6a4 19 Bool_t fBinary;
a6008206 20 Bool_t fAddHistograms;
21 Bool_t fRemoveFoundTracks;
22 Bool_t fWriteDigits;
f80b98cb 23 Int_t fNEtaSegments;
4fc9a6a4 24 AliL3FileHandler **fMemHandler; //!
25 AliL3HoughTransformer **fHoughTransformer; //!
a6008206 26 AliL3HoughEval **fEval; //!
27 AliL3HoughMaxFinder *fPeakFinder; //!
28 AliL3TrackArray *fTracks; //!
4fc9a6a4 29 TFile *fRootFile; //!
a6008206 30
31 void DeleteEval();
4fc9a6a4 32 void DeleteTransformers();
33 void DeleteMemory();
34 void Init();
35
f000f8a5 36 public:
4fc9a6a4 37
f000f8a5 38 AliL3Hough();
4fc9a6a4 39 AliL3Hough(Char_t *path,Bool_t binary,Int_t n_eta_segments=100);
f000f8a5 40 virtual ~AliL3Hough();
41
a6008206 42 void Process(Int_t minslice,Int_t maxslice);
4fc9a6a4 43 void TransformSlice(Int_t slice);
a6008206 44 void FindTrackCandidates();
45 AliL3Histogram *AddHistograms(Int_t eta_index);
46 void AddAllHistograms();
47 void Evaluate(Bool_t remove=kFALSE);
48 void WriteDigits(Char_t *outfile="output_digits.root");
49
4fc9a6a4 50 //Setters
51 void SetNEtaSegments(Int_t i) {fNEtaSegments = i;}
a6008206 52 void SetAddHistograms() {fAddHistograms = kTRUE;}
53 void SetRemoveFoundTracks() {fRemoveFoundTracks = kTRUE;}
54 void SetWriteDigits() {fWriteDigits = kTRUE;}
f80b98cb 55
4fc9a6a4 56 //Getters
57 AliL3HoughTransformer *GetTransformer(Int_t i) {if(!fHoughTransformer[i]) return 0; return fHoughTransformer[i];}
a6008206 58 AliL3TrackArray *GetTracks() {if(!fTracks) return 0; return fTracks;}
f000f8a5 59
60 ClassDef(AliL3Hough,1)
61
62};
63
64#endif