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)
83 JLimit_t& numberOfEvents = inputFile.getLimit();
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);
103 cout <<
"event " << setw(10) << inputFile.
getCounter() << endl;
105 const Evt* evt = inputFile.
next();
111 print(cout,
"", trk);
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
ROOT TTree parameter settings of various packages.
Utility class to parse command line options.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Trk > trks
list of reconstructed tracks (can be several because of prefits,showers, etc).
Auxiliary data structure for floating point format specification.
Auxiliary class for defining the range of iterations of objects.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int status
MC status code, see km3net-dataformat/definitions/trkmembers.csv for values.
std::vector< int > rec_stages
list of identifyers of succesfull fitting stages resulting in this track
double t
track time [ns] (when the particle is at pos )
int mother_id
MC id of the parent particle.
Vec pos
postion [m] of the track at time t