Interactive CMSIM

How to run CMSIM interactively...

To run the software, type
% cmsdev
This defines many aliases and adds the some directories to your path, as appropriate to your particular platform. You will only have an executable for your particular platform, located in the directory $CMS_BIN/<platform-type>/, which is aliased to $CMS_EXE. As of this writing, the current version is v113. The proper directory should be in your path; to run the software simply type
% cmsv113.exe

As a first exercise, let's draw a 1/4 view of the detector. Once CMSIM completes its startup routine (this may take some time), type
GEANT > null 0 1200 0 800 ! draw a grid for the detector
GEANT > igset ltyp 1 ! set the line type to solid
GEANT > dcut cmse x 0 0 0 1 1 ! draw the detector, where the variables are
!<Volume name> <Axis value> <Cut plane distance>
!<x origin><y origin><x scale factor><y scale factor>
You should now have a picture of the detector that looks like this one.

We can make a muon go through the detector. Type
GEANT > kine 1 5 .8 2.4 90 90 100 100 ! Set up the kinematics for this muon, where the variables are
!<setup> <particle id> <eta min> <eta max> <phi min> <phi max>
!<pt min> <pt max>
! Note that particle ID code 5 means muon.
GEANT > switch 2 3 ! Set switch 2 to 3
GEANT > trig ! Generate an event and plot it.
You should now have a picture of the detector with a muon that looks similar to this one.

Now, let's make an endview of the detector.
GEANT > null -800 800 -800 800 ! draw a grid for the detector
GEANT >dxcut cmse 0 0 0 0 0 0 0 1 1 !draw the detector, where the variables are
!<Volume name> <Theta angle> <Phi angle>
!<Cut plane distance><viewing theta><viewing phi>
!<hori. orig.><vert. orig.><hori. scale><vert. scale>
The endview should like similar to this. It is possible to do all of your work with interactive CMSIM. However, it is a huge resource hog and needs about 170 MB RAM to run completely. I keep running out of memory.... and prefer to use the batch version.

last updated 4 May 1998 by Benn Tannenbaum (benn@physics.ucla.edu)