| 
    Jpp
    master_rocky-37-gf0c5bc59d
    
   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.  More... | |
| 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... | |
Static Public Member Functions | |
| static void | actionAtFileOpen (int version) | 
| Action method at file open.  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... | |
| uuid_t | header_uuid | 
| UUID of header containing the event-weight information.  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 or km3net-dataformat/definitions)  More... | |
| std::vector< double > | w2list | 
| MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)  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... | |
Static Public Attributes | |
| static int | ROOT_IO_VERSION = -1 | 
| Streamer version as obtained from ROOT file.  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 | 
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.
Definition at line 114 of file Evt.hh.
      
  | 
  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.