Go to the documentation of this file.
32 int main(
int argc,
char **argv)
39 JLimit_t& numberOfEvents = inputFile.getLimit();
48 JParser<> zap(
"Auxiliary program to manipulate MUPAGE data.");
52 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
53 zap[
'P'] =
make_field(P,
"Keep muons in event with given probability (<= 1, 1 == all)") = 1.0;
54 zap[
'u'] =
make_field(
u,
"Reject events as a function of multiplicity (>= 0, 0 == none)") = 0.0;
55 zap[
'E'] =
make_field(E,
"Energy scaling factor") = 1.0;
61 catch(
const exception &error) {
62 FATAL(error.what() << endl);
65 gRandom->SetSeed(seed);
91 if (gRandom->Rndm() < P)
94 i =
event->mc_trks.erase(i);
107 i =
event->mc_trks.erase(i);
112 if (gRandom->Rndm() < pow(event->mc_trks.size(),-
u)) {
Auxiliary class for defining the range of iterations of objects.
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
counter_type getCounter() const
Get counter.
virtual const pointer_type & next()
Get next element.
int main(int argc, char **argv)
Template specialisation of JMultipleFileScanner for Monte Carlo header.
virtual bool hasNext()
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
#define DEBUG(A)
Message macros.