RooNameSet.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooNameSet.h,v 1.16 2007/05/11 09:11:30 verkerke Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_NAME_SET
00017 #define ROO_NAME_SET
00018 
00019 #include "TString.h"
00020 #include "RooAbsArg.h"
00021 #include "RooPrintable.h"
00022 class RooArgSet ;
00023 
00024 class RooNameSet : public TObject, public RooPrintable {
00025 public:
00026 
00027   // Constructors, assignment etc.
00028   RooNameSet();
00029   RooNameSet(const RooArgSet& argSet);
00030   RooNameSet(const RooNameSet& other) ;
00031   virtual TObject* Clone(const char*) const { return new RooNameSet(*this) ; }
00032   virtual ~RooNameSet() ;
00033 
00034   void refill(const RooArgSet& argSet) ;
00035   RooArgSet* select(const RooArgSet& list) const ;
00036   Bool_t operator==(const RooNameSet& other) ;  
00037   RooNameSet& operator=(const RooNameSet&) ;
00038 
00039   virtual void printName(ostream& os) const ;
00040   virtual void printTitle(ostream& os) const ;
00041   virtual void printClassName(ostream& os) const ;
00042   virtual void printValue(ostream& os) const ;
00043 
00044   inline virtual void Print(Option_t *options= 0) const {
00045     printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
00046   }
00047 
00048   Int_t _len ;
00049   char* _nameList ; //[_len]
00050 
00051 protected:
00052 
00053   void extendBuffer(Int_t inc) ;
00054 
00055   ClassDef(RooNameSet,1) // A sterile version of RooArgSet, containing only the names of the contained RooAbsArgs
00056 };
00057 
00058 #endif

Generated on Tue Jul 5 14:26:14 2011 for ROOT_528-00b_version by  doxygen 1.5.1