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