|
Jpp
16.0.0-rc.1
the software that should make you happy
|
#include <string>#include <istream>#include <ostream>#include <sstream>#include "km3net-dataformat/offline/Evt.hh"#include "km3net-dataformat/offline/Hit.hh"#include "km3net-dataformat/offline/Trk.hh"#include "km3net-dataformat/offline/Head.hh"#include "km3net-dataformat/offline/Exception.hh"#include "km3net-dataformat/definitions/w2list_gseagen.hh"#include "km3net-dataformat/definitions/trkmembers.hh"#include "TDatabasePDG.h"Go to the source code of this file.
Namespaces | |
| mc_keys | |
| mc_usr_keys | |
| io_stringutil | |
Functions | |
| bool | io_stringutil::startswith (const std::string &a, const std::string &b) |
| Check if string starts with given text. More... | |
| std::string | io_stringutil::trim (const std::string &s) |
| Remove leading and trailing white spaces. More... | |
| int | pdg_code (int geant3_code) |
| Convert Geant3 to PDG particle type. More... | |
| int | geant3_code (int pdg_code) |
| Convert PDG to Geant3 particle type. More... | |
| bool | read (Vec &v, std::istream &is) |
| Read a Vec(tor) from a stream. More... | |
| bool | write (const Vec &v, std::ostream &os) |
| Write a Vec(tor) to a stream. More... | |
| bool | read (Hit &h, std::istream &is, bool read_mc=false) |
| Read a hit from a stream. More... | |
| bool | write (const Hit &h, std::ostream &os, const std::string &tag=mc_keys::hit_t) |
| Write a hit to a stream. More... | |
| bool | read (Trk &t, Evt &evt, std::istream &is, const std::string &tag=mc_keys::track_in_t) |
| Read track from a stream. More... | |
| bool | write (const Trk &t, const Evt &evt, std::ostream &os, std::string tag=mc_keys::track_in_t) |
| Write track to a stream. More... | |
| std::vector< double > | read_line_to_vector (std::istream &is) |
| Read data. More... | |
| template<typename T > | |
| void | push_front (std::vector< T > &vec, T &value) |
| Put value in front of data. More... | |
| bool | read (Evt &evt, std::istream &is, bool skip_hits=false) |
| Read event from a stream. More... | |
| bool | write (const Evt &evt, std::ostream &os) |
| Write event to a stream. More... | |
| bool | read (Head &hdr, std::istream &is) |
| Read header from a stream. More... | |
| bool | write (const Head &hdr, std::ostream &os) |
| Write header to a stream. More... | |
Variables | |
| const char *const | mc_keys::auto_t = "auto" |
| const char *const | mc_keys::start_run_t = "start_run:" |
| const char *const | mc_keys::start_event_t = "start_event:" |
| const char *const | mc_keys::hit_t = "hit:" |
| const char *const | mc_keys::hit_raw_t = "hit_raw:" |
| const char *const | mc_keys::track_in_t = "track_in:" |
| const char *const | mc_keys::track_t = "track:" |
| const char *const | mc_keys::track_fit_t = "track_fit:" |
| const char *const | mc_keys::neutrino_t = "neutrino:" |
| const char *const | mc_keys::track_primary_t = "track_primary:" |
| const char *const | mc_keys::weights_t = "weights:" |
| const char *const | mc_keys::w2list_t = "w2list:" |
| const char *const | mc_keys::w3list_t = "w3list:" |
| const char *const | mc_keys::hourangle_t = "hourangle:" |
| const char *const | mc_keys::eventtime_t = "eventtime:" |
| const char *const | mc_keys::center_on_can_t = "center_on_can:" |
| const char *const | mc_keys::muon_decay_t = "muon_decay:" |
| const char *const | mc_keys::end_event_t = "end_event:" |
| const char *const | mc_usr_keys::energy_lost_in_can = "energy_lost_in_can" |
| const char *const | mc_usr_keys::muon_decay_x = "muon_decay_x" |
| const char *const | mc_usr_keys::muon_decay_y = "muon_decay_y" |
| const char *const | mc_usr_keys::muon_decay_z = "muon_decay_z" |
| const char *const | mc_usr_keys::center_on_can_x = "center_on_can_x" |
| const char *const | mc_usr_keys::center_on_can_y = "center_on_can_y" |
| const char *const | mc_usr_keys::center_on_can_z = "center_on_can_z" |
| const char *const | mc_usr_keys::hourangle = "hourangle" |
|
inline |
Convert Geant3 to PDG particle type.
| geant3_code | Geant3 code |
Definition at line 110 of file io_ascii.hh.
|
inline |
Convert PDG to Geant3 particle type.
| pdg_code | PDG code |
Definition at line 124 of file io_ascii.hh.
|
inline |
Read a Vec(tor) from a stream.
| v | vector |
| is | input stream |
Definition at line 141 of file io_ascii.hh.
|
inline |
Write a Vec(tor) to a stream.
| v | vector |
| os | output stream |
Definition at line 154 of file io_ascii.hh.
|
inline |
Read a hit from a stream.
| h | hit |
| is | input stream |
| read_mc | option to read also type and origin |
Definition at line 168 of file io_ascii.hh.
|
inline |
Write a hit to a stream.
| h | hit |
| os | output stream |
| tag | tag |
Definition at line 198 of file io_ascii.hh.
|
inline |
Read track from a stream.
| t | track |
| evt | event (for storing nu info in w2list) |
| is | input stream |
| tag | tag |
Definition at line 220 of file io_ascii.hh.
|
inline |
Write track to a stream.
| t | track |
| os | output stream |
| tag | tag |
Definition at line 291 of file io_ascii.hh.
|
inline |
Read data.
| is | input stream |
Definition at line 354 of file io_ascii.hh.
|
inline |
Put value in front of data.
| vec | data |
| value | value |
Definition at line 376 of file io_ascii.hh.
|
inline |
Read event from a stream.
| evt | event |
| is | input stream |
| skip_hits | option to skip reading of hits |
Definition at line 390 of file io_ascii.hh.
|
inline |
Write event to a stream.
| evt | event |
| os | output stream |
Definition at line 583 of file io_ascii.hh.
|
inline |
Read header from a stream.
The stream may be positioned at any point before the tag mc_keys::start_run_t, which marks the beginning of the header. Information before the header (if any) is disgarded.
| hdr | header |
| is | input stream |
Definition at line 631 of file io_ascii.hh.
|
inline |
Write header to a stream.
| hdr | header |
| os | output stream |
Definition at line 688 of file io_ascii.hh.
1.8.5