Go to the documentation of this file. 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;
std::vector< Hit > hits
list of hits
double getMCtime(const Hit &h)
Get the original Monte-Carlo-time of the hit.
std::vector< Trk > mc_trks
MC: list of MC truth tracks
int mc_run_id
MC run identifier.
int run_id
DAQ run identifier.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
#define ClassDef(name, version)
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
double get_ns()
Get UTC time.
std::vector< Trk * > primary_trks()
Get all the tracks that are 'primary'.
Trk * get_parent_of(Trk &child)
Get the (first) parent of the track 'child'.
Trk * primary_neutrino()
Get a pointer to primary neutrino from the MC track list.
int mc_id
identifier of the MC event (as found in ascii or antcc file).
double t
hit time (from calibration or MC truth)
void clear_hits()
Clear the hit vectors and all the references to hits in the tracks.
Trk * leading_lepton()
Get a pointer to leading lepton from the MC track list.
int index
user can use this as he/she likes
Trk * neutrino()
Get a pointer to the (first) neutrino from the MC track list.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
int mother_id
MC id of the parent particle.
TTimeStamp t
UTC time of the start of the timeslice the event came from.
Hit * get_hit_by_id(int req_id, bool use_mc_hits=false)
Get pointer to hit with given identifier.
TString comment
user can use this as he/she likes
int flags
user can use this as he/she likes
int id
offline event identifier
int frame_index
from the raw data
unsigned int overlays
number of overlaying triggered events
ULong64_t trigger_mask
trigger mask from raw data (i.e. the trigger bits)
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).
AAObject is a base class for I/O-classes that adds the possibility to add 'user' information which wi...
std::vector< Hit > mc_hits
MC: list of MC truth hits.
double mc_t
MC: time of the mc event.
int det_id
detector identifier from DAQ
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]]=w3 (see e.g. Tag list)
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list)
std::vector< double > w3list
MC: atmospheric flux information.
ULong64_t trigger_counter
trigger counter