TWiki
>
CMS Web
>
CMSTrackerSoftware
>
ProduceSimulatedEvents
(2007-11-11,
FerencSikler
)
(raw view)
E
dit
A
ttach
---+++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 <blockquote> <verbatim> #!/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 </verbatim> </blockquote> * Create CMKIN and OSCAR project areas and modify configuration files <blockquote> <verbatim> 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 ../.. </verbatim> </blockquote> * Produce <blockquote> <verbatim> ######## # 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 ../../.. </verbatim> </blockquote> * Get output <blockquote> Save files =EVD*.pp.sim=, =*.META.sim= and =PoolFileCatalog.xml=. </blockquote> <!-- * Set ALLOWTOPICCHANGE = Main.CmsHiGroup * Set ALLOWTOPICRENAME = Main.CmsHiGroup --> -- Main.FerencSikler - 17 Jan 2006
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 2007-11-11
-
FerencSikler
CMS
Hungarian Academy of Sciences (MTA)
Wigner RCP
Department of High Energy Physics
CMS (CERN)
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback