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 |