File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
common-tools/clas-analysis/src/main/java/org/jlab/analysis/efficiency Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -171,16 +171,19 @@ public String toTable() {
171171 public JsonObject toJson () {
172172 JsonObject effs = new JsonObject ();
173173 JsonArray pids = new JsonArray ();
174+ JsonObject gens = new JsonObject ();
174175 for (int i =0 ; i <validPids .size (); ++i ) {
175176 pids .add (validPids .get (i ));
176177 JsonArray a = new JsonArray ();
177178 for (int j =0 ; j <validPids .size (); ++j )
178179 a .add (get (validPids .get (i ),validPids .get (j )));
179180 effs .add (Integer .toString (validPids .get (i )),a );
181+ gens .add (Integer .toString (validPids .get (i )), mcTallies [validPids .indexOf (i )]);
180182 }
181183 JsonObject ret = new JsonObject ();
182184 ret .add ("pids" , pids );
183185 ret .add ("effs" , effs );
186+ ret .add ("gens" , gens );
184187 return ret ;
185188 }
186189}
You can’t perform that action at this time.
0 commit comments