Logo ROOT   master
Reference Guide
RooRealVarSharedProperties.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooRealVarSharedProperties.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $
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_REAL_VAR_SHARED_PROPERTY
17 #define ROO_REAL_VAR_SHARED_PROPERTY
18 
19 #include "TObject.h"
20 #include "RooSharedProperties.h"
21 #include "RooLinkedList.h"
22 
24 public:
25 
28  RooRealVarSharedProperties(const char* uuidstr) ;
29  virtual ~RooRealVarSharedProperties() ;
30  void disownBinnings() {
31  _ownBinnings = false;
32  }
33 
35  auto tmp = new RooRealVarSharedProperties(*this);
36  tmp->disownBinnings();
37  return tmp;
38  }
39 
40 protected:
41 
42  friend class RooRealVar ;
43 
44  RooLinkedList _altBinning ; // Optional alternative ranges and binnings
45  bool _ownBinnings{true}; //!
46  ClassDef(RooRealVarSharedProperties,1) // Shared properties of a RooRealVar clone set
47 };
48 
49 
50 #endif
RooRealVarSharedProperties()
Default constructor.
#define ClassDef(name, id)
Definition: Rtypes.h:322
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:35
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...
Class RooRealVarSharedProperties is an implementation of RooSharedProperties that stores the properti...
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:35
virtual ~RooRealVarSharedProperties()
Destructor.