############################################################################### # this example shows how to generate and simulate in the detector # ppbar --> ttbar process # # CDF2SIM defaults: - path AllPath is enabled # - all the modules are disabled # so one needs to enable the modules he needs # # to run cdf2sim in batch mode one needs to add "-b" flag to disable # initialization of ROOT graphics : # cdf2sim.exe input_file.tcl -b ############################################################################### # module input FAKE_EVENT module talk FAKE_EVENT # # parameters are: # mean, sigma, min, max, power, mode # # if mode=1 use gaussian with mean and sigma with min max cutoffs # if mode=2 use power law with power (0=flat distribution) # generate PT 0.0 0.0 2.0 100. 0 2 generate ETA 0.0 0.0 -0.5 0.5 0 2 # Note: phi is in degrees not radians generate PHI 0.0 0.0 0.0 360. 0 2 # electron 203, positron 204, mu- 207, mu+ 208 generate CDFCODE 208 # number of particles generate NPARTICLES 1 show exit # # Setup GEANT3 module enable GEANT3 talk GEANT3 DETECTORS OFF PIPE source $env(CDFSOFT2_DIR)/RootMods/examples/cdf2sim/tcl/geant3_output_banks.tcl exit # Disable plotting package module disable g3hist # Show the path path list # # Set up the output module output FileOutput talk FileOutput output create AA ./results/fake_gensim.rt output path AA AllPath source $env(CDFSOFT2_DIR)/RootMods/examples/cdf2sim/tcl/cdf2sim_AA_keepList.tcl output list exit # # Run this bad boy... begin -nev 100 # Show the statistics show exit