+void AliITSpList::AddItemTo(Int_t fileIndex, AliITSpListItem *pl) {
+ // Adds the contents of pl to the list with track number off set given by
+ // fileIndex.
+ // Creates the AliITSpListItem if needed.
+ // Inputs:
+ // Int_t fileIndex track number offset value
+ // AliITSpListItem *pl an AliITSpListItem to be added to this class.
+ // Outputs:
+ // none.
+ // Return:
+ // none.
+ Int_t index = pl->GetIndex();
+
+ if( fa->At( index ) == 0 ) { // most create AliITSpListItem
+ fa->AddAt(new AliITSpListItem(-2,-1,pl->GetModule(),index,0.0),index);
+ } // end if
+
+ ((AliITSpListItem*)(fa->At( index )))->AddTo( fileIndex, pl );
+}
+//______________________________________________________________________