How to run production executable with filtering in 4.3.0
The production executable, runMC, is built in the mcProduction package and performs all three of the simulation steps: event generation, detector simulation, and reconstruction.
Setup a test release and check out the package
source ~cdfsoft/cdf2.cshrc
setup cdfsoft2 4.3.0
newrel -t 4.3.0 test4.3.0
cd test4.3.0
addpkg mcProduction
gmake mcProduction.bin
Edit the tcl files to simulate the process you are interested in
Suppose we are interested in simulating b bbar events. Then
- edit mcProduction/tcl/mc_PythiaWenu.tcl. Pythia parameters should be set like this:
mod talk Pythia
PythiaMenu
msel set 5
cmEnergy set 1960
seed set $randomSeed
exit
exit
- If you would like your B's to be decayed by EvtGen, edit mcProduction/tcl/mc_QQ.tcl, comment out or delete mod enable QQModule and add mod enable EvtGen instead.
Add generator-level filtering
Suppose you would like to select events with a high Pt lepton. Then you should do the following:
- edit mcProduction/tcl/mc_pathReco.tcl and change GenFilterSequence to GenFilterSequence()
- edit mcProduction/tcl/mc_postgenHepgFilter.tcl and set the necessary parameters in GenTrigBFilter. The main quantities you can filter on are:
Min and max pt (PtMin & PtMax)
Min and max rapidity (RapMin & RamMax)
Min and max eta (EtaMin & EtaMax)
- For example, to select events with high pt electrons only, your GenTrigBFilter talkto can look like this:
mod talk GenTrigBFilter
GenTrigBFilter
AbsPDG set 1
# select electrons
CodePDG set 11
PtMin set 15
exit
exit
A few more things to set...
Edit mcProduction/tcl/runMendiReco.tcl, and change the run number and the number of events to what you need.
You are ready to run!
cd mcProduction/tcl
../../bin/Linux2-KCC_4_0/runMC runMendiReco.tcl
There will be two files produced as a result of the job: HepHist.dat, which, in particular, should contain histrograms from the filtering module that you can look at and make sure they look reasonable, and mendi_{run_number}.prod, which I guess contains the generated events.
Ready to put CDF's Monte Carlo farms to work?
If you would like to submit a request for MC production, refer to these instructions.
Questions? Comments? Send an e-mail to Natalia Kuznetsova