23 StatusCode SysListDumperAlg ::
29 return StatusCode::FAILURE;
34 return StatusCode::SUCCESS;
39 StatusCode SysListDumperAlg ::
44 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
58 const std::string sysSignatureStr{
"%SYS%"};
68 return StatusCode::SUCCESS;
73 std::vector<CP::SystematicSet> SysListDumperAlg ::
74 makeSystematicsVector (
const std::string ®ex)
const
82 std::vector<CP::SystematicSet> systematicsVector;
83 std::regex expr (regex);
86 if (regex_match (sys.name(), expr))
88 systematicsVector.push_back (sys);
91 return systematicsVector;
95 StatusCode SysListDumperAlg ::
100 ANA_MSG_INFO (
"systematics regex '" <<
m_regex.value() <<
"' did not match any systematics");
101 return StatusCode::SUCCESS;
108 return StatusCode::SUCCESS;
static const std::vector< std::string > systematics
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
bool m_firstEvent
whether the next event will be the first event
Gaudi::Property< std::string > m_regex
the regex
std::vector< CP::SystematicSet > makeSystematicsVector(const std::string ®ex) const
make the systematics vector using a regex
ServiceHandle< ISystematicsSvc > m_systematicsService
the handle for the systematics service
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Class to wrap a set of SystematicVariations.
Select isolated Photons, Electrons and Muons.