Go to the documentation of this file.
   28 int main(
int argc, 
char **argv)
 
   32   JMultipleFileScanner<Evt>    inputFile;
 
   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);
 
   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);
 
  
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.
 
JLimit JLimit_t
Type definition of limit.
 
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.
 
bool is_genhen(const JHead &header)
Check for generator.
 
const JLimit & getLimit() const
Get limit.
 
int main(int argc, char **argv)
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
#define DEBUG(A)
Message macros.
 
void scale(vector< double > &v, double c)
scale vector content
 
livetime & mul(const double factor)
Scale.