19 RooStats::HistFactory::PreprocessFunction::PreprocessFunction() {;}
21 RooStats::HistFactory::PreprocessFunction::PreprocessFunction(std::string Name, std::string Expression, std::string Dependents) :
22 fName(Name), fExpression(Expression), fDependents(Dependents) {
23 fCommand = GetCommand(Name, Expression, Dependents);
26 std::string RooStats::HistFactory::PreprocessFunction::GetCommand(std::string Name, std::string Expression, std::string Dependents) {
27 std::string command =
"expr::"+Name+
"('"+Expression+
"',{"+Dependents+
"})";
32 void RooStats::HistFactory::PreprocessFunction::Print( std::ostream& stream ) {
34 stream <<
"\t \t Name: " << fName
35 <<
"\t \t Expression: " << fExpression
36 <<
"\t \t Dependents: " << fDependents
41 void RooStats::HistFactory::PreprocessFunction::PrintXML( std::ostream& xml ) {
42 xml <<
"<Function Name=\"" << GetName() <<
"\" "
43 <<
"Expression=\"" << GetExpression() <<
"\" "
44 <<
"Dependents=\"" << GetDependents() <<
"\" "