Skip to content

Commit d894411

Browse files
committed
add decoder cli CCDB variation option
1 parent 601d45e commit d894411

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ public static void main(String[] args){
679679
parser.addOption("-t", "-0.5","torus current in the header bank");
680680
parser.addOption("-s", "0.5","solenoid current in the header bank");
681681
parser.addOption("-x", null,"CCDB timestamp (MM/DD/YYYY-HH:MM:SS)");
682+
parser.addOption("-v","default","CCDB variation");
682683

683684
parser.parse(args);
684685

@@ -735,9 +736,10 @@ public static void main(String[] args){
735736
decoder.setRunNumber(nrun,true);
736737
}
737738

738-
if (parser.getOption("-x").getValue() != null) {
739+
if (parser.getOption("-x").getValue() != null)
739740
decoder.detectorDecoder.setTimestamp(parser.getOption("-x").stringValue());
740-
}
741+
if (parser.getOption("-v").getValue() != null)
742+
decoder.detectorDecoder.setVariation(parser.getOption("-v").stringValue());
741743

742744
// Store all helicity readings, ordered by timestamp:
743745
TreeSet<HelicityState> helicityReadings = new TreeSet<>();

0 commit comments

Comments
 (0)