/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkHough.h
ViewVC logotype

Contents of /DarthVader/TrackerLevel2/inc/TrkHough.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Nov 7 10:38:51 2007 UTC (17 years ago) by pam-fi
Branch: MAIN
CVS Tags: v5r00
Changes since 1.2: +55 -35 lines
File MIME type: text/plain
fixed bug on DB connection

1 /**
2 * \file TrkHough.h
3 * \author David Fedele
4 */
5 #ifndef trkhough_h
6 #define trkhough_h
7
8 #include <TObject.h>
9
10 #include <TrkStruct.h>
11 #include <TrkLevel2.h>
12 /**
13 * \brief Class to describe Hough variables.
14 */
15 // ==================================================================
16 class TrkHough : public TObject {
17
18 private:
19
20 public:
21
22 Int_t ndblt; ///< number of doublets
23 Float_t *alfayz1; //[ndblt]
24 Float_t *alfayz2; //[ndblt]
25 Int_t *db_cloud; //[ndblt]
26
27 Int_t ntrpt; ///< number of triplets
28 Float_t *alfaxz1; //[ntrpt]
29 Float_t *alfaxz2; //[ntrpt]
30 Float_t *alfaxz3; //[ntrpt]
31 Int_t *tr_cloud; //[ntrpt]
32
33 Int_t nclouds_yz; ///< number of yz clouds
34 Float_t *alfayz1_av; //[nclouds_yz]
35 Float_t *alfayz2_av; //[nclouds_yz]
36 Int_t *ptcloud_yz; //[nclouds_yz]
37
38 Int_t nclouds_xz; ///< number of xz clouds
39 Float_t *alfaxz1_av; //[nclouds_xz]
40 Float_t *alfaxz2_av; //[nclouds_xz]
41 Float_t *alfaxz3_av; //[nclouds_xz]
42 Int_t *ptcloud_xz; //[nclouds_xz]
43
44 Int_t nclstr;
45 Float_t totaltime;
46 Float_t houghtime;
47 Float_t fittime;
48
49 /* Int_t ntracks; ///< n. track-candidates */
50 /* Float_t *al0; //[ntracks] */
51 /* Float_t *al1; //[ntracks] */
52 /* Float_t *al2; //[ntracks] */
53 /* Float_t *al3; //[ntracks] */
54 /* Float_t *al4; //[ntracks] */
55
56 TClonesArray *Candidates; ///< track candidates
57
58
59
60 TrkHough();
61
62 void SetFromHoughStruct(cTrkHough*,cTrkCandidates*);
63 void SetFromHoughStruct(cTrkHough *lh){ SetFromHoughStruct(lh,NULL); };
64 void SetFromHoughStruct(){SetFromHoughStruct(&houghevent_,&trackcandidates_); };
65 void Clear();
66 void Delete();
67
68 TClonesArray* GetCandidateArray(){return Candidates;};///< returns pointer to the track array
69 TrkTrack* GetCandidate(int i);
70
71 Int_t GetNCandidates(){return Candidates->GetEntries();} ///< number of candidates;
72
73 TrkHough* GetTrkHough(){return this;}
74
75 ~TrkHough(){ Delete(); };
76
77 ClassDef(TrkHough,2);
78
79 };
80
81 #endif

  ViewVC Help
Powered by ViewVC 1.1.23