1 package org.lcsim.lcio;
2
3 import hep.io.sio.SIOInputStream;
4 import hep.io.sio.SIOOutputStream;
5
6 import java.io.IOException;
7 import org.lcsim.event.TrackerPulse;
8
9
10
11
12
13 class SIOTrackerPulseBlockHandler extends AbstractBlockHandler
14 {
15 public String getType() { return "TrackerPulse"; }
16 public Class getClassForType() { return TrackerPulse.class; }
17 LCIOCallback addCollectionElements(LCIOEvent event, LCIOCollection collection, SIOInputStream in, int n, int version) throws IOException
18 {
19 for (int i = 0; i < n; i++)
20 collection.add(new SIOTrackerPulse(in, collection.getFlags(), version));
21 return null;
22 }
23 void writeCollectionElement(Object element, SIOOutputStream out, int flags) throws IOException
24 {
25 SIOTrackerPulse.write((TrackerPulse) element, out, flags);
26 }
27 }