Go to the source code of this file.
|
int | main (int argc, char **argv) |
| Auxiliary program to print fit results;. More...
|
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Auxiliary program to print fit results;.
Definition at line 83 of file JPrintFit.cc.
90 typedef JParallelFileScanner_t::multi_pointer_type multi_pointer_type;
92 JParallelFileScanner_t inputFile;
100 JParser<> zap(
"Auxiliary program to print fit results.");
103 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
110 catch(
const exception& error) {
111 FATAL(error.what() << endl);
116 const int WIDTH = 16;
123 center = get<JPosition3D>(
getHeader(inputFile));
124 }
catch(
const exception& error) {}
127 while (inputFile.hasNext()) {
129 cout <<
"event: " << setw(10) << inputFile.getCounter() << endl;
131 multi_pointer_type ps = inputFile.next();
143 if (mc.getEntries() != 0) {
157 cout <<
LEFT(
WIDTH) <<
"neutrino" <<
' ' << ta << endl;
162 if (track != event->mc_trks.end()) {
168 cout <<
LEFT(
WIDTH) <<
"muon" <<
' ' << ta << endl;
173 cout <<
"number of fits " << setw(4) << right << evt->size() << endl;
175 for (
size_t i = 0; i != min(evt->size(), numberOfFits); ++i) {
177 const JFit& fit = (*evt)[i];
183 cout <<
LEFT(
WIDTH) <<
"fit" <<
' ' << tb <<
' ' << fit.
getQ() <<
' ' << fit.
getE() << endl;
Auxiliary class for defining the range of iterations of objects.
JTriggerCounter_t getCounter() const
Get trigger counter.
Empty structure for specification of parser element that is initialised (i.e.
double putTime() const
Get Monte Carlo minus DAQ/trigger hit time.
double getE() const
Get energy.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Auxiliary class to convert DAQ/trigger hit time to/from Monte Carlo hit time.
JTrack3E getTrack(const Trk &track)
Get track.
Utility class to parse command line options.
Data structure for set of track fit results.
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double getQ() const
Get quality.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
General purpose sorter of fit results.
Auxiliary data structure for alignment of data.
Data structure for position in three dimensions.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
const JLimit & getLimit() const
Get limit.
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for parallel reading of objects from a single file or multiple files.
KM3NeT DAQ data structures and auxiliaries.
Data structure for track fit results.
const JHistory & getHistory() const
Get history.
Reconstruction type dependent comparison of track quality.