1#ifndef __JAANET_JHEADTOOLKIT__
2#define __JAANET_JHEADTOOLKIT__
41 for (
const auto& i : header.
simul) {
47 for (
const auto& i : header.
physics) {
65 for (
const auto& i : header.
simul) {
71 for (
const auto& i : header.
physics) {
89 for (
const auto& i : header.
simul) {
107 for (
const auto& i : header.
simul) {
125 for (
const auto& i : header.
simul) {
143 for (
const auto& i : header.
simul) {
161 for (
const auto& i : header.
simul) {
179 for (
const auto& i : header.
simul) {
233 public std::map<std::string, is_head>
260 return this->at(application);
296 return Vec(0.0, 0.0, 0.0);
302 return Vec(0.0, 0.0, 0.0);
334 return Vec(0.0, 0.0, 0.0);
336 return Vec(0.0, 0.0, 0.0);
387 for (
const auto& i : header.
simul) {
391 std::string buffer = i.version;
393 if (!buffer.empty()) {
395 if (buffer[0] ==
'v' ||
static const char *const APPLICATION_KM3SIM
detector simulation
static const char *const APPLICATION_KM3BUU
event generator
static const char *const APPLICATION_GENHEN
ile KM3NeT Data Definitions v3.6.5 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
std::vector< JAANET::simul > simul
JAANET::coord_origin coord_origin
JAANET::fixedcan fixedcan
bool is_valid(T JHead::*pd) const
Check validity of given data member in JHead.
std::vector< JAANET::physics > physics
Data structure for circle in two dimensions.
Data structure for vector in two dimensions.
Data structure for position in three dimensions.
Extensions to Evt data format.
bool is_genhen(const JHead &header)
Check for generator.
Vec getOrigin(const JHead &header)
Get origin.
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.
JCylinder3D getCylinder(const JHead &header)
Get cylinder corresponding to the positions of generated tracks (i.e.
bool is_MC(const JHead &header)
Check for Monte-Carlo simulations.
bool is_pure_noise(const JHead &header)
Check for generator.
static const JEEP::JVersion MUPAGE_MINIMAL_VERSION(6, 0, 2)
MUPAGE minimal version using weights.
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_gseagen(const JHead &header)
Check for generator.
bool has_mupage_weights(const JHead &header)
Check for generator.
static JHeadHelper get_is_head
Function object to get check method for given application.
bool(* is_head)(const JHead &)
Type definition of test function of header.
bool is_mupage(const JHead &header)
Check for generator.
Vec getOffset(const JHead &header)
Get offset.
bool is_km3buu(const JHead &header)
Check for generator.
bool is_km3(const JHead &header)
Check for detector simulation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double livetime_s
Live time [s].
Auxiliary map of application to check method.
is_head operator()(const std::string &application) const
Get check method for given application.
JHeadHelper()
Default constructor.
double livetime_s
Live time [s].
double ycenter
y-center [m]
double xcenter
x-center [m]
Auxiliary data structure for general purpose version number.
The Vec class is a straightforward 3-d vector, which also works in pyroot.