Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:16

0001 /// \cond ROOFIT_INTERNAL
0002 
0003 /*****************************************************************************
0004  * Project: RooFit                                                           *
0005  * Package: RooFitCore                                                       *
0006  *    File: $Id: RooCategorySharedProperties.h,v 1.2 2007/05/11 09:11:30 verkerke Exp $
0007  * Authors:                                                                  *
0008  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0009  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0010  *                                                                           *
0011  * Copyright (c) 2000-2005, Regents of the University of California          *
0012  *                          and Stanford University. All rights reserved.    *
0013  *                                                                           *
0014  * Redistribution and use in source and binary forms,                        *
0015  * with or without modification, are permitted according to the terms        *
0016  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0017  *****************************************************************************/
0018 
0019 /**
0020 \file RooCategorySharedProperties.h
0021 \class RooCategorySharedProperties
0022 \ingroup Roofitcore
0023 
0024 Container for all properties
0025 that are shared between instance of RooCategory objects that
0026 are clones of each other. At present the only property that is
0027 shared in this way is the list of alternate named range definitions
0028 **/
0029 
0030 #ifndef ROO_CATEGORY_SHARED_PROPERTY
0031 #define ROO_CATEGORY_SHARED_PROPERTY
0032 
0033 #include "RooSharedProperties.h"
0034 #include "RooLinkedList.h"
0035 
0036 class RooCategorySharedProperties : public RooSharedProperties {
0037 public:
0038 
0039   /// Constructor.
0040   RooCategorySharedProperties() {}
0041   /// Constructor with unique-id string.
0042   RooCategorySharedProperties(const char* uuidstr) : RooSharedProperties(uuidstr) {}
0043   /// Destructor.
0044   ~RooCategorySharedProperties() override {
0045     _altRanges.Delete() ;
0046   }
0047 
0048 protected:
0049 
0050   friend class RooCategory ;
0051 
0052   RooLinkedList _altRanges ;  ///< Optional alternative ranges
0053 
0054   ClassDefOverride(RooCategorySharedProperties,1) // Shared properties of a RooCategory clone set
0055 };
0056 
0057 
0058 #endif
0059 
0060 /// \endcond