Read event from a stream. 
  265   is >> evt.
mc_id >> mc_event_type;
 
  267   Trk trk_nu, trk_primary;
 
  268   bool have_trk_nu(
false), have_trk_primary(
false);
 
  285       is.ignore( 1000, 
'\n' );
 
  297       evt.
hits.push_back( h );
 
  312       istringstream ii(line);
 
  358           evt.
trks.push_back( t );
 
  381           ii >> t.
t >> trk_primary.
type; 
 
  384           have_trk_primary = 
true;
 
  396           out << 
"Unknown tag " << 
w << 
" for trk ";
 
  398           throw Exception(
static_cast<ostringstream&
>(out).str());
 
  404         out << 
"Error reading trk ";
 
  406         throw Exception(
static_cast<ostringstream&
>(out).str());
 
  438       if ( 
v.size() > 3 ) {
 
  446       unsigned nsec, n16ns_ticks;
 
  447       is >> nsec >> n16ns_ticks;
 
  472       if ( have_trk_primary && have_trk_nu ) {
 
  474         bool same = trk_nu.
pos == trk_primary.
pos &&
 
  475                     trk_nu.
dir == trk_primary.
dir &&
 
  476                     trk_nu.
E   == trk_primary.
E;
 
  486       } 
else if ( have_trk_primary  ) {
 
  491       } 
else if ( have_trk_nu ) {
 
  500       is.ignore( 1000, 
'\n' );
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
static std::ostream & getOstream()
Get output stream for conversion of exception.
 
std::vector< double > read_line_to_vector(std::istream &is)
Read data.
 
void push_front(std::vector< T > &vec, const T &value)
Put value in front of data.
 
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
const char *const w3list_t
 
const char *const neutrino_t
 
const char *const weights_t
 
const char *const center_on_can_t
 
const char *const eventtime_t
 
const char *const track_in_t
 
const char *const track_t
 
const char *const muon_decay_t
 
const char *const start_event_t
 
const char *const hourangle_t
 
const char *const track_bundle_t
 
const char *const end_event_t
 
const char *const w2list_t
 
const char *const track_primary_t
 
const char *const center_on_can_y
 
const char *const muon_decay_y
 
const char *const energy_lost_in_can
 
const char *const center_on_can_x
 
const char *const muon_decay_z
 
const char *const muon_decay_x
 
const char *const hourangle
 
const char *const center_on_can_z
 
void clearusr()
Clear user data.
 
void setusr(const std::string &key, double value)
Set user data item with given key.
 
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.
 
int id
offline event identifier
 
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).
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
 
void print(std::ostream &out=std::cout) const
Print track.
 
int status
MC status code, see km3net-dataformat/definitions/trkmembers.csv for values.
 
int type
MC: particle type in PDG encoding.
 
std::string comment
use as you like
 
double E
Energy [GeV] (either MC truth or reconstructed)
 
double t
track time [ns] (when the particle is at pos )
 
double len
length, if applicable [m]
 
Vec pos
postion [m] of the track at time t
 
static const int PDG_MUONBUNDLE
muon bundle reached the can level (mupage)
 
static const int TRK_ST_FINALSTATE
for MC: the particle must be processed by detector simulation ('track_in' tag in evt files)....
 
static const int TRK_ST_MUONBUNDLE
initial state muon bundle (mupage)
 
static const int TRK_ST_PRIMARYCOSMIC
initial state cosmic ray ('track_primary' tag in evt files from corant).
 
static const int TRK_ST_PRIMARYNEUTRINO
initial state neutrino ('neutrino' tag in evt files from gseagen and genhen).
 
static const int W2LIST_GSEAGEN_BX
Bjorken x.
 
static const int W2LIST_GSEAGEN_CC
Charged current interaction flag.
 
static const int W2LIST_GSEAGEN_ICHAN
Interaction channel.
 
static const int W2LIST_GSEAGEN_BY
Bjorken y.