Go to the documentation of this file.
   26 int main(
int argc, 
char **argv)
 
   31   JMultipleFileScanner<Evt> inputFile;
 
   40     JParser<> zap(
"Auxiliary program to convert data formats.");
 
   44     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   51   catch(
const exception& error) {
 
   52     FATAL(error.what() << endl);
 
   58   Vec  center(xshift,yshift,0);
 
   61         NOTICE(
"Offset applied to true tracks is: " << center << endl);
 
   76     buffer.
simul.push_back(shiftinfo);
 
   77     buffer.
push(&JHead::simul);  
 
   79     bool can_found      = buffer.
pull(&JHead::can)      != buffer.end();
 
   80     bool fixedcan_found = buffer.
pull(&JHead::fixedcan) != buffer.end();
 
   84         NOTICE(
"can found" << endl);
 
   87         NOTICE(
"fixedcan found" << endl);
 
   91     if (can_found and !(fixedcan_found)) {
 
   97       buffer.
erase(&JHead::can);
 
   98       buffer.
push(&JHead::fixedcan);
 
   99     } 
else if (fixedcan_found and !(can_found)) {
 
  102     } 
else if (!(can_found) and !(fixedcan_found)) {
 
  103       FATAL(
"Neither can nor fixedcan is found" << endl);
 
  105       FATAL(
"Both can and fixedcan are found" << endl);
 
  108     copy(buffer, header);
 
  110   catch(
const JException& error) {
 
  116   while (inputFile.hasNext()) {
 
  118     Evt* evt = inputFile.next();                              
 
  121       track->pos += center;
 
  
std::string version
program version
 
std::vector< JAANET::simul > simul
 
int main(int argc, char **argv)
 
JAANET::fixedcan fixedcan
 
double ycenter
y-center [m]
 
void erase(T JHead::*pd)
Remove given data member from Head.
 
std::string program
program name
 
JLimit JLimit_t
Type definition of limit.
 
double xcenter
x-center [m]
 
Utility class to parse command line options.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
 
const JLimit & getLimit() const
Get limit.
 
const_iterator pull(T JHead::*pd) const
Pull given data member from Head.
 
double getTime(const Hit &hit)
Get true time of hit.
 
const char * getGITVersion()
Get GIT version.
 
void push(T JHead::*pd)
Push given data member to Head.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
std::string date
processing date
 
const char * getDate()
Get ASCII formatted date.
 
std::string time
processing time
 
Generator for simulation.