Go to the documentation of this file. 1 #ifndef __JAANET__JHEAD__
2 #define __JAANET__JHEAD__
12 #include "evt/Head.hh"
43 extern void copy(
const JHead& from, Head& to);
52 extern void copy(
const Head& from,
JHead& to);
61 inline std::string
getTag(
const std::string& tag)
67 if (pos != string::npos) {
69 for (string::size_type i = pos + 1; i != tag.size(); ++i) {
70 if (!isdigit(tag[i])) {
75 return tag.substr(0, pos);
118 return buffer ==
object.buffer;
191 return cosTmax <
object.cosTmin;
193 return Emax <
object.Emin;
283 return program ==
object.program;
466 const double z = 0.0)
471 volume *= factor * factor * factor;
520 return (x ==
object.x &&
694 return (
z ==
object.
z);
782 return type <
object.type;
825 return !value.match(T());
850 static const std::string
KM3;
886 return static_cast<const JHead&>(*
this);
897 return static_cast<JHead&>(*
this);
908 static_cast<JHead&>(*
this) = header;
960 if (p != this->end()) {
964 static_cast<Head*>(
this)->erase(p);
979 inline bool match(
const JHead& header,
const bool option =
true)
const
1025 if (
match(header)) {
1051 const JHead& second)
1053 return first.
match(second);
1065 const JHead& second)
1067 return first.
less(second);
1131 std::istream&
read(std::istream& in);
1141 std::ostream&
write(std::ostream& out)
const;
1150 std::ostream&
print(std::ostream& out)
const;
1164 static inline bool match(
const T& first,
1167 return first.match(second);
1186 if (
match(*ix, *iy)) {
1192 return ns == first.size() || ns == second.size();
1210 const JHead& second,
1214 if (option || second.
pull(pd) != second.end())
1215 return match(first.*pd, second.*pd);
1262 return header.
read(in);
1275 return header.
write(out);
std::vector< JAANET::physics > physics
std::string version
program version
std::vector< JAANET::simul > simul
bool match(const JHead &header, const bool option=true) const
Test match of headers.
Phase space of incoming particle.
fixedcan()
Default constructor.
bool match(const can &object) const
Test match.
JAANET::end_event end_event
genhencut()
Default constructor.
start_run()
Default constructor.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
JAANET::fixedcan fixedcan
std::ostream & operator<<(std::ostream &out, const JAANET::JHead &header)
Write header to output.
DAQ()
Default constructor.
bool less(const cut &object) const
Comparison.
The cylinder used for photon tracking.
JAANET::detector detector
static const std::string GENHEN
Generators.
genvol & mul(const double factor, const double z=0.0)
Scale.
std::istream & read(std::istream &in)
Read header from input.
JAANET::XSecFile XSecFile
livetime & add(const livetime &object)
Addition.
JAANET::livetime livetime
static const std::string GENIE
double ycenter
y-center [m]
JAANET::coord_origin coord_origin
static bool match(const T &first, const T &second)
Test match.
bool is_valid(const T &value)
Check validity of given value.
bool match(const String &object) const
Test match.
static const std::string JSIRENE
bool match(const spectrum &object) const
Test match.
void erase(T JHead::*pd)
Remove given data member from Head.
JAANET::seabottom seabottom
std::string program
program name
std::ostream & print(std::ostream &out) const
Print header to output.
double volume
Volume [m^3].
JHead()
Default constructor.
bool less(const primary &object) const
Comparison.
bool operator==(const Head &first, const Head &second)
Equal operator.
std::string file_2
File name.
Phase space of atmospheric muon generation.
JAANET::start_run start_run
can()
Default constructor.
JAANET::genhencut genhencut
double xcenter
x-center [m]
std::ostream & write(std::ostream &out) const
Write header to output.
friend bool operator==(const JHead &first, const JHead &second)
Equal operator.
std::string buffer
General purpose name.
Phase space for incident neutrino.
static const std::string GSEAGEN
virtual ~JHead()
Virtual destructor.
double Emin
Minimal energy [GeV].
JAANET::muon_desc_file muon_desc_file
genvol & add(const genvol &object)
Addition.
flux()
Default constructor.
double numberOfEvents
Number of events.
bool operator<(const Head &first, const Head &second)
Less than operator.
void copy(const Head &from, JHead &to)
Copy header from from to to.
double livetime_s
Live time [s].
static bool match(const std::vector< T > &first, const std::vector< T > &second)
Test one container is subset of other container or vice versa.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool match(const coord_origin &object) const
Test match.
JHead & getHeader()
Get header.
ClassDefNV(muon_desc_file, 1)
double numberOfSeconds
Time in seconds.
spectrum()
Default constructor.
coord_origin(const double x, const double y, const double z)
Constructor.
iterator pull(T JHead::*pd)
Pull given data member from Head.
static const std::string KM3SIM
friend bool operator<(const JHead &first, const JHead &second)
Less than operator.
bool match(const genvol &object) const
Test match.
ClassDefNV(cut_primary, 1)
genvol()
Default constructor.
bool match(const primary &object) const
Test match.
const TDataMember * getDataMember(const JRootClass &parent, const JRootClass &member)
Get ROOT data member for given parent and member class.
double numberOfPrimaries
Number of primaries.
Description of Monte Carlo event generation applications.
const_iterator pull(T JHead::*pd) const
Pull given data member from Head.
generator()
Default constructor.
ClassDefNV(cut_seamuon, 1)
static const char AANET_TAG_SEPARATOR
Separator for AAnet tag extension for multiple tags ("_<counter>").
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Phase space of primary particle.
double numberOfSeconds
Live time [s].
end_event()
Default constructor.
General purpose class of phase space generation.
bool match(const fixedcan &object) const
Test match.
coord_origin()
Default constructor.
double primaryFlux
Primary flux.
JHead & add(const JHead &header)
Addition of headers.
double cosTmin
Minimal cosine zenith angle.
static bool match(const JHead &first, const JHead &second, const bool option, T JHead::*pd)
Test match of given data member of headers.
Extensions to AAnet data format.
double cosTmax
Maximal cosine zenith angle.
JHead(const Head &header)
Copy constructor.
primary()
Default constructor.
void push(T JHead::*pd)
Push given data member to Head.
bool match(const generator &object) const
Test match.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Generator for neutrino interaction.
Scaling time of neutrino interaction generators.
bool match(const livetime &object) const
Test match.
static const std::string KM3
bool match(const cut &object) const
Test match.
std::string getTag(const std::string &tag)
Get tag without aanet extension "_<counter>" for identical tags.
static JLANG::JEquationParameters & getEquationParameters()
Get equation parameters corresponding to Monte Carlo ASCII format, i.e:
static const std::string MUPAGE
bool match(const norma &object) const
Test match.
std::string date
processing date
double Emax
Maximal energy [GeV].
double Emin
Minimal energy [GeV].
double errorOfSeconds
Uncertainty on live time [s].
Normalisation of MUPAGE events.
std::string time
processing time
JAANET::cut_seamuon cut_seamuon
String()
Default constructor.
cut()
Default constructor.
norma()
Default constructor.
const JHead & getHeader() const
Get header.
norma & add(const norma &object)
Addition.
JAANET::spectrum spectrum
Neutrino cross section file.
livetime()
Default constructor.
The fixe cylinder used for photon tracking.
Neutrino energy spectrum.
tgen()
Default constructor.
seabottom()
Default constructor.
void setHeader(const JHead &header)
Set header.
Phase space of incident neutrino.
bool match(const seabottom &object) const
Test match.
std::string file_1
File name.
Normlisation of CORSIKA events.
bool less(const JHead &header) const
Comparison of headers.
Generator for simulation.
ClassDefNV(coord_origin, 1)
General purpose string class.
JAANET::cut_primary cut_primary
bool match(const DAQ &object) const
Test match.
livetime & mul(const double factor)
Scale.
DAQ & add(const DAQ &object)
Addition.
static void setEquationParameters(const JLANG::JEquationParameters &equation)
Set equation parameters.
double alpha
Energy spectrum: .