path enable AllPath creator set CDFSIM path list mod list useRCP set true # input module for generators module input GenInputManager set runSection 0 set repFreq 100 set evtOffset 0 #-------- setup the generator -------------- talk GenInputManager run_number set $run RunSectionOffset set $runSection # section_number set $runSection genBeginRun set t #GenInputManager should make ONE runsection per file!!! RunSectionLength set 1000000 #Note: the RunSectionLength has a max of 1million first_event set $evtOffset report set $repFreq exit talk GeometryManager # Use the defaults but substitute the detailed for the simple Si detector # The following set up is to be added to the default GeometryManager set up. DetectorMenu show exit # TOF geometry model TofGeometryMenu # options: Nominal, Naive GeometryModel set Survey exit exit talk SimInitManager DetectorMenu declareSvx set t declareCot set t declareMuon set t declareCalor set t declareTof set t declarePassive set t declareBeampipeC set t declareCPR set f exit exit talk SimulationControlMod DebugMenu showActiveVolumes set t exit DetectorMenu simulateSvx set t simulateCot set t simulateMuon set t simulateTof set t simulateCalor set t simulatePassive set t exit dumpFactory add CdfHalfLadder SvxDigitizer SvxGroup add CotSuperLayer CotDigitizer CotGroup add CMUExtrusion MuonDigiCMU MuonCMUdata add CMPPart MuonDigiCMP MuonCMPdata add CMXChamber MuonDigiCMX MuonCMXdata add CSXCounter MuonDigiCSX MuonCSXdata add Tof3Pack TofDigi3Pack TofGroup add TofBar TofDigiBar TofGroup add CalorDetectorElement CalorDigiGeneric CalorGroup add BFCoil CalorDigiBFCoil CalorGroup add NoBFCoil CalorDigiNoBFCoil CalorGroup add BMUGas ImuDigiBMUGas ImuGroup add BSUPaddle ImuDigiBSUPaddle ImuGroup add TSUPaddle ImuDigiTSUPaddle ImuGroup show add ConfigMenus CotGroup_CotSuperLayer DriftModel set Garfield exit exit exit # First you need to set up HistogramManager because CP # insists on throwing an exception if there's no Histogram manager. # I.e. unless you have HepRootManager or alike in your path BEFORE # any of the GenTrig stuff your exe will crash at run time. if [file exists HepHist.dat] { exec rm HepHist.dat } mod enable HepRootManager mod talk HepRootManager histfile set HepHist.dat createHistoFile set true exit # Second you set up the general hepg filter: