29 int main(
int argc,
char **argv)
34 JLimit_t& numberOfEvents = inputFile.getLimit();
41 JParser<> zap(
"Example program to resize coordinate system of Monte Carlo events.");
45 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
68 if (genhen && buffer.
is_valid(&JHead::genvol)) {
72 }
else if (mupage && buffer.
is_valid(&JHead::livetime)) {
78 FATAL(
"Invalid generator." << endl);
112 pos += track->pos * track->E;
void scale(vector< double > &v, double c)
scale vector content
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
ROOT TTree parameter settings of various packages.
int main(int argc, char **argv)
JAANET::livetime livetime
bool is_valid(T JHead::*pd) const
Check validity of given data member in JHead.
Utility class to parse command line options.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
bool is_genhen(const JHead &header)
Check for generator.
Vec getOrigin(const JHead &header)
Get origin.
void copy(const Head &from, JHead &to)
Copy header from from to to.
bool is_mupage(const JHead &header)
Check for generator.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
genvol & mul(const double factor, const double z=0.0)
Scale.
livetime & mul(const double factor)
Scale.
Auxiliary class for defining the range of iterations of objects.
The Vec class is a straightforward 3-d vector, which also works in pyroot.