Difference: ProduceSimulatedEvents (3 vs. 4)

Revision 42007-11-11 - FerencSikler

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="TrackerSoftware"
>
>
META TOPICPARENT name="Trash.CMSTrackerSoftware"
 

Produce simulated events

The following lines below show how to generate 1000 simulated minimum bias p+p events.

  • The script replace.csh will be needed below
#!/bin/tcsh

setenv name  "$1"
setenv value "$2"
set file    = $3

perl -pi -e '$name = $ENV{name}; $value = $ENV{value}; \
             s|$name .+$|$name $value|g' $file

  • Create CMKIN and OSCAR project areas and modify configuration files
setenv cmkin CMKIN_6_1_0
setenv oscar OSCAR_3_9_8
setenv events 1000

########
# CMKIN
mkdir $cmkin
cp -R $CMS_PATH/Releases/CMKIN/$cmkin/examples $cmkin
project CMKIN $cmkin; setenv SCRATCH .

# Pythia
cd $cmkin/examples/make_ntpl_jobs
kine_make_ntpl.com pythia
replace.csh "NSEL " $events kine_make_ntpl.run
 
cd ../../..

########
# OSCAR
scramv1 project OSCAR $oscar

cd $oscar/src
  eval `scramv1 runtime -csh`

  #echo " Checking out Workspace.."
  #cmscvsroot OSCAR
  #cvs -Q co -r $oscar Workspace
  cp -R $CMS_PATH/Releases/OSCAR/$oscar/src/Workspace .
  cd Workspace
   replace.csh "OutputDataSet ="                        /System/sim/pp  oscarrc
   replace.csh "EventNtplReader:NtplFileName ="         minbias.ntpl    oscarrc
   replace.csh "NumberOfEventsToBeProcessed ="  $events         oscarrc
   echo "OutputRunNumber = 1" >> oscarrc
  cd ..
cd ../..

  • Produce
########
# CMKIN  
setenv SCRATCH .
cd $cmkin/examples/make_ntpl_jobs
   kine_make_ntpl.run pythia
   mv minbias-lhapdf.ntpl ../../../$oscar/src/Workspace/minbias.ntpl
cd ../../..

########
# OSCAR 
cd $oscar/src/Workspace
   rm PoolFileCatalog.xml* *.sim sim.*
   source writeTrigger.csh
   eval `scramv1 runtime -csh`
   oscar -c oscarrc
cd ../../..

  • Get output
Save files EVD*.pp.sim, *.META.sim and PoolFileCatalog.xml.

<--  
-->

-- FerencSikler - 17 Jan 2006 \ No newline at end of file

 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback