37 |
Bool_t *clbad; //[CLlength] |
Bool_t *clbad; //[CLlength] |
38 |
|
|
39 |
TrkCluster(); |
TrkCluster(); |
40 |
~TrkCluster(); |
~TrkCluster(){Clear();}; |
41 |
TrkCluster(const TrkCluster&); |
TrkCluster(const TrkCluster&); |
42 |
|
|
43 |
void Dump(); |
void Dump(); |
44 |
|
void Clear(); |
45 |
Int_t GetLadder() { return 1+(Int_t)((maxs-1)/1024); }; ///< ladder number |
void Clear(Option_t *option){Clear();}; |
46 |
|
void Delete(){Clear();}; |
47 |
|
|
48 |
Float_t GetSignal(Int_t, Float_t); ///< cluster signal |
Float_t GetSignal(Int_t, Float_t); ///< cluster signal |
49 |
Float_t GetSignal(Float_t cut) { return GetSignal( (Int_t)0, cut); }; |
Float_t GetSignal(Float_t cut) { return GetSignal( (Int_t)0, cut); }; |
68 |
Float_t GetETA(float angle){ return GetETA(0,angle); }; |
Float_t GetETA(float angle){ return GetETA(0,angle); }; |
69 |
|
|
70 |
Bool_t IsBad(Int_t); ///< bad-cluster flag |
Bool_t IsBad(Int_t); ///< bad-cluster flag |
71 |
|
Bool_t IsSaturated(Int_t); ///< saturated-cluster flag |
72 |
|
|
73 |
|
Int_t GetPlane() { return (Int_t)((view+1)/2);}; ///< plane number (1-6) |
74 |
|
Int_t GetLadder(){ return 1+(Int_t)((maxs-1)/1024); }; ///< ladder number (1-3) |
75 |
|
Bool_t IsY(){ return (Bool_t)view%2; }; |
76 |
|
Bool_t IsX(){ return !((Bool_t)view%2); }; |
77 |
|
|
78 |
TrkCluster* GetTrkCluster(){ return this; }; |
TrkCluster* GetTrkCluster(){ return this; }; |
79 |
|
|
100 |
Float_t cn[24][12]; ///< CN |
Float_t cn[24][12]; ///< CN |
101 |
// Float_t cnrms[24][12]; ///< CN RMS |
// Float_t cnrms[24][12]; ///< CN RMS |
102 |
Int_t cnn[24][12]; ///< number of strips for CN computation |
Int_t cnn[24][12]; ///< number of strips for CN computation |
103 |
// Int_t fshower[12]; |
|
|
// Int_t good1; |
|
|
// Int_t crc[12]; |
|
104 |
|
|
105 |
TClonesArray *Cluster; ///< clusters |
TClonesArray *Cluster; ///< clusters |
106 |
|
|
|
|
|
107 |
TrkLevel1(); |
TrkLevel1(); |
108 |
~TrkLevel1(){Delete();}; |
~TrkLevel1(){Delete();}; |
109 |
|
|
110 |
int nclstr() {return Cluster->GetEntries();} ///< number of stored clusters |
int nclstr() {return Cluster->GetEntries();} ///< number of stored clusters |
111 |
|
|
112 |
void Dump(); |
void Dump(); |
113 |
void SetFromLevel1Struct(cTrkLevel1 *); |
void SetFromLevel1Struct(cTrkLevel1 *, Bool_t); |
114 |
// void GetLevel1Struct(cTrkLevel1 *) const; |
// void GetLevel1Struct(cTrkLevel1 *) const; |
115 |
cTrkLevel1* GetLevel1Struct(); |
cTrkLevel1* GetLevel1Struct(); |
116 |
void Clear(); |
void Clear(); |
117 |
void Delete(); |
void Delete(); |
118 |
|
void Set(); |
119 |
|
|
120 |
TrkCluster* GetCluster(int); |
TrkCluster* GetCluster(int); |
121 |
|
|
122 |
TrkLevel1* GetTrkLevel1(){return this;} |
TrkLevel1* GetTrkLevel1(){return this;} |
123 |
TClonesArray* GetClusters(){return Cluster;}; ///< returns pointer to the cluster array |
TClonesArray* GetClusters(){return Cluster;}; ///< returns pointer to the cluster array |
124 |
|
|
125 |
int LoadPfaParam(TString); |
int LoadPfaParam(TString); |
126 |
|
int GetPfaNbinsAngle(){return pfa_.nangbin;}; |
127 |
|
int GetPfaNbinsETA(){return pfa_.netaval;}; |
128 |
|
int GetPfaNbinsCharge(){return 0;}; |
129 |
|
float* GetPfaCoord(TString pfa, int nview, int nladder, int nang); |
130 |
|
float* GetPfaAbs(TString pfa, int nang); |
131 |
|
|
132 |
ClassDef(TrkLevel1,2); |
ClassDef(TrkLevel1,2); |
133 |
|
|
134 |
}; |
}; |