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
6# get dimensions by running getGeoInformation on the geofile
7# python $FAIRSHIP/macro/getGeoInformation.py -g geofile_full.conical.Genie-TGeant4.root
8
9# python -i $FAIRSHIP/macro/run_simScript.py --Genie -f /eos/experiment/ship/data/GenieEvents/genie-nu_mu.root
10
11
12def compute_material_budget(Geniegen) -> None:
13 start = array("d", [0, 0, 3666.5])
14 end = array("d", [0, 0, 3898.700])
15 mparam = array("d", [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
16 Geniegen.MeanMaterialBudget(start, end, mparam)
17
18 print(mparam[8], " equivalent interaction length fraction")
19 print(mparam[1], " equivalent rad length fraction")