Jpp
|
Match header for gseagen. More...
#include <JHeadToolkit.hh>
Public Member Functions | |
getGSeaGenHeader () | |
Default constructor. More... | |
Vec | coord_origin () const |
Get coordinate origin. More... | |
const JHead & | getHeader () const |
Get header. More... | |
JHead & | getHeader () |
Get header. More... | |
void | setHeader (const JHead &header) |
Set header. More... | |
template<class T > | |
bool | is_valid (T JHead::*pd) const |
Check validity of given data member in Head. More... | |
template<class T > | |
const_iterator | pull (T JHead::*pd) const |
Pull given data member from Head. More... | |
template<class T > | |
iterator | pull (T JHead::*pd) |
Pull given data member from Head. More... | |
template<class T > | |
void | push (T JHead::*pd) |
Push given data member to Head. More... | |
template<class T > | |
void | erase (T JHead::*pd) |
Remove given data member from Head. More... | |
bool | match (const JHead &header, const bool option=true) const |
Test match of headers. More... | |
bool | less (const JHead &header) const |
Comparison of headers. More... | |
JHead & | add (const JHead &header) |
Addition of headers. More... | |
std::istream & | read (std::istream &in) |
Read header from input. More... | |
std::ostream & | write (std::ostream &out) const |
Write header to output. More... | |
std::ostream & | print (std::ostream &out) const |
Print header to output. More... | |
ClassDef (JHead, 3) | |
ClassDef (Head, 2) | |
bool | have_line (std::string key) const |
Check availability of data with the given key. More... | |
const std::string & | get_line (std::string key) const |
Get data with the given key. More... | |
std::string & | get_line (std::string key) |
Get data with the given key. More... | |
void | set_line (std::string key, std::string line) |
Set data with the given key. More... | |
std::string | get_field (std::string key, int idx) const |
Get data with the given key at given index. More... | |
std::string | get_field (std::string key, std::string field) const |
Get data with the given key at given field. More... | |
int | get_index_of_field (std::string key, std::string field) const |
Get index of data with the given key at given field. More... | |
void | set_field (std::string key, std::string field, std::string value) |
Set data with the given key at given field. More... | |
double | ngen () const |
Get the number of generated events needed for computing event rates. More... | |
double | daq_livetime () const |
Get the the live time provided by the DAQ sytstem (=number of processed timeslices * frametime). More... | |
double | mc_livetime () const |
Get the Monte Carlo live time. More... | |
Vec | translate () const |
Get coordinate translation. More... | |
Static Public Member Functions | |
static JLANG::JEquationParameters & | getEquationParameters () |
Get equation parameters corresponding to Monte Carlo ASCII format, i.e: More... | |
static void | setEquationParameters (const JLANG::JEquationParameters &equation) |
Set equation parameters. More... | |
static std::map< std::string, std::vector< std::string > > & | _hdr_dict () |
Get internal description of the known lines in header. More... | |
Static Public Attributes | |
static const std::string | GENHEN = "GENHEN" |
Generators. More... | |
static const std::string | GENIE = "GENIE" |
static const std::string | GSEAGEN = "gSeaGen" |
static const std::string | MUPAGE = "HEMAS-DPM" |
static const std::string | JSIRENE = "JSirene" |
static const std::string | KM3 = "KM3" |
static const std::string | KM3SIM = "KM3Sim" |
Match header for gseagen.
Definition at line 80 of file JHeadToolkit.hh.
|
inline |
|
inlineinherited |
Get coordinate origin.
Definition at line 319 of file Head.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Check validity of given data member in Head.
The validity is defined by the appearence of the name of the data member of the underlying map.
pd | pointer to data member |
Definition at line 918 of file JHead.hh.
|
inlineinherited |
Pull given data member from Head.
pd | pointer to data member |
Definition at line 931 of file JHead.hh.
Pull given data member from Head.
pd | pointer to data member |
Definition at line 944 of file JHead.hh.
|
inlineinherited |
Push given data member to Head.
pd | pointer to data member |
Definition at line 956 of file JHead.hh.
|
inlineinherited |
Remove given data member from Head.
pd | pointer to data member |
Definition at line 968 of file JHead.hh.
|
inlineinherited |
Test match of headers.
Note that if option is set to false
, the match applies only to data which have a corresponding entry in the underlying map of the given header.
header | second header |
option | option |
Definition at line 991 of file JHead.hh.
|
inlineinherited |
Addition of headers.
header | header |
Definition at line 1035 of file JHead.hh.
|
inlinestaticinherited |
Get equation parameters corresponding to Monte Carlo ASCII format, i.e:
<key>: <value> [<value>]* <key>: <value> [<value>]*
Definition at line 1119 of file JHead.hh.
|
inlinestaticinherited |
Set equation parameters.
equation | equation parameters |
Definition at line 1132 of file JHead.hh.
|
inherited |
Read header from input.
in | input stream |
Definition at line 42 of file JHead.cc.
|
inherited |
Write header to output.
out | output stream |
Definition at line 80 of file JHead.cc.
|
inherited |
Print header to output.
out | output stream |
Definition at line 111 of file JHead.cc.
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set data with the given key.
key | key |
line | data |
Definition at line 110 of file Head.hh.
|
inlineinherited |
Get data with the given key at given index.
This method throws a run-time exception if no data are available.
key | key |
idx | index |
Definition at line 123 of file Head.hh.
|
inlineinherited |
Get data with the given key at given field.
This method throws a run-time exception if no field is available.
Note that this method uses the dictionary define in method Head::_hdr_dict.
key | key |
field | field |
Definition at line 163 of file Head.hh.
|
inlineinherited |
Get index of data with the given key at given field.
Note that this method uses the dictionary define in method Head::_hdr_dict.
key | key |
field | field |
Definition at line 145 of file Head.hh.
|
inlineinherited |
Set data with the given key at given field.
This method throws a run-time exception if no field available.
Note that this method uses the dictionary define in method Head::_hdr_dict.
key | key |
field | field |
value | vakue |
Definition at line 186 of file Head.hh.
|
inlinestaticinherited |
Get internal description of the known lines in header.
Definition at line 238 of file Head.hh.
|
inlineinherited |
Get the number of generated events needed for computing event rates.
Definition at line 288 of file Head.hh.
|
inlineinherited |
Get the the live time provided by the DAQ sytstem (=number of processed timeslices * frametime).
Definition at line 298 of file Head.hh.
|
inlineinherited |
Get the Monte Carlo live time.
Definition at line 309 of file Head.hh.
|
inlineinherited |
Get coordinate translation.
Definition at line 331 of file Head.hh.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |