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 
25 class RooAbsBinning;
26 
28 public:
29 
32  RooRealVarSharedProperties(const char* uuidstr) ;
33  virtual ~RooRealVarSharedProperties() ;
34  void disownBinnings() {
35  _ownBinnings = false;
36  }
37 
39  auto tmp = new RooRealVarSharedProperties(*this);
40  tmp->disownBinnings();
41  return tmp;
42  }
43 
44 protected:
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
RooRealVarSharedProperties
Class RooRealVarSharedProperties is an implementation of RooSharedProperties that stores the properti...
Definition: RooRealVarSharedProperties.h:27
RooRealVarSharedProperties::RooRealVarSharedProperties
RooRealVarSharedProperties()
Default constructor.
Definition: RooRealVarSharedProperties.cxx:43
RooRealVarSharedProperties::_ownBinnings
bool _ownBinnings
Definition: RooRealVarSharedProperties.h:49
RooRealVarSharedProperties::_altBinning
std::unordered_map< std::string, RooAbsBinning * > _altBinning
Definition: RooRealVarSharedProperties.h:48
RooSharedProperties
Class RooSharedProperties is the base class for shared properties that can be stored in RooSharedProp...
Definition: RooSharedProperties.h:23
RooRealVarSharedProperties::disownBinnings
void disownBinnings()
Definition: RooRealVarSharedProperties.h:34
RooRealVarSharedProperties::~RooRealVarSharedProperties
virtual ~RooRealVarSharedProperties()
Destructor.
Definition: RooRealVarSharedProperties.cxx:71
RooAbsBinning
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
Definition: RooAbsBinning.h:26
RooRealVarSharedProperties::clone
RooSharedProperties * clone()
Definition: RooRealVarSharedProperties.h:38
RooSharedProperties.h
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:37