]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding constructor for the AliTrackPoint
authormivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Jun 2013 12:41:05 +0000 (12:41 +0000)
committermivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Jun 2013 12:41:05 +0000 (12:41 +0000)
(Michael)

TPC/Rec/AliTPCclusterMI.cxx
TPC/Rec/AliTPCclusterMI.h

index 17f0438c86c795e29bcca9c8f0c4c0b9f3135c9b..4151f67a05ef4272572e5515ce5886418e8dfa90 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "AliTPCclusterMI.h"
 #include "AliTPCclusterInfo.h"
+#include "AliTrackPointArray.h"
 #include "AliGeomManager.h"
 #include "AliLog.h"
 
@@ -161,3 +162,31 @@ void AliTPCclusterMI::SetInfo(AliTPCclusterInfo * info) {
   if (fInfo) delete fInfo;
   fInfo = info;
 }
+
+
+AliTPCclusterMI* AliTPCclusterMI::MakeCluster(AliTrackPoint* point) {
+  //
+  // make AliTPCclusterMI out of AliTrackPoint
+  // (not yet implemented)
+  
+  return NULL;
+}
+
+
+AliTrackPoint* AliTPCclusterMI::MakePoint(AliTPCclusterMI* cluster) {
+  //
+  // make AliTrackPoint out of AliTPCclusterMI
+  //
+
+  AliTrackPoint* point = NULL;
+  
+  if(cluster){
+    point = new AliTrackPoint();
+    
+    Float_t xyz[3];
+    cl->GetGlobalXYZ(xyz);
+    point->SetXYZ(xyz);
+  }
+
+  return point;
+}
index 47292f6b579f263635ac8dd2f4cf27eaa3de7739..585f868e6861d551ac91862447261f20170c4dcb 100644 (file)
@@ -13,6 +13,9 @@
 #include "AliCluster.h"
 #include "TMath.h"
 #include "AliTPCclusterInfo.h"
+
+class AliTrackPoint;
+
 //_____________________________________________________________________________
 class AliTPCclusterMI : public AliCluster {
 public:
@@ -43,6 +46,9 @@ public:
   Float_t GetPad() const { return fPad;}
   AliTPCclusterInfo * GetInfo() const { return fInfo;}
   void SetInfo(AliTPCclusterInfo * info);
+  //
+  AliTPCclusterMI*  MakeCluster(AliTrackPoint* point);
+  AliTrackPoint*    MakePoint(AliTPCclusterMI* cluster);
 
 private:
   AliTPCclusterInfo * fInfo;  // pointer to the cluster debug info