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) {
215 public std::map<std::string, is_head>
242 return this->at(application);
278 return Vec(0.0, 0.0, 0.0);
284 return Vec(0.0, 0.0, 0.0);
316 return Vec(0.0, 0.0, 0.0);
318 return Vec(0.0, 0.0, 0.0);
bool is_mupage(const JHead &header)
Check for generator.
bool is_valid(T JHead::*pd) const
Check validity of given data member in JHead.
bool is_km3buu(const JHead &header)
Check for generator.
static const char *const APPLICATION_KM3
detector simulation
Vec getOffset(const JHead &header)
Get offset.
JCylinder3D getCylinder(const JHead &header)
Get cylinder corresponding to the positions of generated tracks (i.e.
bool is_gseagen(const JHead &header)
Check for generator.
bool(* is_head)(const JHead &)
Type definition of test function of header.
static const char *const APPLICATION_GSEAGEN
event generator
double livetime_s
Live time [s].
static const char *const APPLICATION_JSIRENE
detector simulation
double ycenter
y-center [m]
is_head operator()(const std::string &application) const
Get check method for given application.
double xcenter
x-center [m]
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.
bool is_pure_noise(const JHead &header)
Check for generator.
JAANET::coord_origin coord_origin
static const char *const APPLICATION_CORSIKA
event generator
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
Vec getOrigin(const JHead &header)
Get origin.
static const char *const APPLICATION_MUPAGE
event generator
bool is_genhen(const JHead &header)
Check for generator.
std::vector< JAANET::simul > simul
static const char *const APPLICATION_GENHEN
KM3NeT Data Definitions v3.4.0-8-ge14cb17 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.
JHeadHelper()
Default constructor.
std::vector< JAANET::physics > physics
Vec coord_origin() const
Get coordinate origin.
double livetime_s
Live time [s].
bool is_km3(const JHead &header)
Check for detector simulation.
JAANET::fixedcan fixedcan