Difference: SimulationSoftware (1 vs. 12)

Revision 122015-12-16 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 11 to 11
 

Documentation

Added:
>
>
Automated doxygen
http://test-bl4s-mc-cherenkov.web.cern.ch/test-bl4s-mc-cherenkov/
 
Geant4 website
http://geant4.web.cern.ch/geant4/index.shtml
Developer guide
https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/
Source reference (LXR)
http://www-geant4.kek.jp/LXR/
Line: 50 to 51
  Note that the macro will try to open Root files with the format specified above, using the charge and energy specified. It will try to plot electrons, muons, pions, protons and neutrons, if Root files are available.
Added:
>
>

Documentation

Each simulation has a Doxyfile to drive doxygen generation of documentation. Just run doxygen in the same folder as the Doxyfile. The documentation is hosted from AFS (by TimBrooks) at http://test-bl4s-mc-cherenkov.web.cern.ch/
 

Simulations

LeadGlassCalorimeter

Based on the NA62 MC source code, since they use the same OPAL blocks.

Revision 112015-12-11 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 68 to 68
  mu.png pi.png proton.png
Added:
>
>
  • Photon energy spectrum:
    energies.png
 
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
    2bar_1GeV.png 2bar_3GeV.png
Line: 89 to 91
 
META FILEATTACHMENT attachment="proton.png" attr="" comment="Parameter scans" date="1449589574" name="proton.png" path="proton.png" size="34364" user="brooks" version="1"
META FILEATTACHMENT attachment="kaon.png" attr="" comment="Parameter scans" date="1449597568" name="kaon.png" path="kaon.png" size="33562" user="brooks" version="1"
META FILEATTACHMENT attachment="5000MeV_2.0bar.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1449599685" name="5000MeV_2.0bar.png" path="5000MeV_2.0bar.png" size="18882" user="brooks" version="1"
Added:
>
>
META FILEATTACHMENT attachment="energies.png" attr="" comment="Photon energy spectrum" date="1449837156" name="energies.png" path="energies.png" size="11179" user="brooks" version="3"

Revision 92015-12-08 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 60 to 60
 

CherenkovCounter

Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
Changed:
<
<
2bar_-5GeV.png
  • Parameter scans of photon multiplicity with positive electrons, protons, muons and pions:
>
>
5000MeV_2.0bar.png
  • Parameter scans of photon multiplicity with positive electrons, kaons, muons, pions and protons:
  e.png
Changed:
<
<
proton.png
>
>
kaon.png
  mu.png pi.png
Added:
>
>
proton.png
 
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
    2bar_1GeV.png 2bar_3GeV.png
Line: 81 to 82
 
META FILEATTACHMENT attachment="2bar_5GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961202" name="2bar_5GeV.png" path="2bar_5GeV.png" size="12062" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_7GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961220" name="2bar_7GeV.png" path="2bar_7GeV.png" size="11937" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_-5GeV.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1448986640" name="2bar_-5GeV.png" path="2bar_-5GeV.png" size="11900" user="brooks" version="2"
Changed:
<
<
META FILEATTACHMENT attachment="mu.png" attr="" comment="Parameter scans" date="1449569586" name="mu.png" path="mu.png" size="34300" user="brooks" version="1"
META FILEATTACHMENT attachment="pi.png" attr="" comment="Parameter scans" date="1449569586" name="pi.png" path="pi.png" size="33836" user="brooks" version="1"
META FILEATTACHMENT attachment="e.png" attr="" comment="Parameter scans" date="1449590064" name="e.png" path="e.png" size="23260" user="brooks" version="3"
>
>
META FILEATTACHMENT attachment="mu.png" attr="" comment="Parameter scans" date="1449597723" name="mu.png" path="mu.png" size="33630" user="brooks" version="2"
META FILEATTACHMENT attachment="pi.png" attr="" comment="Parameter scans" date="1449597738" name="pi.png" path="pi.png" size="31263" user="brooks" version="2"
META FILEATTACHMENT attachment="e.png" attr="" comment="Parameter scans" date="1449597692" name="e.png" path="e.png" size="29734" user="brooks" version="4"
 
META FILEATTACHMENT attachment="proton.png" attr="" comment="Parameter scans" date="1449589574" name="proton.png" path="proton.png" size="34364" user="brooks" version="1"
Added:
>
>
META FILEATTACHMENT attachment="kaon.png" attr="" comment="Parameter scans" date="1449597568" name="kaon.png" path="kaon.png" size="33562" user="brooks" version="1"
META FILEATTACHMENT attachment="5000MeV_2.0bar.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1449599685" name="5000MeV_2.0bar.png" path="5000MeV_2.0bar.png" size="18882" user="brooks" version="1"

Revision 82015-12-08 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 61 to 61
 Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
    2bar_-5GeV.png
Changed:
<
<
  • Parameter scans of photon multiplicity with positive electrons, muons and pions:
>
>
  • Parameter scans of photon multiplicity with positive electrons, protons, muons and pions:
  e.png
Added:
>
>
proton.png
  mu.png pi.png
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
Line: 82 to 83
 
META FILEATTACHMENT attachment="2bar_-5GeV.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1448986640" name="2bar_-5GeV.png" path="2bar_-5GeV.png" size="11900" user="brooks" version="2"
META FILEATTACHMENT attachment="mu.png" attr="" comment="Parameter scans" date="1449569586" name="mu.png" path="mu.png" size="34300" user="brooks" version="1"
META FILEATTACHMENT attachment="pi.png" attr="" comment="Parameter scans" date="1449569586" name="pi.png" path="pi.png" size="33836" user="brooks" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="e.png" attr="" comment="Parameter scans" date="1449583222" name="e.png" path="e.png" size="30102" user="brooks" version="2"
>
>
META FILEATTACHMENT attachment="e.png" attr="" comment="Parameter scans" date="1449590064" name="e.png" path="e.png" size="23260" user="brooks" version="3"
META FILEATTACHMENT attachment="proton.png" attr="" comment="Parameter scans" date="1449589574" name="proton.png" path="proton.png" size="34364" user="brooks" version="1"

Revision 72015-12-08 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 61 to 61
 Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
    2bar_-5GeV.png
Changed:
<
<
  • Parameter scans of photon multiplicity with positive muons and pions:
>
>
  • Parameter scans of photon multiplicity with positive electrons, muons and pions:
    e.png
  mu.png pi.png
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
Line: 81 to 82
 
META FILEATTACHMENT attachment="2bar_-5GeV.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1448986640" name="2bar_-5GeV.png" path="2bar_-5GeV.png" size="11900" user="brooks" version="2"
META FILEATTACHMENT attachment="mu.png" attr="" comment="Parameter scans" date="1449569586" name="mu.png" path="mu.png" size="34300" user="brooks" version="1"
META FILEATTACHMENT attachment="pi.png" attr="" comment="Parameter scans" date="1449569586" name="pi.png" path="pi.png" size="33836" user="brooks" version="1"
Added:
>
>
META FILEATTACHMENT attachment="e.png" attr="" comment="Parameter scans" date="1449583222" name="e.png" path="e.png" size="30102" user="brooks" version="2"

Revision 62015-12-08 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 61 to 61
 Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
    2bar_-5GeV.png
Changed:
<
<
  • Parameter scans of photon multiplicity with positive muons and pions
>
>
  • Parameter scans of photon multiplicity with positive muons and pions:
  mu.png pi.png
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:

Revision 52015-12-08 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 61 to 61
 Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
    2bar_-5GeV.png
Added:
>
>
  • Parameter scans of photon multiplicity with positive muons and pions mu.png pi.png
 
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
    2bar_1GeV.png 2bar_3GeV.png
Line: 76 to 79
 
META FILEATTACHMENT attachment="2bar_5GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961202" name="2bar_5GeV.png" path="2bar_5GeV.png" size="12062" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_7GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961220" name="2bar_7GeV.png" path="2bar_7GeV.png" size="11937" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_-5GeV.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1448986640" name="2bar_-5GeV.png" path="2bar_-5GeV.png" size="11900" user="brooks" version="2"
Added:
>
>
META FILEATTACHMENT attachment="mu.png" attr="" comment="Parameter scans" date="1449569586" name="mu.png" path="mu.png" size="34300" user="brooks" version="1"
META FILEATTACHMENT attachment="pi.png" attr="" comment="Parameter scans" date="1449569586" name="pi.png" path="pi.png" size="33836" user="brooks" version="1"

Revision 42015-12-07 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 10 to 10
 git clone ssh://git@gitlab.cern.ch:7999/BL4S/BL4S_MC.git
Added:
>
>

Documentation

Geant4 website
http://geant4.web.cern.ch/geant4/index.shtml
Developer guide
https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/
Source reference (LXR)
http://www-geant4.kek.jp/LXR/
Doxygen
http://www-geant4.kek.jp/Reference/
Geant4 twiki
https://twiki.cern.ch/twiki/bin/view/Geant4/WebHome
 

Instructions

Set up

The simulations need cmake, Geant4 and Root. The iniGeant4.sh script sets up Geant4 and Root from AFS and runs cmake and make. The outputs go into ./build/. To rebuild the code, make can be run in the build directory or in a simulation subdirectory of build. If adding or removing source files, you may need to rerun cmake from the build directory, like so:

Revision 32015-12-01 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 10 to 10
 git clone ssh://git@gitlab.cern.ch:7999/BL4S/BL4S_MC.git
Added:
>
>

Instructions

 

Set up

Changed:
<
<
The simulations need cmake, Geant4 and Root. The iniGeant4.sh script sets up Geant4 and Root from AFS and runs a make. The outputs go into ./build/
>
>
The simulations need cmake, Geant4 and Root. The iniGeant4.sh script sets up Geant4 and Root from AFS and runs cmake and make. The outputs go into ./build/. To rebuild the code, make can be run in the build directory or in a simulation subdirectory of build. If adding or removing source files, you may need to rerun cmake from the build directory, like so:
cd build
cmake ..

Execution

The executables in the build directories can be run in interactive mode. E.g:
cd build/lead_glass
./lead_glass
The number of threads can be specified with "-t " where is the number, e.g. on a quad core PC; "-t 4"

An example macro file is provided for batch runs:

cd build/lead_glass
./lead_glass -m e-_3GeV.mac
hadd e-_3GeV.root lead_glass*.root
Note that there will be n threads plus one files matching lead_glass*.root. The format of species + charge + '_' + energy + '.root' is understood by the plotting macros.

Plotting

In each build directory is a plots.C macro with some histogramming options for various variables of interest. They can be executed with Root like so:
cd build/lead_glass
root 'plots.C("+", "3GeV", "interaction_depth")'
Note that the macro will try to open Root files with the format specified above, using the charge and energy specified. It will try to plot electrons, muons, pions, protons and neutrons, if Root files are available.
 

Simulations

LeadGlassCalorimeter

Line: 23 to 52
 

CherenkovCounter

Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
Added:
>
>
  • Photon multiplicity of negative 5GeV particles in Nitrogen at 2bar:
    2bar_-5GeV.png
 
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
    2bar_1GeV.png 2bar_3GeV.png
Line: 37 to 68
 
META FILEATTACHMENT attachment="2bar_3GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961185" name="2bar_3GeV.png" path="2bar_3GeV.png" size="11949" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_5GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961202" name="2bar_5GeV.png" path="2bar_5GeV.png" size="12062" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_7GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961220" name="2bar_7GeV.png" path="2bar_7GeV.png" size="11937" user="brooks" version="2"
Added:
>
>
META FILEATTACHMENT attachment="2bar_-5GeV.png" attr="" comment="Cherenkov photon multiplicity at 2bar" date="1448986640" name="2bar_-5GeV.png" path="2bar_-5GeV.png" size="11900" user="brooks" version="2"

Revision 22015-11-19 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Resources

Line: 21 to 21
  500MeV_pi_interaction.png The Bragg peak is visible for 50MeV Pions. In the second image, 500MeV Pions are shown interacting inside the block in blue, and not interacting in the block in red. A narrow peak is found for non-interacting Pions. Note the end point of the energy distribution is $p_{beam} c + m_{\pi^\pm} c^2$.
Added:
>
>

CherenkovCounter

Using some code from the NA62 Cedar detector simulation, but simplified for BCC type detectors.
  • Total energy loss of positive 1, 3, 5 and 7GeV particles in Nitrogen at 2bar:
    2bar_1GeV.png 2bar_3GeV.png 2bar_5GeV.png 2bar_7GeV.png
 -- TimBrooks - 2015-11-18

META FILEATTACHMENT attachment="50MeV_pi_bragg.png" attr="" comment="Pion interaction depths" date="1447878680" name="50MeV_pi_bragg.png" path="50MeV_pi_bragg.png" size="9068" user="brooks" version="1"
META FILEATTACHMENT attachment="500MeV_pi_interaction.png" attr="" comment="Pion interaction depths" date="1447878680" name="500MeV_pi_interaction.png" path="500MeV_pi_interaction.png" size="13172" user="brooks" version="1"
Added:
>
>
META FILEATTACHMENT attachment="2bar_1GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447960944" name="2bar_1GeV.png" path="2bar_1GeV.png" size="12031" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_3GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961185" name="2bar_3GeV.png" path="2bar_3GeV.png" size="11949" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_5GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961202" name="2bar_5GeV.png" path="2bar_5GeV.png" size="12062" user="brooks" version="2"
META FILEATTACHMENT attachment="2bar_7GeV.png" attr="" comment="Cherenkov energy losses at 2bar" date="1447961220" name="2bar_7GeV.png" path="2bar_7GeV.png" size="11937" user="brooks" version="2"

Revision 12015-11-18 - TimBrooks

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Resources

Git repo

The source code repository in CERN Gitlab is here: http://gitlab.cern.ch/BL4S/BL4S_MC

After setting up Gitlab, the code can be cloned like so:

git clone ssh://git@gitlab.cern.ch:7999/BL4S/BL4S_MC.git

Set up

The simulations need cmake, Geant4 and Root. The iniGeant4.sh script sets up Geant4 and Root from AFS and runs a make. The outputs go into ./build/

Simulations

LeadGlassCalorimeter

Based on the NA62 MC source code, since they use the same OPAL blocks.
  • Pion interaction depths:
    50MeV_pi_bragg.png 500MeV_pi_interaction.png
The Bragg peak is visible for 50MeV Pions. In the second image, 500MeV Pions are shown interacting inside the block in blue, and not interacting in the block in red. A narrow peak is found for non-interacting Pions. Note the end point of the energy distribution is $p_{beam} c + m_{\pi^\pm} c^2$.

-- TimBrooks - 2015-11-18

META FILEATTACHMENT attachment="50MeV_pi_bragg.png" attr="" comment="Pion interaction depths" date="1447878680" name="50MeV_pi_bragg.png" path="50MeV_pi_bragg.png" size="9068" user="brooks" version="1"
META FILEATTACHMENT attachment="500MeV_pi_interaction.png" attr="" comment="Pion interaction depths" date="1447878680" name="500MeV_pi_interaction.png" path="500MeV_pi_interaction.png" size="13172" user="brooks" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback