001 // 28 Aug. 2001, Elena Gerchtein.
002 // These take effect AFTER release 4.0.0
003
004 // ALL EXEC BUILD's AND TCL FILES THAT USE GENERATORS
005 // SHOULD BE MODIFIED WITH RESPECT TO THE FOLLOWING CHANGES IN
006 // generatorMods
007
008 //-->--> GENERATOR SEQUENCE <--<--\\
009
010 All generators and related modules are put into sequences:
011 HardScatGenSequence
012 DecayPackageSequence
013 MinBiasSequence
014 GenFilterSequence
015
016 Two modules are responsible for writing header banks to the event
017 and writing HEPG bank:
018
019 GenInputManager
020 GenOutputManager
021
022 Test executable build generatorMods/test/cdfGen.cc
023 is an example of the right order of generator modules and sequences.
024 Order is important.
025
026 //-->--> DEFAULT SETUP <--<--\\
027
028 The default setup for cdfGen executable:
029
030 Input Modules
031 * DummyInput dummy input module
032 * FileInput File Input Module
033 * DHInput Data Handling Input Module
034 *! GenInputManager Generator Input Manager
035
036 Output Modules
037 * DummyOutput dummy output module
038 * FileOutput Standard File Output Module
039 *! DHOutput Data Handling General Output Module
040
041 Default (all modules) path AllPath
042 Filter? Mask nQuery nPassed
043 * CDF required manager sequence ManagerSequence
044 * no on 0 0 ErrorLoggerManager
045 * no on 0 0 PuffModule
046 * no on 0 0 CalibrationManager
047 * no on 0 0 GeometryManager
048 * no on 0 0 SignalManager
049 * Hard Scat. generator sequence HardScatGenSequence
050 no on 0 0 Pythia
051 no on 0 0 Isajet
052 no on 0 0 herwig
053 no on 0 0 FAKE_EVENT
054 * Decay Package Sequence DecayPackageSequence
055 no on 0 0 TauolaModule
056 no on 0 0 QQModule
057 no on 0 0 EvtGen
058 * no on 0 0 GenOutputManager
059 * Min Bias sequence MinBiasSequence()
060 no on 0 0 mbr
061 * Generator Filter sequence GenFilterSequence()
062 yes on 0 0 GenTrigBFilter
063 yes on 0 0 GenTrigModule
064 yes on 0 0 HepRootManager
065
066 //-->--> MODULE DESCRIPTION <--<--\\
067
068 1) Input module - GenInputManager - writes header bank;
069 this module should be enabled if generators are used.
070
071 2) HardScatGenerator inherits AbsGenModule ( generatorMods/AbsGenModule.hh );
072 AbsGenModule provides HEPEVT management and random stream management.
073 No generator is enabled by default.
074
075 multiple interactions are not possible since tauola
076 and EvtGen are separate modules. I need to do some CdfHepEvt
077 modifications to keep list of HEPEVT states and process it
078 correctly with all other modules. The "talk-tos" are kept
079 in GeneratorModule anyway.
080
081 3) DecayPackages - modify HEPEVT;
082 I used QQModule from generatorMods but I'm not sure if it has
083 the same options as qq menu in FrameMods/GeneratorModule
084
085
086 4) GenOutputManager - writes HEPG banks from HEPEVT;
087 It also checks that only one HardScatGenerator is enabled
088 and it is possible to check other forbidden combinations
089 of enabled modules ( WGRAD + Pythia are excluded with the first
090 check and that was the only dangerous pair so far )
091 If check does not pass framework stop is requested.
092
093 5) MinBiasGenerator - writes HEPG banks from HEPEVT;
094 No generators are enabled by default.
095
096 6) GenFilters - filter HEPG banks.
097
098 //-->--> EXAMPLE OF TCL FILE <--<--\\
099
100 # !!!!!!! -> input module
101
102 module input GenInputManager
103
104 # !!!!!!! -> generator should be enabled before use
105 # !!!!!!! -> no generator are enabled by default
106
107 module enable FAKE_EVENT
108 talk FAKE_EVENT
109 use PT
110 use THETA
111 use PHI
112 generate PT 10. 0. 10. 10. 0. 1.
113 generate PHI 180. 0. 360. 270. 0. 2
114 generate THETA 90. 10. 45. 135. 1.
115 # Generate mu-
116 generate CDFCODE 207
117 generate NPARTICLES 1
118 # show
119 exit
120
121 talk DHOutput
122 output create main_stream runFE.root
123 output path main_stream AllPath
124 output keepList main_stream \
125 LRIH_StorableBank EVCL_StorableBank HEPG_StorableBank
126 exit
127
128 begin -nev 5
129
130 //-->--> CURRENT STATUS <--<--\\
131
132 1) cdfGen produces the same HEPG output as cdfSim in 3.18.0int7
133 for any combination of hard scatter generator, decay package,
134 generator filter and min bias generator.
135
136 2) generation of multiple interactions does not work yet
137 ( the same is right for 3.18.0int7 ).
138
139 3) EvtGen currently works as decay package only until "generator"
140 version is provided.
141
142
143
144
145
146
147
148
Send problems or questions to cdfcode@fnal.gov