Logo ROOT   6.14/05
Reference Guide
RooBinningCategory.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_BINNING_CATEGORY
17 #define ROO_BINNING_CATEGORY
18 
19 #include "TSortedList.h"
20 #include "RooAbsCategory.h"
21 #include "RooRealProxy.h"
22 #include "RooCatType.h"
23 
25 
26 public:
27  // Constructors etc.
28  inline RooBinningCategory() { }
29  RooBinningCategory(const char *name, const char *title, RooAbsRealLValue& inputVar, const char* binningName=0, const char* catTypeName=0);
30  RooBinningCategory(const RooBinningCategory& other, const char *name=0) ;
31  virtual TObject* clone(const char* newname) const { return new RooBinningCategory(*this, newname); }
32  virtual ~RooBinningCategory();
33 
34  // Printing interface (human readable)
35  virtual void printMultiline(std::ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
36 
37 protected:
38 
39  void initialize(const char* catTypeName=0) ;
40 
41  RooRealProxy _inputVar ; // Input variable that is mapped
42  TString _bname ; // Name of the binning specification to be used to perform the mapping
43 
44  virtual RooCatType evaluate() const ;
45 
46  ClassDef(RooBinningCategory,1) // RealVar-to-Category function defined by bin boundaries on input var
47 };
48 
49 #endif
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print info about this threshold category to the specified stream.
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual RooCatType evaluate() const
Calculate and return the value of the mapping function.
#define ClassDef(name, id)
Definition: Rtypes.h:320
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
Definition: RooCatType.h:22
virtual TObject * clone(const char *newname) const
Class RooBinningCategory provides a real-to-category mapping defined by a series of thresholds...
void initialize(const char *catTypeName=0)
Iterator over all bins in input variable and define corresponding state labels.
const Bool_t kFALSE
Definition: RtypesCore.h:88
Mother of all ROOT objects.
Definition: TObject.h:37
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
char name[80]
Definition: TGX11.cxx:109
virtual ~RooBinningCategory()
Destructor.