1 #ifndef EVT_HH_INCLUDED 
    2 #define EVT_HH_INCLUDED 
   10 #include "TTimeStamp.h" 
   65   void print(std::ostream& out = std::cout)
 const 
   67     out << 
"Evt: id=" << 
id << 
 
   69       " #hits=" << 
hits.size() <<
 
   70       " #mc_hits=" << 
mc_hits.size() <<
 
   71       " #trks=" << 
trks.size() <<
 
   72       " #mc_trks=" << 
mc_trks.size() << std::endl;
 
   83     return this->
t.GetSec()*1e9 + this->
t.GetNanoSec(); 
 
  101     for (
auto& 
t: 
trks )    
t.hit_ids.clear();
 
  102     for (
auto& 
t: 
mc_trks ) 
t.hit_ids.clear(); 
 
  133     if ( req_id < 
int(col.size()) ) 
 
  135         if ( col[req_id].
id == req_id ) 
return &(col[
id]);
 
  140         if ( h.id == req_id ) 
return &(col[
id]);
 
  160         if ( 
t.is_primary() ) r.push_back(&
t);
 
  174         if ( 
t.is_neutrino() ) 
return &
t;
 
  190         if ( 
t.is_neutrino() and 
t.is_primary() ) 
return &
t;
 
  209         if ( 
t.is_lepton()        &&
 
  210              t.mother_id == nu_id &&
 
  211              !
t.is_orphan() ) 
return &
t;
 
double getMCtime(const Hit &h)
Get the original Monte-Carlo-time of the hit. 
 
void clear_hits()
Clear the hit vectors and all the references to hits in the tracks. 
 
Trk * get_parent_of(Trk &child)
Get the (first) parent of the track 'child'. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
ULong64_t trigger_counter
trigger counter 
 
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]]=w3 (see e.g. Tag list) 
 
double get_ns()
Get UTC time. 
 
int mother_id
MC id of the parent particle. 
 
Trk * primary_neutrino()
Get a pointer to primary neutrino from the MC track list. 
 
int frame_index
from the raw data 
 
unsigned int overlays
number of overlaying triggered events 
 
Trk * leading_lepton()
Get a pointer to leading lepton from the MC track list. 
 
int mc_run_id
MC run identifier. 
 
TString comment
user can use this as he/she likes 
 
Trk * neutrino()
Get a pointer to the (first) neutrino from the MC track list. 
 
int mc_id
identifier of the MC event (as found in ascii or antcc file). 
 
int run_id
DAQ run identifier. 
 
std::vector< Trk * > primary_trks()
Get all the tracks that are 'primary'. 
 
double mc_t
MC: time of the mc event. 
 
int det_id
detector identifier from DAQ 
 
#define ClassDef(name, version)
 
AAObject is a base class for I/O-classes that adds the possibility to add 'user' information which wi...
 
TTimeStamp t
UTC time of the start of the timeslice the event came from. 
 
void print(std::ostream &out=std::cout) const 
Print event. 
 
std::vector< Trk > trks
list of reconstructed tracks (can be several because of prefits,showers, etc). 
 
std::vector< Hit > mc_hits
MC: list of MC truth hits. 
 
double t
hit time (from calibration or MC truth) 
 
int flags
user can use this as he/she likes 
 
Hit * get_hit_by_id(int req_id, bool use_mc_hits=false)
Get pointer to hit with given identifier. 
 
int index
user can use this as he/she likes 
 
int id
offline event identifier 
 
std::vector< Hit > hits
list of hits 
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. 
 
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list) 
 
std::vector< Trk > mc_trks
MC: list of MC truth tracks. 
 
ULong64_t trigger_mask
trigger mask from raw data (i.e. the trigger bits) 
 
std::vector< double > w3list
MC: atmospheric flux information. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.