Write event to output.
111{
114
115 const ios_base::fmtflags flags = out.flags();
116
117 out << scientific << setprecision(5);
118
120
122
123 for (
const auto& trk : evt.
mc_trks) {
124
126 << setw( 3) << trk.id << ' '
127 << setw(10) << trk.type << ' '
128 << setw( 3) << trk.mother_id << ' '
129 <<
FIXED(12,3) << trk.pos.x <<
' '
130 <<
FIXED(12,3) << trk.pos.y <<
' '
131 <<
FIXED(12,3) << trk.pos.z <<
' '
132 <<
FIXED( 7,4) << trk.dir.x <<
' '
133 <<
FIXED( 7,4) << trk.dir.y <<
' '
134 <<
FIXED( 7,4) << trk.dir.z <<
' '
135 <<
FIXED( 7,1) << trk.len <<
' '
138 << setw( 4) << trk.status << ' '
141 << endl;
142 }
143
144 for (
const auto& trk : evt.
trks) {
145
147 << setw(3) << trk.id << ' '
148 <<
FIXED(12,3) << trk.pos.x <<
' '
149 <<
FIXED(12,3) << trk.pos.y <<
' '
150 <<
FIXED(12,3) << trk.pos.z <<
' '
151 <<
FIXED( 7,4) << trk.dir.x <<
' '
152 <<
FIXED( 7,4) << trk.dir.y <<
' '
153 <<
FIXED( 7,4) << trk.dir.z <<
' '
154 <<
FIXED( 7,1) << trk.len <<
' '
156 <<
FIXED(10,1) << trk.t <<
' '
157 << setw(3) << trk.status << endl;
158 }
159
162
166
170
172
173 } else {
174
175 write(evt, out << fixed);
176 }
177
178 out.flags(flags);
179
180 return out;
181}
bool getLongprint(std::ostream &out)
Get long print option.
bool is_finalstate(const Trk &track)
Test whether given track corresponds to a final state particle.
bool is_initialstate(const Trk &track)
Test whether given track corresponds to an initial state particle.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const char *const w3list_t
const char *const weights_t
const char *const eventtime_t
const char *const track_in_t
const char *const start_event_t
const char *const end_event_t
const char *const track_fit_t
const char *const w2list_t
const char *const hit_raw_t
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions)
int mc_id
identifier of the MC event (as found in ascii or antcc file).
std::vector< Hit > hits
list of hits
std::vector< Hit > mc_hits
MC: list of MC truth hits.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
TTimeStamp mc_event_time
MC: true generation time (UTC) of the event, (default: 01 Jan 1970 00:00:00)
std::vector< double > w3list
MC: atmospheric flux information.
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)
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 data structure for floating point format specification.