File tree Expand file tree Collapse file tree
src/main/java/org/jlab/clas/reco Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # this is a simple Makefile meant for developers' convenience
2+ # - it only has the most common build commands we use
3+ # - for any other build command, please use `./build-coatjava.sh`
4+
5+ # convert `make` arg `-j#` -> `mvn` arg `-T#`, if provided
6+ JOBS := $(patsubst -j% ,% ,$(filter -j% ,$(MAKEFLAGS ) ) )
7+ THREADS := $(if $(strip $(JOBS ) ) ,-T$(JOBS ) ,)
8+
9+ BUILD := ./build-coatjava.sh
10+
11+ .PHONY : default all clean clara
12+
13+ .DEFAULT_GOAL := default
14+
15+ default :
16+ $(BUILD ) $(THREADS )
17+
18+ clean :
19+ $(BUILD ) --clean $(THREADS )
20+
21+ clara :
22+ $(BUILD ) --clara $(THREADS )
23+
24+ all : clara
Original file line number Diff line number Diff line change 3636 <classifier >jar-with-dependencies</classifier >
3737 </dependency >
3838
39- <dependency >
40- <groupId >org.jlab.coda</groupId >
41- <artifactId >jtools</artifactId >
42- <version >2.2</version >
43- </dependency >
44-
4539 <dependency >
4640 <groupId >cnuphys</groupId >
4741 <artifactId >magfield</artifactId >
Original file line number Diff line number Diff line change 55import org .jlab .clara .base .error .ClaraException ;
66import org .jlab .clara .engine .ClaraSerializer ;
77import org .jlab .clara .engine .EngineDataType ;
8- import org .jlab .clas12 .tools .MimeType ;
9- import org .jlab .clas12 .tools .property .JPropertyList ;
108import org .jlab .jnp .hipo4 .data .Event ;
119
1210
@@ -30,22 +28,9 @@ public Object read(ByteBuffer buffer) throws ClaraException {
3028 }
3129 }
3230
33- public static final EngineDataType EVIO = new EngineDataType (MimeType . EVIO . type () , EngineDataType .BYTES .serializer ());
31+ public static final EngineDataType EVIO = new EngineDataType ("binary/data-evio" , EngineDataType .BYTES .serializer ());
3432
3533 public static final EngineDataType HIPO =
3634 new EngineDataType ("binary/data-hipo" , new HipoSerializer ());
3735
38- public static final EngineDataType PROPERTY_LIST = new EngineDataType (MimeType .PROPERTY_LIST .type (), new ClaraSerializer () {
39-
40- @ Override
41- public ByteBuffer write (Object data ) throws ClaraException {
42- JPropertyList pl = (JPropertyList ) data ;
43- return ByteBuffer .wrap (pl .getStringRepresentation (true ).getBytes ());
44- }
45-
46- @ Override
47- public Object read (ByteBuffer buffer ) throws ClaraException {
48- return new JPropertyList (new String (buffer .array ()));
49- }
50- });
5136}
You can’t perform that action at this time.
0 commit comments