20 int main(
int argc,
char **argv)
37 catch(
const exception &error) {
38 FATAL(error.what() << endl);
42 const JRadiation radiation(4.0, 8.0, 40, 0.01, 0.1, 0.1);
48 for (
const double E : { 1.0e2, 1.0e3 }) {
54 for (
int i = 1; i <= ha->GetNbinsX(); ++i) {
56 const double x = ha->GetBinCenter(i);
57 const double v =
pow(10.0,
x);
60 ha->SetBinContent(i,
y);
63 for (
int i = 1; i <= hb->GetNbinsX(); ++i) {
65 const double x = hb->GetBinCenter(i);
66 const double v = 1.0 -
pow(10.0,
x);
69 hb->SetBinContent(i,
y);
72 for (
int i = 1; i <= hc->GetNbinsX(); ++i) {
74 const double x = hc->GetBinCenter(i);
75 const double v =
pow(10.0,
x);
78 hc->SetBinContent(i,
y);
84 out << HA << HB << HC;
int main(int argc, char **argv)
Example application to display theta RMS of muon energy loss.
Dynamic ROOT object management.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Muon radiative cross sections.
Utility class to parse command line options.
Auxiliary class for the calculation of the muon radiative cross sections.
double ThetaRMSfromEErad(const double E, const double v) const
Get RMS of scattering angle for pair production.
double ThetaRMSfromBrems(const double E, const double v) const
Get RMS of scattering angle for Bremsstrahlung.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
T pow(const T &x, const double y)
Power .
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).