SlicDiagnostics/src/org/lcsim/slic/diagnostics
diff -u -r1.20 -r1.21
--- SlicDiagnosticsDriver.java 16 Oct 2006 19:04:44 -0000 1.20
+++ SlicDiagnosticsDriver.java 11 Nov 2006 00:39:07 -0000 1.21
@@ -84,8 +84,16 @@
// Add drivers for MCParticle plots.
if (_options.getBooleanOption("particlePlots"))
{
- add(new CreateFinalStateMCParticleList("Gen"));
- add(new CreateFinalStateMCParticleList("Sim"));
+ if (_options.getBooleanOption("createGenParticles"))
+ {
+ add(new CreateFinalStateMCParticleList("Gen"));
+ }
+
+ if (_options.getBooleanOption("createSimParticles"))
+ {
+ add(new CreateFinalStateMCParticleList("Sim"));
+ }
+
add(new MCParticlePlotsDriver(this));
}
@@ -180,8 +188,8 @@
/** Set the filename to argument basename. */
public void setAidaFileName(String path)
- {
- _fileName = (new File(path)).getName() + ".aida";
+ {
+ _fileName = (new File(path)).getAbsolutePath() + ".aida";
}
private void setFilename()