28 int main(
int argc,
char **argv)
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);
67 if (genhen && buffer.
is_valid(&JHead::genvol)) {
71 }
else if (mupage && buffer.
is_valid(&JHead::livetime)) {
77 FATAL(
"Invalid generator." << endl);
88 while (inputFile.hasNext()) {
90 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
92 Evt*
event = inputFile.next();
100 track->pos += center;
111 pos += track->pos * track->E;
115 pos = (pos - center) * (
scale - 1.0);
bool is_mupage(const JHead &header)
Check for generator.
Utility class to parse command line options.
livetime & mul(const double factor)
Scale.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
genvol & mul(const double factor, const double z=0.0)
Scale.
Recording of objects on file according a format that follows from the file name extension.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
Auxiliary class for defining the range of iterations of objects.
The Vec class is a straightforward 3-d vector, which also works in pyroot.
JAANET::livetime livetime
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Scanning of objects from multiple files according a format that follows from the extension of each fi...
bool is_genhen(const JHead &header)
Check for generator.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
const JLimit & getLimit() const
Get limit.
bool is_valid(T JHead::*pd) const
Check validity of given data member in JHead.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.
void scale(vector< double > &v, double c)
scale vector content