20 int main(
int argc,
char* argv[])
29 JParser<> zap(
"Example program to histogram photon emission profile from showers.");
36 catch(
const exception &error) {
37 FATAL(error.what() << endl);
45 TH1D h1(
"Probability", NULL, 1000, -1.0, +1.0);
46 TH1D h2(
"Integral", NULL, 1000, -1.0, +1.0);
48 for(
int i = 1; i <= h1.GetNbinsX(); ++i) {
50 const double x = h1.GetBinCenter(i);
52 h1.SetBinContent(i,
geanx(
x));
53 h2.SetBinContent(i,
geanx(-1.0,
x));
int main(int argc, char *argv[])
Photon emission profile EM-shower.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
static const JGeanx geanx(0.35, -5.40)
Function object for the number of photons from EM-shower as a function of emission angle.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).