Jpp master_rocky-44-g75b7c4f75
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
is_head operator() (const std::string &application) const
 Get check method for given application.
 

Detailed Description

Auxiliary map of application to check method.

Definition at line 214 of file JHeadToolkit.hh.

Constructor & Destructor Documentation

◆ JHeadHelper()

JAANET::JHeadHelper::JHeadHelper ( )
inline

Default constructor.

Definition at line 220 of file JHeadToolkit.hh.

221 {
222 (*this)[APPLICATION_GENHEN] = is_genhen;
224 (*this)[APPLICATION_MUPAGE] = is_mupage;
226 (*this)[APPLICATION_KM3BUU] = is_km3buu;
227 (*this)[APPLICATION_KM3] = is_km3;
228 (*this)[APPLICATION_KM3SIM] = is_km3sim;
230 (*this)["DAQ"] = is_daq;
231 }
static const char *const APPLICATION_KM3SIM
detector simulation
static const char *const APPLICATION_KM3BUU
event generator
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v3.4.0-8-ge14cb17 https://git.km3net.de/common/km3net-dataformat.
static const char *const APPLICATION_GSEAGEN
event generator
static const char *const APPLICATION_JSIRENE
detector simulation
static const char *const APPLICATION_MUPAGE
event generator
static const char *const APPLICATION_CORSIKA
event generator
static const char *const APPLICATION_KM3
detector simulation
bool is_genhen(const JHead &header)
Check for generator.
bool is_daq(const JHead &header)
Check for real data.
bool is_km3sim(const JHead &header)
Check for detector simulation.
bool is_corsika(const JHead &header)
Check for generator.
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_gseagen(const JHead &header)
Check for generator.
bool is_mupage(const JHead &header)
Check for generator.
bool is_km3buu(const JHead &header)
Check for generator.
bool is_km3(const JHead &header)
Check for detector simulation.

Member Function Documentation

◆ operator()()

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: