]>
Commit | Line | Data |
---|---|---|
b2dc316d | 1 | #include "TMath.h" |
2 | ||
3 | #include "AliLog.h" | |
4 | #include "AliTRDcluster.h" | |
5 | ||
6 | #include "AliTRDclusterInfo.h" | |
7 | ||
8 | ClassImp(AliTRDclusterInfo) | |
9 | ||
10 | //_________________________________________________ | |
11 | AliTRDclusterInfo::AliTRDclusterInfo() | |
12 | : TObject() | |
13 | ,fDet(0xffff) | |
14 | ,fPdg(0) | |
15 | ,fLbl(-1) | |
16 | ,fQ(0.) | |
17 | ,fX(0.) | |
18 | ,fY(0.) | |
19 | ,fZ(0.) | |
20 | ,fdydx(0.) | |
21 | ,fdzdx(0.) | |
22 | ,fXd(0.) | |
23 | ,fYt(0.) | |
24 | ,fZt(0.) | |
25 | ,fdy(0.) | |
26 | ,fD(0.) | |
27 | { | |
28 | memset(fCov, 0, 3*sizeof(Float_t)); | |
29 | } | |
30 | ||
31 | //_________________________________________________ | |
32 | void AliTRDclusterInfo::SetCluster(const AliTRDcluster *c) | |
33 | { | |
34 | if(!c) return; | |
35 | fDet = c->GetDetector(); | |
36 | fX = c->GetX(); | |
37 | fY = c->GetY(); | |
38 | fZ = c->GetZ(); | |
39 | fQ = TMath::Abs(c->GetQ()); | |
40 | } | |
41 | ||
42 | //_________________________________________________ | |
43 | void AliTRDclusterInfo::Print(Option_t */*opt*/) const | |
44 | { | |
45 | printf("Det[%3d] X[%7.2f] Y[%7.2f] Z[%7.2f] Q[%7.2f]\n", fDet==0xffff ? -1 : fDet, fX, fY, fZ, fQ); | |
46 | printf("\tPdg[%d] Lbl[%d] Yt[%7.2f] Zt[%7.2f]\n", fPdg, fLbl, fYt, fZt); | |
47 | } |