Skip to content

Commit

Permalink
add decoder cli CCDB variation option
Browse files Browse the repository at this point in the history
  • Loading branch information
baltzell committed Oct 11, 2024
1 parent 601d45e commit d894411
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ public static void main(String[] args){
parser.addOption("-t", "-0.5","torus current in the header bank");
parser.addOption("-s", "0.5","solenoid current in the header bank");
parser.addOption("-x", null,"CCDB timestamp (MM/DD/YYYY-HH:MM:SS)");
parser.addOption("-v","default","CCDB variation");

parser.parse(args);

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

if (parser.getOption("-x").getValue() != null) {
if (parser.getOption("-x").getValue() != null)
decoder.detectorDecoder.setTimestamp(parser.getOption("-x").stringValue());
}
if (parser.getOption("-v").getValue() != null)
decoder.detectorDecoder.setVariation(parser.getOption("-v").stringValue());

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

0 comments on commit d894411

Please sign in to comment.