1 #ifndef StiHitFilters_h
2 #define StiHitFilters_h
4 #include <boost/regex.hpp>
6 #include "StEvent/StEnumerations.h"
7 #include "Sti/Base/Filter.h"
8 #include "Sti/StiHit.h"
18 virtual bool accept(
const StiHit *hit)
const {
19 return (hit && hit->detector() && hit->detector()->getGroupId() ==
fDetGroupId);
36 virtual bool accept(
const StiHit *hit)
const
40 if ( hit && hit->detector() && boost::regex_match(std::string(hit->detector()->getName()), volNamePattern) )
const std::set< boost::regex > & fVolNamePattern
Sti detector.
StiHitFilterByVolumeName(const std::set< boost::regex > &patterns)
StiHitFilterByDetectorGroup(StDetectorId detGroupId)
StDetectorId fDetGroupId
Detector group id used in this study.
virtual bool accept(const StiHit *hit) const
virtual bool accept(const StiHit *hit) const