Logo ROOT  
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 "RooSharedProperties.h"
20
21#include <memory>
22#include <unordered_map>
23#include <string>
24
25class RooAbsBinning;
26
28public:
29
32 RooRealVarSharedProperties(const char* uuidstr) ;
35 _ownBinnings = false;
36 }
37
39 auto tmp = new RooRealVarSharedProperties(*this);
40 tmp->disownBinnings();
41 return tmp;
42 }
43
44protected:
45
46 friend class RooRealVar ;
47
48 std::unordered_map<std::string,RooAbsBinning*> _altBinning ; // Optional alternative ranges and binnings
49 bool _ownBinnings{true}; //!
50 ClassDef(RooRealVarSharedProperties,2) // Shared properties of a RooRealVar clone set
51};
52
53
54#endif
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
Definition: RooAbsBinning.h:26
Class RooRealVarSharedProperties is an implementation of RooSharedProperties that stores the properti...
std::unordered_map< std::string, RooAbsBinning * > _altBinning
RooRealVarSharedProperties()
Default constructor.
virtual ~RooRealVarSharedProperties()
Destructor.
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:39
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...