51using std::endl, std::istream, std::ostream;
97 coutW(InputArguments) <<
"RooArgList::RooArgList(TCollection) element " << obj->GetName()
98 <<
" is not a RooAbsArg, ignored" << std::endl ;
140 coutE(InputArguments) <<
"RooArgList::writeToStream(" <<
GetName() <<
") non-compact mode not supported" << std::endl ;
144 for (
const auto obj :
_list) {
145 obj->writeToStream(os,
true);
163 coutE(InputArguments) <<
"RooArgList::readFromStream(" <<
GetName() <<
") non-compact mode not supported" << std::endl ;
168 for (
auto next :
_list) {
169 if (!next->getAttribute(
"Dynamic")) {
170 if (next->readFromStream(is,
true,verbose)) {
179 if (!parser.
atEOL()) {
182 coutW(InputArguments) <<
"RooArgSet::readFromStream(" <<
GetName()
183 <<
"): ignoring extra characters at end of line: '" << rest <<
"'" << std::endl ;
Common abstract base class for objects that represent a value and a "shape" in RooFit.
RooAbsCollection()
Default constructor.
const char * GetName() const override
Returns name of object.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Storage_t _list
Actual object storage.
virtual void writeToStream(std::ostream &os, bool compact)
Write the contents of the argset in ASCII form to given stream.
RooArgList()
Default constructor.
void processArg(const RooAbsArg &arg)
~RooArgList() override
Destructor.
virtual bool readFromStream(std::istream &is, bool compact, bool verbose=false)
Read the contents of the argset in ASCII form from given stream.
bool atEOL()
If true, parser is at end of line in stream.
TString readLine()
Read an entire line from the stream and return as TString This method recognizes the use of '\' in th...
void zapToEnd(bool inclContLines=false)
Eat all characters up to and including then end of the current line.
Collection abstract base class.
TObject()
TObject constructor.
RooConstVar & RooConst(double val)