1#ifndef __JAANET_JHEADTOOLKIT__
2#define __JAANET_JHEADTOOLKIT__
39 for (
const auto& i : header.
simul) {
45 for (
const auto& i : header.
physics) {
63 for (
const auto& i : header.
simul) {
69 for (
const auto& i : header.
physics) {
87 for (
const auto& i : header.
simul) {
105 for (
const auto& i : header.
simul) {
123 for (
const auto& i : header.
simul) {
141 for (
const auto& i : header.
simul) {
159 for (
const auto& i : header.
simul) {
177 for (
const auto& i : header.
simul) {
231 public std::map<std::string, is_head>
258 return this->at(application);
294 return Vec(0.0, 0.0, 0.0);
300 return Vec(0.0, 0.0, 0.0);
332 return Vec(0.0, 0.0, 0.0);
334 return Vec(0.0, 0.0, 0.0);
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.6.0 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.
bool is_sirene(const JHead &header)
Check for detector simulation.
bool is_gseagen(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]
The Vec class is a straightforward 3-d vector, which also works in pyroot.