]>
Commit | Line | Data |
---|---|---|
d679dd6c | 1 | #include "AliHLTTRDCluster.h" |
2 | ||
d679dd6c | 3 | /** |
4 | * Default Constructor | |
5 | */ | |
6 | //============================================================================ | |
7 | AliHLTTRDCluster::AliHLTTRDCluster(): | |
d679dd6c | 8 | fX(0), |
9 | fY(0), | |
10 | fZ(0), | |
dc2e6604 | 11 | fQ(0), |
d679dd6c | 12 | fIsInChamber(kFALSE), |
13 | fIsShared(kFALSE), | |
14 | fDetector(-1), | |
15 | fLocalTimeBin(0), | |
d679dd6c | 16 | fClusterMasking(0), |
17 | fPadCol(0), | |
18 | fPadRow(0), | |
19 | fPadTime(0) | |
20 | { | |
21 | } | |
22 | ||
23 | /** | |
24 | * Main Constructor | |
25 | */ | |
26 | //============================================================================ | |
27 | AliHLTTRDCluster::AliHLTTRDCluster(AliTRDcluster * inCluster): | |
d679dd6c | 28 | fX (inCluster->GetX()), |
29 | fY (inCluster->GetY()), | |
30 | fZ (inCluster->GetZ()), | |
dc2e6604 | 31 | fQ (inCluster->GetQ()), |
d679dd6c | 32 | fIsInChamber(inCluster->IsInChamber()), |
33 | fIsShared (inCluster->IsShared()), | |
34 | fDetector (inCluster->GetDetector()), | |
35 | fLocalTimeBin (inCluster->GetLocalTimeBin()), | |
d679dd6c | 36 | fClusterMasking (inCluster->IsMasked()), |
37 | fPadCol (inCluster->GetPadCol()), | |
38 | fPadRow (inCluster->GetPadRow()), | |
39 | fPadTime ( inCluster->GetPadTime()) | |
40 | { | |
41 | // fNPads = inCluster->GetNPads(); | |
42 | // fCenter = inCluster->GetCenter(); | |
43 | } | |
44 | ||
45 | ||
46 | /** | |
47 | * Copy data to the output TRDcluster | |
48 | */ | |
49 | //============================================================================ | |
50 | void AliHLTTRDCluster::ExportTRDCluster(AliTRDcluster *outCluster) | |
51 | { | |
52 | // Print(); | |
53 | outCluster->SetX(fX); | |
54 | outCluster->SetY(fY); | |
55 | outCluster->SetZ(fZ); | |
dc2e6604 | 56 | outCluster->SetQ(fQ); |
d679dd6c | 57 | outCluster->SetInChamber(fIsInChamber); |
58 | outCluster->SetShared(fIsShared); | |
59 | outCluster->SetDetector(fDetector); | |
60 | outCluster->SetLocalTimeBin(fLocalTimeBin); | |
d679dd6c | 61 | outCluster->SetClusterMasking(fClusterMasking); |
62 | ||
63 | outCluster->SetPadCol(fPadCol); | |
64 | outCluster->SetPadRow(fPadRow); | |
65 | outCluster->SetPadTime(fPadTime); | |
66 | // outCluster->SetNPads(fNPads); | |
67 | // outCluster->SetCenter(fCenter); | |
68 | ||
69 | ||
70 | } | |
71 | ||
72 | /** | |
73 | * Prints main info about cluster | |
74 | */ | |
75 | //============================================================================ | |
76 | void AliHLTTRDCluster::Print() | |
77 | { | |
dc2e6604 | 78 | //printf(" --hltCluster-- addr 0x%x(%i); sizeof(*this) %i\n", this, (int)this, this->GetSize()); |
d679dd6c | 79 | //printf(" fX %f; fY %f; fZ %f\n",fX,fY,fZ); |
80 | ||
81 | } |