Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions common-tools/clas-reco/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
<classifier>jar-with-dependencies</classifier>
</dependency>

<dependency>
<groupId>org.jlab.coda</groupId>
<artifactId>jtools</artifactId>
<version>2.2</version>
</dependency>

<dependency>
<groupId>cnuphys</groupId>
<artifactId>magfield</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import org.jlab.clara.base.error.ClaraException;
import org.jlab.clara.engine.ClaraSerializer;
import org.jlab.clara.engine.EngineDataType;
import org.jlab.clas12.tools.MimeType;
import org.jlab.clas12.tools.property.JPropertyList;
import org.jlab.jnp.hipo4.data.Event;


Expand All @@ -30,22 +28,9 @@ public Object read(ByteBuffer buffer) throws ClaraException {
}
}

public static final EngineDataType EVIO = new EngineDataType(MimeType.EVIO.type(), EngineDataType.BYTES.serializer());
public static final EngineDataType EVIO = new EngineDataType("binary/data-evio", EngineDataType.BYTES.serializer());

public static final EngineDataType HIPO =
new EngineDataType("binary/data-hipo", new HipoSerializer());

public static final EngineDataType PROPERTY_LIST = new EngineDataType(MimeType.PROPERTY_LIST.type(), new ClaraSerializer() {

@Override
public ByteBuffer write(Object data) throws ClaraException {
JPropertyList pl = (JPropertyList) data;
return ByteBuffer.wrap(pl.getStringRepresentation(true).getBytes());
}

@Override
public Object read(ByteBuffer buffer) throws ClaraException {
return new JPropertyList(new String(buffer.array()));
}
});
}
Loading