99 while((obj=iter->
Next())) {
101 coutW(InputArguments) <<
"RooArgList::RooArgList(TCollection) element " << obj->
GetName()
102 <<
" is not a RooAbsArg, ignored" << endl ;
150 coutE(InputArguments) <<
"RooArgList::operator[](" <<
GetName() <<
") ERROR: index "
151 << idx <<
" out of range (0," <<
getSize() <<
")" << endl ;
152 throw std::invalid_argument(std::string(
"Index ") + to_string(idx) +
" is out of range.");
169 coutE(InputArguments) <<
"RooArgList::writeToStream(" <<
GetName() <<
") non-compact mode not supported" << endl ;
173 for (
const auto obj :
_list) {
192 coutE(InputArguments) <<
"RooArgList::readFromStream(" <<
GetName() <<
") non-compact mode not supported" << endl ;
197 for (
auto next :
_list) {
198 if (!next->getAttribute(
"Dynamic")) {
199 if (next->readFromStream(is,
kTRUE,verbose)) {
208 if (!parser.
atEOL()) {
211 coutW(InputArguments) <<
"RooArgSet::readFromStream(" <<
GetName()
212 <<
"): ignoring extra characters at end of line: '" << rest <<
"'" << endl ;
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
virtual void writeToStream(std::ostream &os, Bool_t compact) const =0
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
const char * GetName() const
Returns name of object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
virtual void writeToStream(std::ostream &os, Bool_t compact)
Write the contents of the argset in ASCII form to given stream.
RooArgList()
Default constructor.
RooAbsArg & operator[](Int_t idx) const
Array operator.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read the contents of the argset in ASCII form from given stream.
virtual ~RooArgList()
Destructor.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Bool_t atEOL()
If true, parser is at end of line in stream.
void zapToEnd(Bool_t inclContLines=kFALSE)
Eat all characters up to and including then end of the current line.
TString readLine()
Read an entire line from the stream and return as TString This method recognizes the use of '\' in th...
Collection abstract base class.
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const =0
Iterator abstract base class.
virtual TObject * Next()=0
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.