23int main(
int argc,
char* argv[])
35 JParser<> zap(
"Example program to histogram longitudinal shower profile.");
44 catch(
const exception &error) {
51 TH1D h1(
"Probability",
NULL, 1000, 0.0, 25.0);
52 TH1D h2(
"Integral",
NULL, 1000, 0.0, 25.0);
55 for(
int i = 1; i <= h1.GetNbinsX(); ++i) {
57 const double x = h1.GetBinCenter(i);
59 h1.SetBinContent(i, geanz.getProbability(E_GeV, x));
60 h2.SetBinContent(i, geanz.getIntegral (E_GeV, x));
63 if (numberOfEvents != 0) {
65 for (
int i = 0; i != numberOfEvents; ++i) {
67 const double x =
gRandom->Rndm();
69 h3.Fill(geanz.getLength(E_GeV, x));
72 convertToPDF(
h3,
"NW");
75 const Double_t x = geanz.getMaximum(E_GeV);
76 const Double_t y = geanz.getProbability(E_GeV, x);
80 g1.SetName(
"Maximum");
int main(int argc, char *argv[])
Longitudinal 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
Double_t g1(const Double_t x)
Function.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).