Skip to content

Commit 4cee7e4

Browse files
committed
cleanup
1 parent 3251fc7 commit 4cee7e4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,6 @@ public void initEvent(DataEvent event){
719719
if(evioEvent.getHandler().getStructure()!=null){
720720
try {
721721

722-
codaDecoder.cacheBranches(evioEvent);
723-
724722
dataList = codaDecoder.getDataEntries( (EvioDataEvent) event);
725723

726724
List<FADCData> fadcPacked = codaDecoder.getADCEntries((EvioDataEvent) event);

common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CodaEventDecoder.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,15 @@ public void setTriggerBits(long triggerBits) {
7979
}
8080

8181
/**
82-
* Load map by crate(?).
82+
* Load map by crate.
8383
*
8484
* @param event
8585
*/
86-
void cacheBranches(EvioDataEvent event) {
86+
private void cacheBranches(EvioDataEvent event) {
8787
branchMap = new TreeMap<>();
88-
for (EvioTreeBranch branch : CodaDecoders.getEventBranches(event)) {
88+
for (EvioTreeBranch branch : CodaDecoders.getEventBranches(event))
8989
if (!branchMap.containsKey(branch.getTag()))
9090
branchMap.put(branch.getTag(), branch);
91-
}
9291
}
9392

9493
/**
@@ -99,6 +98,8 @@ void cacheBranches(EvioDataEvent event) {
9998
* @return
10099
*/
101100
public List<DetectorDataDgtz> getDataEntries(EvioDataEvent event){
101+
102+
cacheBranches(event);
102103

103104
//int event_size = event.getHandler().getStructure().getByteBuffer().array().length;
104105
// This had been inserted to accommodate large EVIO events that

0 commit comments

Comments
 (0)