getting started with musrsim

15
Getting started with musrSim November 3, 2009 Tsutomu Mibe (KEK)

Upload: kieran-travis

Post on 02-Jan-2016

48 views

Category:

Documents


0 download

DESCRIPTION

Getting started with musrSim. November 3, 2009 Tsutomu Mibe (KEK). Preparation. unzip musrSim.zip cd musrSim make Add low energy EM data files Goto http:// geant4.web.cern.ch/geant4/support/download.shtml Click “download” su cd /opt/ heplib /Geant4/ gtar zxf G4EMLow6.2.tar.gz - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Getting started with  musrSim

Getting started with musrSim

November 3, 2009Tsutomu Mibe

(KEK)

Page 2: Getting started with  musrSim

Preparation• unzip musrSim.zip• cd musrSim• make• Add low energy EM data files

– Goto http://geant4.web.cern.ch/geant4/support/download.shtml– Click “download”

– su– cd /opt/heplib/Geant4/– gtar zxf G4EMLow6.2.tar.gz– exit

• export G4LEDATA=/opt/heplib/Geant4/data/G4EMLOW6.2• cd run• copy example01.mac to this directory.

Page 3: Getting started with  musrSim

Example 01

• example01.mac• Target:– vacuum

• Detector:– No detector

• Beam:– Stopped mu+ at (z,y,z)=(0,0,0)

Page 4: Getting started with  musrSim

Running example01.mac (1)

Page 5: Getting started with  musrSim

Running example01.mac (2)

• Close the VRML View Pro window• A mu+ generates and decays.• A new window with decay particles pops-up.

Geant session ends after this window is closed.

Page 6: Getting started with  musrSim

Turning off visualization

• The visualization of the geometry and particles can be turned off by modifying example01.mac as shown on the right.

Page 7: Getting started with  musrSim

Increasing number of events

• Number of events can be changed by changing the number after /run/beamOn.

Page 8: Getting started with  musrSim

Let’s run again

• No window appears at this time.• A new data file is generated under ./data/

• cd data• root musr_0.root

– “t1” is a name of the output root tree.– A command t1->Print() will provide list of contents

Page 9: Getting started with  musrSim

positron momentum• x-component of the positoron momentum vector• t1->Draw(“posIniMomX”)

Page 10: Getting started with  musrSim

positron momentum

• t1->Draw(“sqrt(posIniMomX^2+posIniMomY^2+posIniMomZ^2)”)

Page 11: Getting started with  musrSim

positron angle• Polar angle (angle between z-axis and positron)• t1->Draw(“posIniMomZ/

sqrt(posIniMomX^2+posIniMomY^2+posIniMomZ^2)”)

cosq

Page 12: Getting started with  musrSim

End root session

Page 13: Getting started with  musrSim

Exercises1. Generate 10000 events.

2. Draw following distributionsa. positron angle vs momentumb. muon decay positions (muDecayPos*) (*=X,Y,Z)c. muon polarization at decay (muDecayPol*)d. muon decay time (muDecayTime)

3. Fit the exponential function to the muon decay time distribution and obtain lifetime

4. Check positron angler distribution and momentum distribution is consistent with the expectation from the weak interaction theory.

Page 14: Getting started with  musrSim

appendix

Page 15: Getting started with  musrSim

My G4 environmental variables