Skip to content

Commit

Permalink
Merge branch 'master' into iss221
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Oct 24, 2017
2 parents 37a52fd + 05c4524 commit 90f22bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion detector-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.lcsim.geometry.compact.converter.Main</mainClass>
<mainClass>org.hps.detector.DetectorConverter</mainClass>
</transformer>
</transformers>
<artifactSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ private void run(String args[]) throws Exception {
}
if (cl.hasOption("r")) {
runNumber = Integer.parseInt(cl.getOptionValue("r"));
} else {
runNumber = 0;
}
}

Converter cnv = null;

Expand All @@ -105,8 +103,8 @@ private void run(String args[]) throws Exception {
throw new IllegalArgumentException("No converter found for format: " + outputFormat);

if (runNumber != null) {
DatabaseConditionsManager mgr = new DatabaseConditionsManager();
String name = "DUMMY";
DatabaseConditionsManager mgr = DatabaseConditionsManager.getInstance();
ConditionsReader dummyReader = ConditionsReader.createDummy();
((ConditionsManagerImplementation) mgr).setConditionsReader(dummyReader, name);
DummyDetector detector = new DummyDetector(name);
Expand Down

0 comments on commit 90f22bb

Please sign in to comment.