# ... To run this macro: # setup D0RunII # setup mc_runjob [-d] # setup sam -o -q prd # mc_runjob -macro=mcjob2 # mple Macro to run pythia generator and d0gstar # MiniDB StandardD0 SaveOnMake LinkerOption pbsMemoryLimiter # # Global defines the output directory and job parameters # attach samglobal cfg samglobal define string JobName d0gstartest cfg samglobal define string DestinationDir ./dest cfg samglobal define string CurrentDir ./curr cfg samglobal define string OriginName fnal cfg samglobal define string FacilityName clued0 cfg samglobal define string GroupName dzero attach filestream cfg filestream setinfo generator filestream cfg filestream define string SingleInputFile /prj_root/1161/sim_write/avto/pythia/MCevents.dat_bb ###################### attach d0gstar # ##################### cfg d0gstar define string D0Release p17.06.01 cfg d0gstar define string FrameworkRCPName sim_framework_mckine.rcp cfg d0gstar define string Geometry plate cfg d0gstar define string KeepParticleCalEnergy on cfg d0gstar define int NumRecords 3 ################################ # attach and configure d0sim # ################################ attach d0sim cfg d0sim define string D0Release p17.06.01 cfg d0sim define float NumMinBi 0.0 cfg d0sim define string MinBiOpt Poisson cfg d0sim define string LinkToRundata on #cfg d0sim define string SamActive on #cfg d0sim define string SamDeclareOutput on cfg d0sim editRCP mode=edit package=d0sim rcp=D0SimDropChunks.rcp param=DoDropChunks value=false cfg d0sim editRCP mode=edit package=d0sim rcp=D0SimWriteRDC.rcp param=VetoClassList value=" " # cfg d0sim editRCP mode=edit package=smtdigi rcp=SmtDigiReco.rcp param=doNoise value="false" ############################### # attach and configure d0reco # ############################### attach d0reco cfg d0reco define string D0Release p17.06.01 cfg d0reco define string FrameworkRCPName runD0reco_mc.rcp cfg d0reco define string LinkToRundata on cfg d0reco define string RunOnData off cfg d0reco define string Reprocess off #cfg d0reco define string SamActive on #cfg d0reco define string SamStoreOutput on # // # // Running the job #// # # # On clued0 do this # attach runjob cfg runjob define string RunOption RunExec # // # // Run the job #// cfg filestream make filelist repeat 1 reset chain cfg d0gstar make seeds make job save print script cfg runjob run end # thats all! return