Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:54:48

0001 // @(#)root/roostats:$Id$
0002 // Author: George Lewis, Kyle Cranmer
0003 /*************************************************************************
0004  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef HISTFACTORY_ASIMOV_H
0012 #define HISTFACTORY_ASIMOV_H
0013 
0014 #include <string>
0015 #include <map>
0016 
0017 #include "RooWorkspace.h"
0018 
0019 namespace RooStats{
0020   namespace HistFactory {
0021 
0022     class Asimov {
0023 
0024     public:
0025 
0026       Asimov() {;}
0027       Asimov(std::string Name) : fName(Name) {;}
0028 
0029       void ConfigureWorkspace( RooWorkspace* );
0030 
0031       std::string GetName() { return fName; }
0032       void SetName(const std::string& name) { fName = name; }
0033 
0034       void SetFixedParam(const std::string& param, bool constant=true) { fParamsToFix[param] = constant; }
0035       void SetParamValue(const std::string& param, double value) { fParamValsToSet[param] = value; }
0036 
0037       std::map< std::string, bool >& GetParamsToFix() { return fParamsToFix; }
0038       std::map< std::string, double >& GetParamsToSet() { return fParamValsToSet; }
0039 
0040     protected:
0041 
0042       std::string fName;
0043 
0044       std::map<std::string, bool> fParamsToFix;
0045       std::map< std::string, double > fParamValsToSet;
0046 
0047     };
0048 
0049 
0050   } // namespace HistFactory
0051 } // namespace RooStats
0052 
0053 #endif