33 inline double zeroFlux(
const Evt& evt)
55 int main(
int argc,
char **argv)
69 fluxMaps.put(
"zero", zeroFluxes);
81 catch(
const exception& error) {
82 FATAL(error.what() << endl);
90 if (scanners.
setFlux(fluxMaps) == 0) {
91 WARNING(
"No file found containing all given primaries; Flux function not set." << endl);
99 if (scanner->simul.size() > 0) {
100 STATUS(
"Scanning " << scanner->simul[0].program <<
" files..." << endl);
105 while (scanner->hasNext()) {
107 const Evt*
event = scanner->next();
108 const double weight = scanner->getWeight(*event);
Utility class to parse command line options.
int main(int argc, char *argv[])
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Utility class to parse parameter values.
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class for parsing multiparticle fluxes.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Auxiliary base class for list of file names.
std::vector< filescanner_type >::iterator iterator
Utility class to parse command line options.
size_t setFlux(const int type, const JFlux &flux)
Set flux function for all MC-files corresponding to a given PDG code.
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
Auxiliaries for defining the range of iterations of objects.
Auxiliary data structure for floating point format specification.
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.