// _______________________________________________________________________________________________________
-
+using std::cout;
+using std::endl;
}
+
+// _______________________________________________________________________________________________________
+ ULong64_t AliFlatESDFriend::EstimateSize(AliESDfriend* esdFriend)
+{
+ // Estimate upper limit of the object size
+ // -> Added objects have to be added here as well
+ if(esdFriend == NULL) return 0;
+ ULong64_t size = sizeof(AliFlatESDFriend);
+ // one Long64_t per track for tracks table
+ size += esdFriend->GetNumberOfTracks() * (AliFlatESDFriendTrack::EstimateSize() + sizeof(Long64_t) );
+ return size;
+}
+
+
+
// _______________________________________________________________________________________________________
Int_t AliFlatESDFriend::SetFromESDfriend( const size_t allocatedMemorySize, const AliESDfriend *esdFriend )