1#ifndef __JPHYSICS__JPDFTYPES__ 
    2#define __JPHYSICS__JPDFTYPES__ 
   26    DIRECT_LIGHT_FROM_MUON             =    1,      
 
   27    SCATTERED_LIGHT_FROM_MUON          =    2,      
 
   29    DIRECT_LIGHT_FROM_EMSHOWERS        =    3,      
 
   30    SCATTERED_LIGHT_FROM_EMSHOWERS     =    4,      
 
   32    DIRECT_LIGHT_FROM_DELTARAYS        =    5,      
 
   33    SCATTERED_LIGHT_FROM_DELTARAYS     =    6,      
 
   37    DIRECT_LIGHT_FROM_EMSHOWER         =   13,      
 
   38    SCATTERED_LIGHT_FROM_EMSHOWER      =   14,      
 
   42    DIRECT_LIGHT_FROM_BRIGHT_POINT     =   23,      
 
   43    SCATTERED_LIGHT_FROM_BRIGHT_POINT  =   24,      
 
 
   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;
 
 
  125    return (pdf == DIRECT_LIGHT_FROM_MUON           ||
 
  126            pdf == SCATTERED_LIGHT_FROM_MUON        ||
 
 
  139    return (pdf == DIRECT_LIGHT_FROM_EMSHOWERS      ||
 
  140            pdf == SCATTERED_LIGHT_FROM_EMSHOWERS   ||
 
 
  153    return (pdf == DIRECT_LIGHT_FROM_DELTARAYS      ||
 
  154            pdf == SCATTERED_LIGHT_FROM_DELTARAYS   ||
 
 
  167    return (pdf == SCATTERED_LIGHT_FROM_MUON        ||
 
  168            pdf == SCATTERED_LIGHT_FROM_EMSHOWERS   ||
 
  169            pdf == SCATTERED_LIGHT_FROM_DELTARAYS   ||
 
  171            pdf == SCATTERED_LIGHT_FROM_EMSHOWER);
 
 
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.
 
@ LIGHT_FROM_EMSHOWERS
direct and scattered light from EM showers
 
@ LIGHT_FROM_ELONGATED_EMSHOWER
light from elongated EM shower
 
@ LIGHT_FROM_EMSHOWER
direct and scattered light from EM shower
 
@ LIGHT_FROM_DELTARAYS
direct and scattered light from delta-rays
 
@ SCATTERED_LIGHT_FROM_MUON_5D
scattered light from muon
 
@ LIGHT_FROM_BRIGTH_POINT
direct and scattered light from brigth point
 
@ LIGHT_FROM_MUON
direct and scattered 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).