// @(#)root/roostats:$Id: cranmer $ // Author: Kyle Cranmer, Akira Shibata /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOSTATS_HELPER #define ROOSTATS_HELPER #include #include #include #include "TFile.h" #include "RooStats/HistFactory/EstimateSummary.h" #include "RooStats/HistFactory/Measurement.h" #include "RooStats/HistFactory/HistFactoryException.h" #include "RooWorkspace.h" #include "RooStats/ModelConfig.h" #include "RooDataSet.h" namespace RooStats{ namespace HistFactory{ std::vector* loadSavedInputs(TFile* outFile, std::string channel ); void saveInputs(TFile* outFile, std::string channel, std::vector summaries); TH1 * GetHisto( TFile * inFile, const std::string name ); TH1 * GetHisto( const std::string file, const std::string path, const std::string obj ); bool AddSummaries( std::vector & summary, std::vector > &master); std::vector > get_comb(std::vector names); void AddSubStrings( std::vector & vs, std::string s); std::vector GetChildrenFromString( std::string str ); //void AddStringValPairToMap( std::map& map, double val, std::string children); std::vector GetChannelEstimateSummaries(Measurement& measurement, Channel& channel); void AddParamsToAsimov( RooStats::HistFactory::Asimov& asimov, std::string str ); /* 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); void unfoldConstraints(RooArgSet& initial, RooArgSet& final, RooArgSet& obs, RooArgSet& nuis, int& counter); */ } } #endif