How To Use CMSIM Interactively to Make Some Pictures

 
 



What we want to do :

    Make some interesting pictures (like the one below) from the CMS geometry files and see exactly where those particles we generated with the Particle Gun went.  (Much of this info came from UCDavis, http://www-collider.physics.ucla.edu/cms/cmsim/notes.html)
 

What to do :

Setup cmsim interactive ...

    cmsim cms122
    setup gtools   // already in place, you might not need this

    setenv SCRATCH  my_scratch_area
    setenv WORKDIR  my_scratch_area

    mkdir cms122l
    cd cms122
    mkdir cmsim

    cd cmsim
    cp $SRC/../examples/cmsim/* .
    cmsbuild -i      // for interactive

Now turn it on ...

    cms122i.run      // for interactive

And lets do something interesting (my comments after the '!' so you can copy this directly into the CMSIM session) ...

    null 0 1200 0 800               ! make grid
    igset ltyp 1                        ! make solid lines

! Draw detector
!<Volume name> <Axis value> <Cut plane distance>
!<x origin><y origin><x scale factor><y scale factor>
 
    dcut cmse x 0 0 0 1 1
 
! Make a muon (part id =5)
! <setup> <particle id> <eta min> <eta max>
! <phi min> <phi max> <pt min> <pt max>
 
    kine 1 5 .8 2.4 90 90 100 100
 
    switch 2 3              ! set switch 2 to 3 (?)
    trig                    ! Generate Event and plot
 
Hopefully you see a nice picture .  Let's do another one ...

! Another (Endview) of detector
    null -800 800 -800 800
    dxcut cmse 0 0 0 0 0 0 0 1 1
 
    fo/fi  77 myplot.eps
    null 0 1200 0 800
    igset ltyp 1
    dcut cmse x 0 0 0 1 1
    kine 1 5 1 1 90 90 5 5
    switch 2 3
    trig

As you can see, we put that picture to an eps file so you can print it out and show your advisor your hard at work.

I have not really played around too much with the interactive version of CMSIM, it does not seem to be very useful beyond understanding exactly what the magnetic field is doing and seeing where particles are hitting the subdetectors.