Go to the documentation of this file.
28 int main(
int argc,
char **argv)
33 JLimit_t& numberOfEvents = inputFile.getLimit();
40 JParser<> zap(
"Example program to resize coordinate system of Monte Carlo events.");
44 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
50 catch(
const exception &error) {
51 FATAL(error.what() << endl);
63 center = get<Vec>(buffer);
77 FATAL(
"Invalid generator." << endl);
100 track->pos += center;
111 pos += track->pos * track->E;
115 pos = (pos - center) * (
scale - 1.0);
Auxiliary class for defining the range of iterations of objects.
genvol & mul(const double factor, const double z=0.0)
Scale.
JAANET::livetime livetime
bool is_valid(const T &value)
Check validity of given value.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Utility class to parse command line options.
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.
counter_type getCounter() const
Get counter.
bool is_genhen(const JHead &header)
Check for generator.
virtual const pointer_type & next()
Get next element.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
int main(int argc, char **argv)
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.
The Vec class is a straightforward 3-d vector, which also works in pyroot.
void scale(vector< double > &v, double c)
scale vector content
livetime & mul(const double factor)
Scale.