Jpp
pmt_effective_area_update
the software that should make you happy
|
The Evt class respresent a Monte Carlo (MC) event as well as an offline event. More...
#include <Evt.hh>
Public Member Functions | |
Evt () | |
void | print (std::ostream &out=std::cout) const |
Print event. More... | |
void | clear () |
Reset event. More... | |
void | clear_hits () |
Clear the hit vectors and all the references to hits in the tracks. More... | |
std::vector< const Trk * > | primary_trks () const |
Return a vector with const pointers to the tracks that are 'primary'. More... | |
std::vector< Trk * > | primary_trks () |
Return a vector of pointers to tracks that are 'primary'. More... | |
const Trk * | neutrino () const |
Get a const pointer to the (first) neutrino from the MC track list. More... | |
Trk * | neutrino () |
Get a pointer to the (first) neutrino from the MC track list. More... | |
const Trk * | primary_neutrino () const |
Get a const pointer to primary neutrino from the MC track list. More... | |
Trk * | primary_neutrino () |
Get a pointer to primary neutrino from the MC track list. More... | |
const Trk * | leading_lepton () const |
Get a const pointer to the first leading lepton from the MC track list. More... | |
Trk * | leading_lepton () |
Get a pointer to leading lepton from the MC track list. More... | |
const Trk * | get_parent_of (const Trk &child) const |
Get a const pointer to the (first) parent of the track 'child'. More... | |
Trk * | get_parent_of (const Trk &child) |
Get a pointer ot the (first) parent of the track 'child'. More... | |
int | idx (const std::string &key) const |
Get index in user data of the item with given key. More... | |
bool | haveusr (const std::string &key) const |
Check availability of user data of the item with given key. More... | |
int | idxusr_checked (const std::string &key) const |
Get index in user data of the item with given key. More... | |
double | getusr (const std::string &key) const |
Get user data item with given key. More... | |
void | setusr (const std::string &key, double value) |
Set user data item with given key. More... | |
bool | delusr (const std::string &key) |
Remove (first) user data item with given key. More... | |
void | clearusr () |
Clear user data. More... | |
void | printusr (std::ostream &out=std::cout) |
Print user data (i.e. More... | |
Public Attributes | |
int | id |
offline event identifier More... | |
int | det_id |
detector identifier from DAQ More... | |
int | mc_id |
identifier of the MC event (as found in ascii or antcc file). More... | |
int | run_id |
DAQ run identifier. More... | |
int | mc_run_id |
MC run identifier. More... | |
int | frame_index |
from the raw data More... | |
ULong64_t | trigger_mask |
trigger mask from raw data (i.e. the trigger bits) More... | |
ULong64_t | trigger_counter |
trigger counter More... | |
unsigned int | overlays |
number of overlaying triggered events More... | |
TTimeStamp | t |
UTC time of the timeslice, or the event_time for MC. (default: 01 Jan 1970 00:00:00) More... | |
std::vector< Hit > | hits |
list of hits More... | |
std::vector< Trk > | trks |
list of reconstructed tracks (can be several because of prefits,showers, etc). More... | |
std::vector< double > | w |
MC: Weights w[0]=w1, w[1]=w2, w[2]]=w3 (see e.g. Tag list) More... | |
std::vector< double > | w2list |
MC: factors that make up w[1]=w2 (see e.g. Tag list) More... | |
std::vector< double > | w3list |
MC: atmospheric flux information. More... | |
TTimeStamp | mc_event_time |
MC: true generation time (UTC) of the event, (default: 01 Jan 1970 00:00:00) More... | |
double | mc_t |
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_duration) More... | |
std::vector< Hit > | mc_hits |
MC: list of MC truth hits. More... | |
std::vector< Trk > | mc_trks |
MC: list of MC truth tracks. More... | |
TString | comment |
user can use this as he/she likes More... | |
int | index |
user can use this as he/she likes More... | |
int | flags |
user can use this as he/she likes More... | |
std::vector< double > | usr |
user data More... | |
std::vector< std::string > | usr_names |
user keys More... | |
TObject * | any |
Pointer to "any" user data. More... | |
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Some data from the online (DAQ) event are copied.
|
inline |
Definition at line 55 of file Evt.hh.
|
inline |
|
inline |
|
inline |
Clear the hit vectors and all the references to hits in the tracks.
|
inline |
Return a vector with const pointers to the tracks that are 'primary'.
Here, primary means the tracks have no parents.
This method only works if MC parent-child relations are availabe.
Definition at line 107 of file Evt.hh.
|
inline |
Return a vector of pointers to tracks that are 'primary'.
Here, primary means the tracks have no parents.
Definition at line 124 of file Evt.hh.
|
inline |
|
inline |
Get a pointer to the (first) neutrino from the MC track list.
Definition at line 155 of file Evt.hh.
|
inline |
Get a const pointer to primary neutrino from the MC track list.
Only works if MC parent-child relations are availabe.
Definition at line 169 of file Evt.hh.
|
inline |
Get a pointer to primary neutrino from the MC track list.
Only works if MC parent-child relations are availabe.
Definition at line 185 of file Evt.hh.
|
inline |
Get a const pointer to the first leading lepton from the MC track list.
Here, leading means the lepton that has a neutrino as mother.
Only works if MC parent-child relations are availabe.
Definition at line 199 of file Evt.hh.
|
inline |
Get a pointer to leading lepton from the MC track list.
Here, leading means the lepton that has a neutrino as mother.
Only works if MC parent-child relations are availabe.
Definition at line 221 of file Evt.hh.
Get a const pointer to the (first) parent of the track 'child'.
This method return nullptr if no parent is found.
child | child particle |
Definition at line 233 of file Evt.hh.
Get a pointer ot the (first) parent of the track 'child'.
This method return nullptr if no parent is found.
child | child particle |
Definition at line 251 of file Evt.hh.
|
inlineinherited |
Get index in user data of the item with given key.
key | key |
Definition at line 29 of file AAObject.hh.
|
inlineinherited |
Check availability of user data of the item with given key.
key | key |
Definition at line 42 of file AAObject.hh.
|
inlineinherited |
Get index in user data of the item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 54 of file AAObject.hh.
|
inlineinherited |
Get user data item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 72 of file AAObject.hh.
|
inlineinherited |
Set user data item with given key.
key | key |
value | value |
Definition at line 95 of file AAObject.hh.
|
inlineinherited |
Remove (first) user data item with given key.
key | key |
Definition at line 126 of file AAObject.hh.
|
inlineinherited |
|
inlineinherited |
Print user data (i.e.
list of all pairs of keys and values).
out | output stream |
Definition at line 150 of file AAObject.hh.
int Evt::mc_id |
ULong64_t Evt::trigger_mask |
unsigned int Evt::overlays |
TTimeStamp Evt::t |
std::vector<Hit> Evt::hits |
std::vector<Trk> Evt::trks |
std::vector<double> Evt::w |
std::vector<double> Evt::w2list |
std::vector<double> Evt::w3list |
TTimeStamp Evt::mc_event_time |
double Evt::mc_t |
std::vector<Hit> Evt::mc_hits |
std::vector<Trk> Evt::mc_trks |
|
inherited |
user data
Definition at line 20 of file AAObject.hh.
|
inherited |
user keys
Definition at line 21 of file AAObject.hh.
|
inherited |
Pointer to "any" user data.
Definition at line 171 of file AAObject.hh.