]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/global/AliFlatTPCseed.h
AliHLTJET module
[u/mrichter/AliRoot.git] / HLT / global / AliFlatTPCseed.h
index 58897360d6f5ad93cd776c5a24b12bdcec757759..d5e2db8f5343397707def0cce3a077b0e94728be 100644 (file)
 #include "AliVfriendTrack.h"
 #include "AliVMisc.h"
 #include "AliFlatExternalTrackParam.h"
+#include "AliTPCseed.h"
 
 class AliESDtrack;
 class AliESDfriendTrack;
 class AliExternalTrackParam;
-class AliTrackPointArray;
-class AliTPCseed;
 
 class AliFlatTPCseed  
 {
@@ -36,15 +35,33 @@ class AliFlatTPCseed
   AliFlatTPCseed( AliVConstructorReinitialisationFlag );
   void Reinitialize() { new (this) AliFlatTPCseed( AliVReinitialize ); }
 
+  // -- Getters 
+
+  void GetTPCseed( AliTPCseed *p ) const;
+
+  Int_t GetLabel() const { return fLabel; }
+  Int_t GetNClusters() const { return fNTPCClusters; }
+
+  const AliFlatTPCCluster *GetClusters() const { return reinterpret_cast< const AliFlatTPCCluster* >( fContent ); }
+  AliFlatTPCCluster *GetClustersNonConst(){ return reinterpret_cast< AliFlatTPCCluster* >( fContent ); }
+
   // -- Set methods
  
   void Reset();
 
   void SetFromTPCseed( const AliTPCseed *p );
-  void GetTPCseed( AliTPCseed *p ) const;
 
-  Int_t GetLabel() const { return fLabel; }
-  Int_t GetNClusters() const { return fNTPCClusters; }
+  void SetExternalTrackParam( const AliExternalTrackParam* p ){ fParam.SetExternalTrackParam(  p ); }
+
+  void SetLabel( Int_t lab ){ fLabel=lab; }
+
+  void AddCluster( const AliTPCclusterMI *cl, const AliTPCTrackerPoint *p ){
+               if(cl){
+                       GetClustersNonConst()[fNTPCClusters++].SetTPCCluster( cl, p );
+                       fContentSize+=sizeof(AliFlatTPCCluster);
+               }
+       }
+
 
   // --------------------------------------------------------------------------------
   // -- Size methods