Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Asimov.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: George Lewis, Kyle Cranmer
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef HISTFACTORY_ASIMOV_H
12#define HISTFACTORY_ASIMOV_H
13
14#include <string>
15#include <map>
16
17#include "RooWorkspace.h"
18
19namespace RooStats{
20 namespace HistFactory {
21
22 class Asimov {
23
24 public:
25
26 Asimov() {;}
27 Asimov(std::string Name) : fName(Name) {;}
28
30
31 std::string GetName() { return fName; }
32 void SetName(const std::string& name) { fName = name; }
33
34 void SetFixedParam(const std::string& param, bool constant=true) { fParamsToFix[param] = constant; }
35 void SetParamValue(const std::string& param, double value) { fParamValsToSet[param] = value; }
36
37 std::map< std::string, bool >& GetParamsToFix() { return fParamsToFix; }
38 std::map< std::string, double >& GetParamsToSet() { return fParamValsToSet; }
39
40 protected:
41
42 std::string fName;
43
44 std::map<std::string, bool> fParamsToFix;
45 std::map< std::string, double > fParamValsToSet;
46
47 };
48
49
50 } // namespace HistFactory
51} // namespace RooStats
52
53#endif
char name[80]
Definition TGX11.cxx:110
TODO Here, we are missing some documentation.
Definition Asimov.h:22
void SetName(const std::string &name)
Definition Asimov.h:32
void SetParamValue(const std::string &param, double value)
Definition Asimov.h:35
std::map< std::string, double > fParamValsToSet
Definition Asimov.h:45
Asimov(std::string Name)
Definition Asimov.h:27
std::map< std::string, double > & GetParamsToSet()
Definition Asimov.h:38
void ConfigureWorkspace(RooWorkspace *)
Definition Asimov.cxx:22
std::map< std::string, bool > fParamsToFix
Definition Asimov.h:44
void SetFixedParam(const std::string &param, bool constant=true)
Definition Asimov.h:34
std::map< std::string, bool > & GetParamsToFix()
Definition Asimov.h:37
The RooWorkspace is a persistable container for RooFit projects.
Namespace for the RooStats classes.
Definition Asimov.h:19