Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JAANET::JHeadHelper Struct Reference

Auxiliary map of application to check method. More...

#include <JHeadToolkit.hh>

Inheritance diagram for JAANET::JHeadHelper:
std::map< std::string, is_head >

Public Member Functions

 JHeadHelper ()
 Default constructor. More...
 
is_head operator() (const std::string &application) const
 Get check method for given application. More...
 

Detailed Description

Auxiliary map of application to check method.

Definition at line 214 of file JHeadToolkit.hh.

Constructor & Destructor Documentation

JAANET::JHeadHelper::JHeadHelper ( )
inline

Default constructor.

Definition at line 220 of file JHeadToolkit.hh.

221  {
222  (*this)[APPLICATION_GENHEN] = is_genhen;
223  (*this)[APPLICATION_GSEAGEN] = is_gseagen;
224  (*this)[APPLICATION_MUPAGE] = is_mupage;
225  (*this)[APPLICATION_CORSIKA] = is_corsika;
226  (*this)[APPLICATION_KM3BUU] = is_km3buu;
227  (*this)[APPLICATION_KM3] = is_km3;
228  (*this)[APPLICATION_KM3SIM] = is_km3sim;
229  (*this)[APPLICATION_JSIRENE] = is_sirene;
230  (*this)["DAQ"] = is_daq;
231  }
bool is_mupage(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:85
bool is_km3buu(const JHead &header)
Check for generator.
static const char *const APPLICATION_KM3
detector simulation
Definition: applications.hh:17
bool is_gseagen(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:61
static const char *const APPLICATION_GSEAGEN
event generator
Definition: applications.hh:13
static const char *const APPLICATION_JSIRENE
detector simulation
Definition: applications.hh:19
bool is_corsika(const JHead &header)
Check for generator.
static const char *const APPLICATION_CORSIKA
event generator
Definition: applications.hh:15
bool is_daq(const JHead &header)
Check for real data.
static const char *const APPLICATION_KM3BUU
event generator
Definition: applications.hh:16
static const char *const APPLICATION_KM3SIM
detector simulation
Definition: applications.hh:18
static const char *const APPLICATION_MUPAGE
event generator
Definition: applications.hh:14
bool is_genhen(const JHead &header)
Check for generator.
Definition: JHeadToolkit.hh:37
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v3.4.0-8-ge14cb17 https://git.km3net.de/common/km3net-dataformat.
Definition: applications.hh:12
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_km3sim(const JHead &header)
Check for detector simulation.
bool is_km3(const JHead &header)
Check for detector simulation.

Member Function Documentation

is_head JAANET::JHeadHelper::operator() ( const std::string &  application) const
inline

Get check method for given application.

Parameters
applicationapplication
Returns
check method

Definition at line 240 of file JHeadToolkit.hh.

241  {
242  return this->at(application);
243  }

The documentation for this struct was generated from the following file: