CbmRoot
Loading...
Searching...
No Matches
LitCudaMaterialInfo.h
Go to the documentation of this file.
1/* Copyright (C) 2010-2011 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
5#ifndef LITCUDAMATERIALINFO_H_
6#define LITCUDAMATERIALINFO_H_
7
8#include <iostream>
9
11 float Thickness; // Thickness of the material [cm]
12 float X0; // Radiation length [cm]
13 float Rho; // Density [g/cm^3]
14 float Z; //
15 float A; //
16 float Zpos; // Z position of the material
17 float RadThick; // Length/X0
18 float SqrtRadThick; // std::sqrt(Length/X0)
19 float LogRadThick; // std::log(Length/X0)
20 // approximation of the mean excitation energy in GeV
21 // I = (Z > 16)? 10 * Z * 1e-9 : 16 * std::pow(Z, 0.9) * 1e-9;
22 float I;
23
24 friend std::ostream& operator<<(std::ostream& strm, const LitCudaMaterialInfo& mat)
25 {
26 strm << "LitCudaMaterialinfo: Thickness=" << mat.Thickness << ", X0=" << mat.X0 << ", Rho=" << mat.Rho
27 << ", Z=" << mat.Z << ", A=" << mat.A << ", Zpos=" << mat.Zpos << ", I=" << mat.I << std::endl;
28 return strm;
29 }
30};
31
32#endif /* LITCUDAMATERIALINFO_H_ */
friend std::ostream & operator<<(std::ostream &strm, const LitCudaMaterialInfo &mat)