Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public static CLASDecoder createDecoderDevel(){
return decoder;
}

public void setVariation(String variation) {
detectorDecoder.setVariation(variation);
}

public void setDebugMode(int mode){
this.decoderDebugMode = mode;
}
Expand Down Expand Up @@ -679,6 +683,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 +740,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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void setTimestamp(String timestamp) {
scalerManager.setTimeStamp(timestamp);
}

private void setVariation(String variation) {
public void setVariation(String variation) {
translationManager.setVariation(variation);
fitterManager.setVariation(variation);
scalerManager.setVariation(variation);
Expand Down