]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDtrackerDebug.h
Extension to L0 and L1 trigger classes
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackerDebug.h
1 #ifndef ALITRDTRACKERDEBUG_H
2 #define ALITRDTRACKERDEBUG_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id: AliTRDtrackerDebug.h 22646 2007-11-29 18:13:40Z cblume $ */
8
9 ////////////////////////////////////////////////////////////////////////////
10 //                                                                        //
11 //  Reader for the TRD tracker debug streamer                             // 
12 //                                                                        // 
13 //  Authors:                                                              //
14 //                                                                        //
15 //    Alex Bercuci <A.Bercuci@gsi.de>                                     //
16 //    Markus Fasel <M.Fasel@gsi.de>                                       //
17 //                                                                        // 
18 ////////////////////////////////////////////////////////////////////////////
19
20 #ifndef ALITRDTRACKERV1_H
21 #include "AliTRDtrackerV1.h"
22 #endif
23
24 class TTree;
25 class TCanvas;
26 class TTreeSRedirector;
27 class AliTRDtrackV1;
28 class AliTRDseedV1;
29
30 class AliTRDtrackerDebug : public AliTRDtrackerV1
31 {
32 public:
33         AliTRDtrackerDebug();
34         ~AliTRDtrackerDebug();
35
36         void                            Draw(Option_t *);
37
38         Bool_t      Init();
39         Bool_t      Open(const char *method);
40         Int_t       Process();
41
42         void        ResidualsClustersTrack(const AliTRDseedV1 *tracklet);
43         void        ResidualsClustersTracklet(const AliTRDseedV1 *tracklet) const;
44         void        ResidualsClustersParametrisation(const AliTRDseedV1 *tracklet) const;
45         void        ResidualsTrackletsTrack() const;
46         
47         void        AnalyseTiltedRiemanFit();
48         void        AnalyseMinMax();
49         void        AnalyseFindable(Char_t *treename);
50
51         TCanvas*    PlotSeedingConfiguration(const Char_t *direction, Int_t event, Int_t Candidate);
52         TCanvas*    PlotFullTrackFit(Int_t event, Int_t candidate, Int_t iteration = -1, const Char_t *direction = "y");
53         
54         static Int_t GetEventNumber(){ return fgEventNumber; }
55         static Int_t GetTrackNumber(){ return fgTrackNumber; }
56         static Int_t GetCandidateNumber(){ return fgCandidateNumber; }
57         
58         static void SetEventNumber(Int_t eventNumber){ fgEventNumber = eventNumber; }
59         static void SetTrackNumber(Int_t trackNumber){ fgTrackNumber = trackNumber; }
60         static void SetCandidateNumber(Int_t candidateNumber){ fgCandidateNumber = candidateNumber; }
61                         
62 private:
63         AliTRDtrackerDebug(const AliTRDtrackerDebug &);
64         AliTRDtrackerDebug& operator=(const AliTRDtrackerDebug &);
65
66         Float_t     GetTrackRadius(Float_t a, Float_t b, Float_t c) const;
67         Float_t     GetTrackCurvature(Float_t a, Float_t b, Float_t c) const;
68         Float_t     GetDCA(Float_t a, Float_t b, Float_t c) const;
69
70         TTreeSRedirector *fOutputStreamer;                 //!Output streamer
71         TTree            *fTree;       // debug tree
72         AliTRDseedV1     *fTracklet;   // current tracklet
73         AliTRDtrackV1    *fTrack;      // current TRD track
74         Int_t            fNClusters;   // N clusters for current track
75         Float_t          fAlpha;       // sector
76         
77         static Int_t fgEventNumber;                             //  Event Number in the tracking code
78         static Int_t fgTrackNumber;       //  Track Number per Event
79         static Int_t fgCandidateNumber;   //  Candidate Number per event (Set in MakeSeeds)
80
81         ClassDef(AliTRDtrackerDebug, 1) // debug suite of the TRD tracker
82 };
83
84 #endif
85