|
Jpp 19.3.0-rc.2
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 () | |
| Default constructor. | |
| void | print (std::ostream &out=std::cout) const |
| Print event. | |
| void | clear () |
| Reset event. | |
| void | clear_hits () |
| Clear the hit vectors and all the references to hits in the tracks. | |
| std::vector< const Trk * > | primary_trks () const |
| Return a vector with const pointers to the tracks that are 'primary'. | |
| std::vector< Trk * > | primary_trks () |
| Return a vector of pointers to tracks that are 'primary'. | |
| const Trk * | neutrino () const |
| Get a const pointer to the (first) neutrino from the MC track list. | |
| Trk * | neutrino () |
| Get a pointer to the (first) neutrino from the MC track list. | |
| const Trk * | primary_neutrino () const |
| Get a const pointer to primary neutrino from the MC track list. | |
| Trk * | primary_neutrino () |
| Get a pointer to primary neutrino from the MC track list. | |
| const Trk * | leading_lepton () const |
| Get a const pointer to the first leading lepton from the MC track list. | |
| Trk * | leading_lepton () |
| Get a pointer to leading lepton from the MC track list. | |
| const Trk * | get_parent_of (const Trk &child) const |
| Get a const pointer to the (first) parent of the track 'child'. | |
| Trk * | get_parent_of (const Trk &child) |
| Get a pointer ot the (first) parent of the track 'child'. | |
| int | idx (const std::string &key) const |
| Get index in user data of the item with given key. | |
| bool | haveusr (const std::string &key) const |
| Check availability of user data of the item with given key. | |
| int | idxusr_checked (const std::string &key) const |
| Get index in user data of the item with given key. | |
| double | getusr (const std::string &key) const |
| Get user data item with given key. | |
| void | setusr (const std::string &key, double value) |
| Set user data item with given key. | |
| bool | delusr (const std::string &key) |
| Remove (first) user data item with given key. | |
| void | clearusr () |
| Clear user data. | |
| void | printusr (std::ostream &out=std::cout) |
| Print user data (i.e. | |
Static Public Member Functions | |
| static void | actionAtFileOpen (int version) |
| Action method at file open. | |
Public Attributes | |
| int | id |
| offline event identifier | |
| int | det_id |
| detector identifier from DAQ | |
| int | mc_id |
| identifier of the MC event (as found in ascii or antcc file). | |
| int | run_id |
| DAQ run identifier. | |
| int | mc_run_id |
| MC run identifier. | |
| int | frame_index |
| from the raw data | |
| ULong64_t | trigger_mask |
| trigger mask from raw data (i.e. the trigger bits) | |
| ULong64_t | trigger_counter |
| trigger counter | |
| unsigned int | overlays |
| number of overlaying triggered events | |
| TTimeStamp | t |
| UTC time of the timeslice, or the event_time for MC. (default: 01 Jan 1970 00:00:00) | |
| uuid_t | header_uuid |
| UUID of header containing the event-weight information. | |
| std::vector< Hit > | hits |
| list of hits | |
| std::vector< Trk > | trks |
| list of reconstructed tracks (can be several because of prefits,showers, etc). | |
| std::vector< double > | w |
| MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions) | |
| std::vector< double > | w2list |
| MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions) | |
| std::vector< double > | w3list |
| MC: atmospheric flux information. | |
| TTimeStamp | mc_event_time |
| MC: true generation time (UTC) of the event, (default: 01 Jan 1970 00:00:00) | |
| double | mc_t |
| MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_duration) | |
| std::vector< Hit > | mc_hits |
| MC: list of MC truth hits. | |
| std::vector< Trk > | mc_trks |
| MC: list of MC truth tracks. | |
| TString | comment |
| user can use this as he/she likes | |
| int | index |
| user can use this as he/she likes | |
| int | flags |
| user can use this as he/she likes | |
| std::vector< double > | usr |
| user data | |
| std::vector< std::string > | usr_names |
| user keys | |
| TObject * | any |
| Pointer to "any" user data. | |
Static Public Attributes | |
| static int | ROOT_IO_VERSION = -1 |
| Streamer version as obtained from ROOT file. | |
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 |
Default constructor.
Definition at line 60 of file Evt.hh.
|
inline |
|
inline |
|
inline |
|
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.
|
inline |
Return a vector of pointers to tracks that are 'primary'.
Here, primary means the tracks have no parents.
|
inline |
|
inline |
Get a pointer to the (first) neutrino from the MC track list.
Definition at line 162 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.
|
inline |
Get a pointer to primary neutrino from the MC track list.
Only works if MC parent-child relations are availabe.
Definition at line 192 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.
|
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 228 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 |
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 258 of file Evt.hh.
|
inlinestatic |
Action method at file open.
| version | version |
Definition at line 269 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 |
Clear user data.
Definition at line 139 of file AAObject.hh.
|
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 |
| uuid_t Evt::header_uuid |
| 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 |
|
static |
|
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.