Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
Helper.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id: cranmer $
2 // Author: Kyle Cranmer, Akira Shibata
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 ROOSTATS_HELPER
12 #define ROOSTATS_HELPER
13 
14 #include <string>
15 #include <vector>
16 #include <map>
17 
18 #include "TFile.h"
19 
23 #include "RooWorkspace.h"
24 #include "RooStats/ModelConfig.h"
25 #include "RooDataSet.h"
26 
27 
28 namespace RooStats{
29  namespace HistFactory{
30 
31  std::vector<EstimateSummary>* loadSavedInputs(TFile* outFile, std::string channel );
32 
33  void saveInputs(TFile* outFile, std::string channel, std::vector<EstimateSummary> summaries);
34 
35  TH1 * GetHisto( TFile * inFile, const std::string name );
36 
37  TH1 * GetHisto( const std::string file, const std::string path, const std::string obj );
38 
39  bool AddSummaries( std::vector<EstimateSummary> & summary, std::vector<std::vector<EstimateSummary> > &master);
40 
41  std::vector<std::pair<std::string, std::string> > get_comb(std::vector<std::string> names);
42 
43  void AddSubStrings( std::vector<std::string> & vs, std::string s);
44 
45  std::vector<std::string> GetChildrenFromString( std::string str );
46 
47  //void AddStringValPairToMap( std::map<std::string, double>& map, double val, std::string children);
48 
49  std::vector<EstimateSummary> GetChannelEstimateSummaries(Measurement& measurement, Channel& channel);
50 
51 
52  void AddParamsToAsimov( RooStats::HistFactory::Asimov& asimov, std::string str );
53 
54  /*
55  RooAbsData* makeAsimovData(ModelConfig* mcInWs, bool doConditional, RooWorkspace* combWS, RooAbsPdf* combPdf, RooDataSet* combData, bool b_only, double doMuHat = false, double muVal = -999, bool signalInjection = false, bool doNuisPro = true);
56  void unfoldConstraints(RooArgSet& initial, RooArgSet& final, RooArgSet& obs, RooArgSet& nuis, int& counter);
57  */
58 
59  }
60 }
61 
62 #endif