35    if(verbose) std::cout << 
"Getting the RooRealSumPdf for the channel: " 
   47    std::unique_ptr<RooArgSet> components{
sim_channel->getComponents()};
 
   58   std::cout << 
"Failed to find RooRealSumPdf for channel: " << 
sim_channel->GetName() << std::endl;
 
   65      if(verbose) std::cout << 
"Found RooRealSumPdf: " << 
sum_pdf->GetName() << std::endl;
 
 
   76   const std::type_info & 
id = 
typeid(pdf);
 
   80      for (
int i = 0, 
n = list.size(); i < 
n; ++i) {
 
   87         for (
int ic = 0, nc = cat->numBins((
const char *)
nullptr); 
ic < nc; ++
ic) {
 
   94         if (!constraints.
contains(pdf)) constraints.
add(pdf);
 
 
  105    std::unique_ptr<RooArgSet> components{channel->
getComponents()};
 
  109      if( 
NodeClassName != std::string(
"ParamHistFunc") ) 
continue;
 
  110      if( 
NodeName.find(
"mc_stat_") != std::string::npos ) {
 
  117      if(verbose) std::cout << 
"Failed to find ParamHistFunc for channel: " << channel->
GetName() << std::endl;
 
 
  139    for (
auto* temp : *
data->get()) {
 
  140      if( 
strcmp(temp->ClassName(),
"RooCategory")==0){
 
  146      if(!cat) std::cout <<
"didn't find category"<< std::endl;
 
  147      else std::cout <<
"found category"<< std::endl;
 
  151       std::cerr <<
"Category not found"<< std::endl;
 
  169      if(verbose) std::cout << 
"Getting data for channel: " << 
ChannelName << std::endl;
 
  178      if(verbose) obs->
Print();
 
  193      for (
int i = 0; i < 
dataForChan->numEntries(); i++) {
 
  199           std::cout << 
"n" << i << 
" = " << 
n << std::endl;
 
 
  226        if( 
TermName.find(
"_constraint")!=std::string::npos ) {
 
  234      std::cout << 
"Error: Couldn't find constraint term for parameter: " << 
gamma_stat->GetName()
 
  235      << 
" among constraints: " << constraints->
GetName() <<  std::endl;
 
  236      constraints->
Print(
"V");
 
  237      throw std::runtime_error(
"Failed to find Gamma ConstraintTerm");
 
  258      if( 
serverName.find(
"nom_")!=std::string::npos ) {
 
  264      std::cout << 
"Error: Did not find Nominal Pois Mean parameter in gamma constraint term PoissonMean: " 
  265      << constraintTerm->
GetName() << std::endl;
 
  266      throw std::runtime_error(
"Failed to find Nom Pois Mean");
 
  269      if(verbose) std::cout << 
"Found Poisson 'data' term: " << 
pois_nom->GetName() << std::endl;
 
  283      std::cout << 
"Error: Did not find PoissonMean parameter in gamma constraint term: " 
  284      << constraintTerm->
GetName() << std::endl;
 
  285      throw std::runtime_error(
"Failed to find PoissonMean");
 
  289      if(verbose) std::cout << 
"Found Poisson 'mean' term: " << 
pois_mean_arg->GetName() << std::endl;
 
  296      if( 
serverName.find(
"_tau")!=std::string::npos ) {
 
  302      std::cout << 
"Error: Did not find Tau parameter in gamma constraint term PoissonMean: " 
  304      throw std::runtime_error(
"Failed to find Tau");
 
  307      if(verbose) std::cout << 
"Found Poisson 'tau' term: " << tau->
GetName() << std::endl;
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
A class which maps the current values of a RooRealVar (or a set of RooRealVars) to one of a number of...
 
Common abstract base class for objects that represent a value and a "shape" in RooFit.
 
void Print(Option_t *options=nullptr) const override
Print the object to the defaultPrintStream().
 
bool dependsOn(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=nullptr, bool valueOnly=false) const
Test whether we depend on (ie, are served by) any object in the specified collection.
 
RooFit::OwningPtr< RooArgSet > getComponents() const
Create a RooArgSet with all components (branch nodes) of the expression tree headed by this object.
 
const RefCountList_t & servers() const
List of all servers of this object.
 
Abstract base class for objects that represent a discrete value that can be set from the outside,...
 
void setBin(Int_t ibin, const char *rangeName=nullptr) override
Set category to i-th fit bin, which is the i-th registered state.
 
bool contains(const RooAbsArg &var) const
Check if collection contains an argument with the same name as var.
 
const char * GetName() const override
Returns name of object.
 
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
 
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
 
Abstract base class for binned and unbinned datasets.
 
Abstract interface for all probability density functions.
 
Abstract base class for objects that represent a real value and implements functionality common to al...
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
Object to represent discrete states.
 
Efficient implementation of a product of PDFs of the form.
 
const RooArgList & pdfList() const
 
Variable that can be changed from the outside.
 
Facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.
 
const char * GetName() const override
Returns name of object.
 
bool getStatUncertaintyFromChannel(RooAbsPdf *channel, ParamHistFunc *¶mfunc, RooArgList *gammaList)
 
void FactorizeHistFactoryPdf(const RooArgSet &, RooAbsPdf &, RooArgList &, RooArgList &)
 
void getDataValuesForObservables(std::map< std::string, std::vector< double > > &ChannelBinDataMap, RooAbsData *data, RooAbsPdf *simPdf)
 
RooAbsPdf * getSumPdfFromChannel(RooAbsPdf *channel)
 
int getStatUncertaintyConstraintTerm(RooArgList *constraints, RooRealVar *gamma_stat, RooAbsReal *&pois_mean, RooRealVar *&tau)
 
std::string channelNameFromPdf(RooAbsPdf *channelPdf)
 
Namespace for the RooStats classes.