FairShip
Loading...
Searching...
No Matches
getInteractionAndRadiationLength.py
Go to the documentation of this file.
1# SPDX-License-Identifier: LGPL-3.0-or-later
2# SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP Collaboration
3
4from array import array
5
6import ROOT
7
8# get dimensions by running getGeoInformation on the geofile
9# python $FAIRSHIP/macro/getGeoInformation.py -g geofile_full.conical.Genie-TGeant4.root
10
11# python -i $FAIRSHIP/macro/run_simScript.py --Genie -f /eos/experiment/ship/data/GenieEvents/genie-nu_mu.root
12
13
15 start = array("d", [0, 0, 3666.5])
16 end = array("d", [0, 0, 3898.700])
17 mparam = array("d", [0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
18 ROOT.shipgen.MeanMaterialBudget(start, end, mparam)
19
20 print(mparam[8], " equivalent interaction length fraction")
21 print(mparam[1], " equivalent rad length fraction")