1 #ifndef __JPHYSICS__JPDFTYPES__ 
    2 #define __JPHYSICS__JPDFTYPES__ 
   17 namespace JPP { 
using namespace JPHYSICS; }
 
   61     std::ostringstream os;
 
   79     static const char* digits = 
"0123456789";
 
   85     string::size_type pos = buffer.find_first_of(digits);
 
   87     if (pos != string::npos) {
 
   89       string::size_type len = buffer.substr(pos).find_first_not_of(digits);
 
   91       istringstream(buffer.substr(pos, len)) >> type;
 
  106     return (file_name.find(
WILD_CARD) != std::string::npos);
 
  125     string buffer = file_name;
 
  127     string::size_type pos = buffer.find(
WILD_CARD);
 
  129     if (pos == string::npos) {    
 
  130       throw JException(
string(
"Method getFilename(): Missing wild card character \'") + 
WILD_CARD + 
"\'.");
 
  133     return buffer.replace(pos, 1, 
getLabel(pdf));
 
direct and scattered light from EM shower 
 
direct and scattered light from muon 
 
scattered light from muon 
 
scattered light from EM shower 
 
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon. 
 
direct light from EM showers 
 
bool is_bremsstrahlung(const int pdf)
Test if given PDF type corresponds to Cherenkov light from Bremsstrahlung. 
 
scattered light from muon 
 
scattered light from delta-rays 
 
direct light from EM shower 
 
scattered light from EM showers 
 
std::string getLabel(const JPDFType_t pdf)
Get PDF label. 
 
direct light from delta-rays 
 
int getPDFType(const std::string &file_name)
Get PDF type. 
 
direct and scattered light from delta-rays 
 
bool is_scattered(const int pdf)
Test if given PDF type corresponds to scattered light. 
 
static const char WILD_CARD
 
direct and scattered light from EM showers 
 
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)
Get file name part, i.e. 
 
bool hasWildCard(const std::string &file_name)
Check wild card.