1 #include <boost/regex.hpp>
4 #include <unordered_map>
15 void*
TGeaEvent::fgHash2PathMap =
nullptr;
40 TClonesArray &TRACKS = *
tracks;
78 std::unordered_map<size_t, std::string>* hash2PathMap =
static_cast<std::unordered_map<size_t, std::string>*
>(
fgHash2PathMap );
80 auto hash2Path = hash2PathMap->find(hashValue);
82 if (hash2Path != hash2PathMap->end()) {
83 return hash2Path->second;
96 Error(
"TGeaTrack",
"Parent event must be defined");
139 x(0), y(0), z(0), r(0),
162 if (volumeNamePath.empty())
return true;
164 boost::regex
r(pattern);
165 bool matched = boost::regex_match(volumeNamePath, r);
175 if (volumeNamePath.empty() || patterns.empty())
178 if (volumeNamePath ==
"no_match")
181 std::set<std::string>::const_iterator iPattern = patterns.begin();
183 for( ; iPattern != patterns.end(); ++iPattern )
static std::string DecodeHashedPath(size_t hashValue)
static void * fgHash2PathMap
ClassImp(AgUStep) extern"C"
void Clear(const Option_t *opts="")
void Clear(const Option_t *opts="")
static TGiant3 * geant3
Pointer to all geant3 structures.
TGeaEvent * mParentEvent
Transient pointer to parent event.
bool MatchedVolName(const std::string &pattern) const
TGeaTrack(TGeaEvent *parentEvent=nullptr)
void Clear(const Option_t *opts="")