1 #ifndef __JAANET_JHEADTOOLKIT__
2 #define __JAANET_JHEADTOOLKIT__
5 #include <initializer_list>
38 for (
const auto& i : header.
simul) {
44 for (
const auto& i : header.
physics) {
62 for (
const auto& i : header.
simul) {
80 for (
const auto& i : header.
simul) {
98 for (
const auto& i : header.
simul) {
116 for (
const auto& i : header.
simul) {
134 for (
const auto& i : header.
simul) {
152 for (
const auto& i : header.
simul) {
170 for (
const auto& i : header.
simul) {
196 public std::map<std::string, is_head>
216 return this->at(application);
233 std::make_pair(
"DAQ",
is_daq)
244 inline T get(
const JHead& header);
258 return header.coord_origin;
263 return Vec(0.0, 0.0, -header.can.zmin);
265 return header.coord_origin;
267 return Vec(0.0, 0.0, 0.0);
281 const Vec pos = get<Vec>(header);
296 using namespace JGEOMETRY2D;
bool is_mupage(const JHead &header)
Check for generator.
Data structure for vector in two dimensions.
bool is_km3buu(const JHead &header)
Check for generator.
static const char *const APPLICATION_KM3
detector simulation
bool is_gseagen(const JHead &header)
Check for generator.
Data structure for circle in two dimensions.
bool(* is_head)(const JHead &)
Type definition of test function of header.
static const char *const APPLICATION_GSEAGEN
event generator
std::vector< JAANET::physics > physics
std::vector< JAANET::simul > simul
double livetime_s
Live time [s].
static const char *const APPLICATION_JSIRENE
detector simulation
is_head operator()(const std::string &application) const
Get check method for given application.
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Auxiliary map of application to check method.
bool is_corsika(const JHead &header)
Check for generator.
static const char *const APPLICATION_CORSIKA
event generator
JHeadHelper(const std::initializer_list< value_type > input)
Constructor.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
bool is_daq(const JHead &header)
Check for real data.
static const char *const APPLICATION_KM3BUU
event generator
static const char *const APPLICATION_KM3SIM
detector simulation
static const char *const APPLICATION_MUPAGE
event generator
bool is_genhen(const JHead &header)
Check for generator.
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v2.0.0-14-gbeccebb https://git.km3net.de/common/km3net-dataformat.
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_km3sim(const JHead &header)
Check for detector simulation.
static JHeadHelper get_is_head
Function object to get check method for given application.
Data structure for position in three dimensions.
Vec coord_origin() const
Get coordinate origin.
bool is_km3(const JHead &header)
Check for detector simulation.