1 #ifndef EVT_HH_INCLUDED 
    2 #define EVT_HH_INCLUDED 
   10 #include "TTimeStamp.h" 
   66   void print(std::ostream& out = std::cout)
 const 
   68     out << 
"Evt: id=" << 
id <<
 
   70         " #hits=" << 
hits.size() <<
 
   71         " #mc_hits=" << 
mc_hits.size() <<
 
   72         " #trks=" << 
trks.size() <<
 
   73         " #mc_trks=" << 
mc_trks.size() << std::endl;
 
   92     for (
auto& 
t : 
trks )    
t.hit_ids.clear();
 
   93     for (
auto& 
t : 
mc_trks ) 
t.hit_ids.clear();
 
  112       if ( 
t.is_primary() ) r.push_back(&
t);
 
  129       if ( 
t.is_primary() ) r.push_back(&
t);
 
  144       if ( 
t.is_neutrino() ) 
return &
t;
 
  158     return const_cast<Trk *
>(
static_cast<const Evt &
>(*this).
neutrino() );
 
  173       if ( 
t.is_neutrino() and 
t.is_primary() ) 
return &
t;
 
  202     if (!nu) 
return nullptr;
 
  206       if ( 
t.is_lepton()    &&
 
  207       t.mother_id == nu->
id &&
 
  208       !
t.is_orphan() ) 
return &
t;
 
void clear_hits()
Clear the hit vectors and all the references to hits in the tracks. 
 
const Trk * get_parent_of(const Trk &child) const 
Get a const pointer to the (first) parent of the track 'child'. 
 
const Trk * neutrino() const 
Get a const pointer to the (first) neutrino from the MC track list. 
 
Trk * get_parent_of(const Trk &child)
Get a pointer ot the (first) parent of the track 'child'. 
 
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) 
 
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). 
 
TTimeStamp mc_event_time
MC: true generation time (UTC) of the event, (default: 01 Jan 1970 00:00:00) 
 
int run_id
DAQ run identifier. 
 
std::vector< Trk * > primary_trks()
Return a vector of pointers to tracks that are 'primary'. 
 
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
 
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 timeslice, or the event_time for MC. (default: 01 Jan 1970 00:00:00) ...
 
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. 
 
int flags
user can use this as he/she likes 
 
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. 
 
const Trk * leading_lepton() const 
Get a const pointer to the first leading lepton from the MC track list. 
 
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. 
 
std::vector< const Trk * > primary_trks() const 
Return a vector with const pointers to the tracks that are 'primary'. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event. 
 
const Trk * primary_neutrino() const 
Get a const pointer to primary neutrino from the MC track list.