Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooCategorySharedProperties.h
Go to the documentation of this file.
1/// \cond ROOFIT_INTERNAL
2
3/*****************************************************************************
4 * Project: RooFit *
5 * Package: RooFitCore *
6 * File: $Id: RooCategorySharedProperties.h,v 1.2 2007/05/11 09:11:30 verkerke Exp $
7 * Authors: *
8 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
9 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
10 * *
11 * Copyright (c) 2000-2005, Regents of the University of California *
12 * and Stanford University. All rights reserved. *
13 * *
14 * Redistribution and use in source and binary forms, *
15 * with or without modification, are permitted according to the terms *
16 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
17 *****************************************************************************/
18
19/**
20\file RooCategorySharedProperties.h
21\class RooCategorySharedProperties
22\ingroup Roofitcore
23
24Container for all properties
25that are shared between instance of RooCategory objects that
26are clones of each other. At present the only property that is
27shared in this way is the list of alternate named range definitions
28**/
29
30#ifndef ROO_CATEGORY_SHARED_PROPERTY
31#define ROO_CATEGORY_SHARED_PROPERTY
32
33#include "RooSharedProperties.h"
34#include "RooLinkedList.h"
35
36class RooCategorySharedProperties : public RooSharedProperties {
37public:
38
39 /// Constructor.
40 RooCategorySharedProperties() {}
41 /// Constructor with unique-id string.
42 RooCategorySharedProperties(const char* uuidstr) : RooSharedProperties(uuidstr) {}
43 /// Destructor.
44 ~RooCategorySharedProperties() override {
45 _altRanges.Delete() ;
46 }
47
48protected:
49
50 friend class RooCategory ;
51
52 RooLinkedList _altRanges ; ///< Optional alternative ranges
53
54 ClassDefOverride(RooCategorySharedProperties,1) // Shared properties of a RooCategory clone set
55};
56
57
58#endif
59
60/// \endcond
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Object to represent discrete states.
Definition RooCategory.h:28
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...
virtual void Delete(Option_t *option="")
Delete this object.
Definition TObject.cxx:266