22 int main(
int argc, 
char **argv)
 
   33     JParser<> zap(
"Auxiliary program histogram plot EM-equivalent energy for hadrons."\
 
   34                   "\nNote that the results have a small offset to effectively be visualised.");
 
   42   catch(
const exception &error) {
 
   43     FATAL(error.what() << endl);
 
   49   const int buffer[] = {
 
   61   for (
const int *type = buffer; *type != -1; ++type) {
 
   62     Y[*type] = 
epsilon * (type - buffer);
 
   65   for (
int i = 1; i <= zmap->GetNbinsX(); ++i) {
 
   67     const double x = zmap->GetBinCenter(i);
 
   68     const double E = 
pow(10.0, 
x);
 
   70     for (
const int *type = buffer; *type != -1; ++type) {
 
   71       zmap[*type]->SetBinContent(i, 
pythia(*type, E)/E + Y[*type]);
 
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
 
int main(int argc, char **argv)
 
Utility class to parse command line options.
 
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.
 
@ TRACK_TYPE_CHARGED_PION_MINUS
 
@ TRACK_TYPE_CHARGED_PION_PLUS
 
@ TRACK_TYPE_NEUTRAL_PION
 
@ TRACK_TYPE_ANTIELECTRON
 
T pow(const T &x, const double y)
Power .
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
static const JPythia pythia
Function object for relative light yield as a function of GEANT particle code.