27 inline void print(std::ostream& out,
const std::string& prefix,
const Trk& trk)
38 <<
FIXED(11,1) << trk.
t <<
' '
39 << setw(3) << trk.
status <<
':';
57 inline void print(std::ostream& out,
const std::string& prefix,
const Evt& evt,
const int id)
62 print(out, prefix, i);
77 int main(
int argc,
char **argv)
88 JParser<> zap(
"Example program to print track fit results from Evt formatted data.");
91 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
96 catch(
const exception& error) {
97 FATAL(error.what() << endl);
101 while (inputFile.hasNext()) {
103 cout <<
"event " << setw(10) << inputFile.getCounter() << endl;
105 const Evt* evt = inputFile.next();
111 print(cout,
"", trk);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
double t
track time [ns] (when the particle is at pos )
Auxiliary data structure for floating point format specification.
int mother_id
MC id of the parent particle.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
int status
MC status code, see km3net-dataformat/definitions/trkmembers.csv for values.
Vec pos
postion [m] of the track at time t
std::vector< Trk > trks
list of reconstructed tracks (can be several because of prefits,showers, etc).
std::vector< int > rec_stages
list of identifyers of succesfull fitting stages resulting in this track
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.