1 #ifndef __JPHYSICS__JPDFTYPES__
2 #define __JPHYSICS__JPDFTYPES__
17 namespace JPP {
using namespace JPHYSICS; }
67 std::ostringstream os;
85 static const char* digits =
"0123456789";
91 string::size_type pos = buffer.find_first_of(digits);
93 if (pos != string::npos) {
95 string::size_type len = buffer.substr(pos).find_first_not_of(digits);
97 istringstream(buffer.substr(pos, len)) >> type;
112 return (file_name.find(
WILD_CARD) != std::string::npos);
131 string buffer = file_name;
133 string::size_type pos = buffer.find(
WILD_CARD);
135 if (pos == string::npos) {
136 throw JException(
string(
"Method getFilename(): Missing wild card character \'") +
WILD_CARD +
"\'.");
139 return buffer.replace(pos, 1,
getLabel(pdf));
direct and scattered light from brigth point
direct and scattered light from EM shower
direct and scattered light from muon
scattered light from muon
std::string getLabel(const JLocation &location)
Get module label for monitoring and other applications.
scattered light from EM shower
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon.
direct light from EM showers
direct light from bright point
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
scattered light from bright point
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. part after last JEEP::PATHNAME_SEPARATOR if any.
bool hasWildCard(const std::string &file_name)
Check wild card.