]>
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 | fDetector(-1), |
13 | fLocalTimeBin(0), | |
d679dd6c | 14 | fClusterMasking(0), |
15 | fPadCol(0), | |
16 | fPadRow(0), | |
93ce7d1b | 17 | fPadTime(0), |
18 | fIsInChamber(kFALSE), | |
19 | fIsShared(kFALSE) | |
d679dd6c | 20 | { |
21 | } | |
22 | ||
23 | /** | |
24 | * Main Constructor | |
25 | */ | |
26 | //============================================================================ | |
93ce7d1b | 27 | AliHLTTRDCluster::AliHLTTRDCluster(const AliTRDcluster* const inCluster): |
d679dd6c | 28 | fX (inCluster->GetX()), |
29 | fY (inCluster->GetY()), | |
30 | fZ (inCluster->GetZ()), | |
93ce7d1b | 31 | fQ (inCluster->fQ), |
32 | fDetector (inCluster->fDetector), | |
33 | fLocalTimeBin (inCluster->fLocalTimeBin), | |
34 | fClusterMasking (inCluster->fClusterMasking), | |
35 | fPadCol (inCluster->fPadCol), | |
36 | fPadRow (inCluster->fPadRow), | |
37 | fPadTime (inCluster->fPadTime), | |
d679dd6c | 38 | fIsInChamber(inCluster->IsInChamber()), |
93ce7d1b | 39 | fIsShared (inCluster->IsShared()) |
d679dd6c | 40 | { |
93ce7d1b | 41 | for(int i=0; i<3; i++) |
42 | fSignals[i]=inCluster->fSignals[i+2]; | |
d679dd6c | 43 | } |
44 | ||
45 | ||
46 | /** | |
47 | * Copy data to the output TRDcluster | |
48 | */ | |
49 | //============================================================================ | |
93ce7d1b | 50 | void AliHLTTRDCluster::ExportTRDCluster(AliTRDcluster* const outCluster) const |
d679dd6c | 51 | { |
52 | // Print(); | |
53 | outCluster->SetX(fX); | |
54 | outCluster->SetY(fY); | |
55 | outCluster->SetZ(fZ); | |
93ce7d1b | 56 | outCluster->fQ=fQ; |
d679dd6c | 57 | outCluster->SetInChamber(fIsInChamber); |
58 | outCluster->SetShared(fIsShared); | |
93ce7d1b | 59 | outCluster->fDetector=fDetector; |
60 | outCluster->fLocalTimeBin=fLocalTimeBin; | |
61 | outCluster->fClusterMasking=fClusterMasking; | |
62 | outCluster->fPadCol=fPadCol; | |
63 | outCluster->fPadRow=fPadRow; | |
64 | outCluster->fPadTime=fPadTime; | |
d679dd6c | 65 | |
93ce7d1b | 66 | for(int i=0; i<3; i++) |
67 | outCluster->fSignals[i+2]=fSignals[i]; | |
d679dd6c | 68 | } |
69 | ||
70 | /** | |
71 | * Prints main info about cluster | |
72 | */ | |
73 | //============================================================================ | |
93ce7d1b | 74 | void AliHLTTRDCluster::Print() const |
d679dd6c | 75 | { |
e03c1166 | 76 | printf(" --hltCluster-- addr %p; sizeof(*this) %i\n", (void*)this, (int)sizeof(*this)); |
93ce7d1b | 77 | printf(" fX %f; fY %f; fZ %f\n",fX,fY,fZ); |
d679dd6c | 78 | } |