]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
little changes
authorsgorbuno <Sergey.Gorbunov@cern.ch>
Mon, 15 Sep 2014 19:45:18 +0000 (21:45 +0200)
committersgorbuno <Sergey.Gorbunov@cern.ch>
Mon, 15 Sep 2014 19:45:18 +0000 (21:45 +0200)
HLT/global/AliFlatESDFriendTrack.h
HLT/global/AliFlatTPCseed.cxx
HLT/global/AliFlatTPCseed.h

index 450dd2b8c8c95502f43c789b6c470bf64209fd37..984dab4d777def7366e88017086eeb7004a8372a 100644 (file)
@@ -39,7 +39,7 @@ class AliFlatESDFriendTrack :public AliVfriendTrack
 
   // --------------------   AliVfriendTrack interface    ---------------------------------
 
-  Int_t GetTPCseed( AliTPCseed &) const {return -1;}
+  Int_t GetTPCseed( AliTPCseed &) const;
  
   Int_t GetTrackParamTPCOut( AliExternalTrackParam &p ) const { return GetTrackParam( fTPCOutPointer, p ); }
   Int_t GetTrackParamITSOut( AliExternalTrackParam &p ) const { return GetTrackParam( fITSOutPointer, p ); }
@@ -131,4 +131,12 @@ inline void AliFlatESDFriendTrack::SetTPCseed( const AliTPCseed *p )
   fContentSize += fp->GetSize();  
 }
 
+inline Int_t AliFlatESDFriendTrack::GetTPCseed( AliTPCseed &s ) const
+{
+  if( fTPCseedPointer<0 ) return -1;
+  const AliFlatTPCseed *fp = reinterpret_cast< const AliFlatTPCseed* >( fContent + fTPCseedPointer );
+  fp->GetTPCseed( &s );
+  return 0;
+}
+
 #endif
index 112f082edea79bb55e99452f8905039a7cbc5d95..82d97657b31c907a18ace6bf2242fb642839c863 100644 (file)
@@ -46,3 +46,9 @@ void AliFlatTPCseed::SetFromTPCseed( const AliTPCseed *p )
   // initialise from AliTPCseed
 
 }
+
+void AliFlatTPCseed::GetTPCseed( AliTPCseed *p ) const
+{
+  // write to AliTPCseed
+
+}
index 8c88ae872ef7793cb5185274c7058083bbec566b..e44e711cfb4e1ba489f14b7863cf68185883e303 100644 (file)
@@ -42,6 +42,7 @@ class AliFlatTPCseed
   void Reset();
 
   void SetFromTPCseed( const AliTPCseed *p );
+  void GetTPCseed( AliTPCseed *p ) const;
 
   
   // --------------------------------------------------------------------------------