All Drivers have a method

setHistogramLevel(int level)

which can be used to control the level of histograms produced by a Driver. By default the level is set to 0, which means do not produce any histograms at all. Setting the histogram level on a driver will also effect any child drivers called by that Driver, unless the level has been set explicitly for the child drivers.

For example to run the FastMC driver with histogramming turned on try the following

import org.lcsim.util.Driver;

public class FastMC extends Driver
   public FastMC()
      // Create MCFast with standard options
      Driver fast = new MCFast();
      // Turn on diagnostic histograms
      // Add as sub-driver