1 #ifndef __JPHYSICS__JPDFTYPES__
2 #define __JPHYSICS__JPDFTYPES__
63 std::ostringstream os;
81 static const char* digits =
"0123456789";
87 string::size_type pos = buffer.find_first_of(digits);
89 if (pos != string::npos) {
91 string::size_type len = buffer.substr(pos).find_first_not_of(digits);
93 istringstream(buffer.substr(pos, len)) >> type;
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
std::string setWildCard(const std::string &file_name, const std::string &value)
Get file name by setting wild card to given value.
Auxiliary methods for light properties of deep-sea water.
bool is_deltarays(const int pdf)
Test if given PDF type corresponds to Cherenkov light from delta-rays.
std::string getFilename(const std::string &file_name, const JPDFType_t pdf)
Get PDF file name.
bool is_bremsstrahlung(const int pdf)
Test if given PDF type corresponds to Cherenkov light from Bremsstrahlung.
bool is_muon(const int pdf)
Test if given PDF type corresponds to Cherenkov light from muon.
bool is_scattered(const int pdf)
Test if given PDF type corresponds to scattered light.
@ SCATTERED_LIGHT_FROM_EMSHOWER
scattered light from EM shower
@ LIGHT_FROM_EMSHOWERS
direct and scattered light from EM showers
@ SCATTERED_LIGHT_FROM_BRIGHT_POINT
scattered light from bright point
@ SCATTERED_LIGHT_FROM_DELTARAYS
scattered light from delta-rays
@ LIGHT_FROM_ELONGATED_EMSHOWER
light from elongated EM shower
@ LIGHT_FROM_EMSHOWER
direct and scattered light from EM shower
@ DIRECT_LIGHT_FROM_EMSHOWERS
direct light from EM showers
@ LIGHT_FROM_DELTARAYS
direct and scattered light from delta-rays
@ SCATTERED_LIGHT_FROM_EMSHOWERS
scattered light from EM showers
@ SCATTERED_LIGHT_FROM_MUON_5D
scattered light from muon
@ LIGHT_FROM_BRIGTH_POINT
direct and scattered light from brigth point
@ DIRECT_LIGHT_FROM_BRIGHT_POINT
direct light from bright point
@ SCATTERED_LIGHT_FROM_MUON
scattered light from muon
@ DIRECT_LIGHT_FROM_EMSHOWER
direct light from EM shower
@ LIGHT_FROM_MUON
direct and scattered light from muon
@ DIRECT_LIGHT_FROM_DELTARAYS
direct light from delta-rays
@ DIRECT_LIGHT_FROM_MUON
direct light from muon
std::string getLabel(const JPDFType_t pdf)
Get PDF label.
int getPDFType(const std::string &file_name)
Get PDF type.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).