ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooMultiCategory.h,v 1.9 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_MULTI_CATEGORY
#define ROO_MULTI_CATEGORY

class TObject ;
#include "RooAbsCategoryLValue.h"
#include "RooCatType.h"
#include "RooArgSet.h"
#include "RooSetProxy.h"
 

class RooMultiCategory : public RooAbsCategory {
public:
  // Constructors etc.
  inline RooMultiCategory() { }
  RooMultiCategory(const char *name, const char *title, const RooArgSet& inputCatList);
  RooMultiCategory(const RooMultiCategory& other, const char *name=0) ;
  virtual TObject* clone(const char* newname) const { return new RooMultiCategory(*this,newname); }
  virtual ~RooMultiCategory();

  // Printing interface (human readable)
  virtual void printMultiline(ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;

  // I/O streaming interface (machine readable)
  virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose=kFALSE) ;
  virtual void writeToStream(ostream& os, Bool_t compact) const ;

  const RooArgSet& inputCatList() const { return _catSet ; }

protected:

  void updateIndexList() ;
  TString currentLabel() const ;

  RooSetProxy _catSet ; // Set of input category
  
  virtual RooCatType evaluate() const ; 

  ClassDef(RooMultiCategory,1) // Product operator for categories
};

#endif
 RooMultiCategory.h:1
 RooMultiCategory.h:2
 RooMultiCategory.h:3
 RooMultiCategory.h:4
 RooMultiCategory.h:5
 RooMultiCategory.h:6
 RooMultiCategory.h:7
 RooMultiCategory.h:8
 RooMultiCategory.h:9
 RooMultiCategory.h:10
 RooMultiCategory.h:11
 RooMultiCategory.h:12
 RooMultiCategory.h:13
 RooMultiCategory.h:14
 RooMultiCategory.h:15
 RooMultiCategory.h:16
 RooMultiCategory.h:17
 RooMultiCategory.h:18
 RooMultiCategory.h:19
 RooMultiCategory.h:20
 RooMultiCategory.h:21
 RooMultiCategory.h:22
 RooMultiCategory.h:23
 RooMultiCategory.h:24
 RooMultiCategory.h:25
 RooMultiCategory.h:26
 RooMultiCategory.h:27
 RooMultiCategory.h:28
 RooMultiCategory.h:29
 RooMultiCategory.h:30
 RooMultiCategory.h:31
 RooMultiCategory.h:32
 RooMultiCategory.h:33
 RooMultiCategory.h:34
 RooMultiCategory.h:35
 RooMultiCategory.h:36
 RooMultiCategory.h:37
 RooMultiCategory.h:38
 RooMultiCategory.h:39
 RooMultiCategory.h:40
 RooMultiCategory.h:41
 RooMultiCategory.h:42
 RooMultiCategory.h:43
 RooMultiCategory.h:44
 RooMultiCategory.h:45
 RooMultiCategory.h:46
 RooMultiCategory.h:47
 RooMultiCategory.h:48
 RooMultiCategory.h:49
 RooMultiCategory.h:50
 RooMultiCategory.h:51
 RooMultiCategory.h:52
 RooMultiCategory.h:53
 RooMultiCategory.h:54
 RooMultiCategory.h:55
 RooMultiCategory.h:56