CDF II
CDF KITS
source navigation ]
diff markup ]
identifier search ]
freetext search ]
file search ]
 
Architecture: i386 ]
Version: 4.10.4 ] [ 4.10.5 ] [ 4.8.4 ] [ 4.8.4l3s ] [ 4.8.5 ] [ 4.9.0 ] [ 4.9.1 ] [ 4.9.1.hpt3 ] [ 4.9.1hpt3 ] [ 4.9.1top1 ] [ 5.0.0 ] [ 5.1.0 ] [ 5.1.0beamonly ] [ 5.1.1 ] [ 5.2.0 ] [ 5.3.0 ] [ 5.3.1 ] [ 5.3.1dsp ] [ 5.3.3 ] [ 5.3.3_nt ] [ 5.3.4 ] [ 6.1.1 ] [ 6.1.1b ] [ 6.1.2 ] [ 6.1.3 ] [ 6.1.4 ] [ 6.1.4int3 ] [ 6.1.4mc ] [ 6.1.4mc_a ] [ 6.1.6 ] [ development ]

001 ##########################################################################
002 # Setup GenInputManager used to set Run number for realistic MC
003 # GenOutputManager enabled by default
004 # supported input modes : 1: mc generator and 2: hepg file 
005 # default is the first one
006 ##########################################################################
007 set CDFSIM_INPUT          [ getenv CDFSIM_INPUT       "MC_GENERATOR" ]
008 set INPUT_FILE            [ getenv INPUT_FILE         "undefined"    ]
009 set FIRST_EVENT_OFFSET    [ expr $BEGIN_EVENT_NUMBER-1               ]
010 #-----------------------------------------------------------------------
011 # Setup input module for generators
012 #-----------------------------------------------------------------------
013 
014 proc setup_mc_generator_input {} {
015 
016     echo "setup_input.tcl:setup_mc_generator_input"
017 
018     global RUN_NUMBER    RUN_SECTION   FIRST_EVENT_OFFSET
019     global RANDOM_SEED_INPUT RANDOM_SEED_OUTPUT
020 
021 module input GenInputManager
022 talk GenInputManager
023   report             set [ getenv REPORT_FREQUENCY    1 ]
024   first_event        set $FIRST_EVENT_OFFSET
025   run_number         set $RUN_NUMBER
026   RunSectionOffset   set [ expr $RUN_SECTION-1 ]
027 
028     echo "\[setup_input.tcl:setup_mc_generator_input\]" FIRST_EVENT_OFFSET= $FIRST_EVENT_OFFSET
029     echo "\[setup_input.tcl:setup_mc_generator_input\]" RUN_NUMBER        = $RUN_NUMBER
030     echo "\[setup_input.tcl:setup_mc_generator_input\]" RUN_SECTION       = $RUN_SECTION
031 
032   RunSectionLength   set 1000000
033 #  LumiWtRunsFromDB  set true
034 #  runNumberFile set ./runlist
035   show
036 exit
037 
038 module enable GenOutputManager
039 }
040 
041 #-----------------------------------------------------------------------
042 # setup HEPG input mode
043 #-----------------------------------------------------------------------
044 proc setup_hepg_input {} {
045   global INPUT_FILE
046 #-----------------------------------------------------------------------
047 # by default everything in HardScatGenSequence is disabled
048 # Get input file. Variable INPUT_FILE has to be defined in one of the
049 # template*.tcl files used
050 #-----------------------------------------------------------------------
051   module input  FileInput
052   module enable FileInput
053   alias include input
054   talk FileInput
055     include file $INPUT_FILE
056     show
057   exit
058 }
059 #------------------------------------------------------------------------------
060 #
061 #------------------------------------------------------------------------------
062 # Setup random seeds
063 talk RandomGenManager
064    RestoreRandomStreams set true
065    SaveRandomStreams set true
066    InputFileName  set $RANDOM_SEED_INPUT
067    OutputFileName set $RANDOM_SEED_OUTPUT
068    show
069 exit
070 
071 if { $CDFSIM_INPUT == "MC_GENERATOR" } then { setup_mc_generator_input } 
072 if { $CDFSIM_INPUT == "HEPG_FILE"    } then { setup_hepg_input         } 
073 #------------------------------------------------------------------------------

source navigation ] diff markup ] identifier search ] freetext search ] file search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!

Send problems or questions to cdfcode@fnal.gov