Skip to content

Commit 6c939ba

Browse files
committed
add convenience method
1 parent 0258cb5 commit 6c939ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common-tools/clas-detector/src/main/java/org/jlab/detector/base/DetectorDescriptor.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ public final void setSectorLayerComponent(int sector, int layer, int comp){
8888
this.dt_COMPONENT = comp;
8989
}
9090

91+
public final void setSectorLayerComponentOrderType(int sector, int layer, int comp, int order, int type) {
92+
this.dt_SECTOR = sector;
93+
this.dt_LAYER = layer;
94+
this.dt_COMPONENT = comp;
95+
this.dt_ORDER = order;
96+
this.detectorType = DetectorType.getType(type);
97+
}
98+
9199
public static int generateHashCode(int s, int l, int c){
92100
return ((s<<24)&0xFF000000)|
93101
((l<<16)&0x00FF0000)|(c&0x0000FFFF);

0 commit comments

Comments
 (0)