Logo ROOT  
Reference Guide
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
17#include "TFile.h"
18
22#include "RooWorkspace.h"
24#include "RooDataSet.h"
25
26
27namespace RooStats{
28 namespace HistFactory{
29
30 std::vector<EstimateSummary>* loadSavedInputs(TFile* outFile, std::string channel );
31
32 void saveInputs(TFile* outFile, std::string channel, std::vector<EstimateSummary> summaries);
33
34 TH1 * GetHisto( TFile * inFile, const std::string name );
35
36 TH1 * GetHisto( const std::string file, const std::string path, const std::string obj );
37
38 bool AddSummaries( std::vector<EstimateSummary> & summary, std::vector<std::vector<EstimateSummary> > &master);
39
40 std::vector<std::pair<std::string, std::string> > get_comb(std::vector<std::string> names);
41
42 void AddSubStrings( std::vector<std::string> & vs, std::string s);
43
44 std::vector<std::string> GetChildrenFromString( std::string str );
45
46 //void AddStringValPairToMap( std::map<std::string, double>& map, double val, std::string children);
47
48 std::vector<EstimateSummary> GetChannelEstimateSummaries(Measurement& measurement, Channel& channel);
49
50
51 void AddParamsToAsimov( RooStats::HistFactory::Asimov& asimov, std::string str );
52
53 /*
54 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);
55 void unfoldConstraints(RooArgSet& initial, RooArgSet& final, RooArgSet& obs, RooArgSet& nuis, int& counter);
56 */
57
58 }
59}
60
61#endif
char name[80]
Definition: TGX11.cxx:109
TODO Here, we are missing some documentation.
Definition: Asimov.h:22
This class encapsulates all information for the statistical interpretation of one experiment.
Definition: Channel.h:29
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
Definition: Measurement.h:30
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:53
The TH1 histogram class.
Definition: TH1.h:56
@ HistFactory
Definition: RooGlobalFunc.h:69
vector< EstimateSummary > * loadSavedInputs(TFile *outFile, std::string channel)
Definition: Helper.cxx:49
std::vector< RooStats::HistFactory::EstimateSummary > GetChannelEstimateSummaries(RooStats::HistFactory::Measurement &measurement, RooStats::HistFactory::Channel &channel)
Definition: Helper.cxx:257
vector< pair< std::string, std::string > > get_comb(vector< std::string > names)
Definition: Helper.cxx:38
bool AddSummaries(std::vector< EstimateSummary > &summary, std::vector< std::vector< EstimateSummary > > &master)
void AddSubStrings(vector< std::string > &vs, std::string s)
Definition: Helper.cxx:165
TH1 * GetHisto(TFile *inFile, const std::string name)
Definition: Helper.cxx:115
void saveInputs(TFile *outFile, std::string channel, vector< EstimateSummary > summaries)
Definition: Helper.cxx:79
std::vector< std::string > GetChildrenFromString(std::string str)
Definition: Helper.cxx:179
void AddParamsToAsimov(RooStats::HistFactory::Asimov &asimov, std::string str)
Definition: Helper.cxx:199
Namespace for the RooStats classes.
Definition: Asimov.h:19
static constexpr double s
Definition: file.py:1