CMS 3D CMS Logo

Public Member Functions

GenerateOnly Class Reference

#include <GenerateOnly.h>

Inheritance diagram for GenerateOnly:
LimitAlgo

List of all members.

Public Member Functions

virtual void applyOptions (const boost::program_options::variables_map &vm)
 GenerateOnly ()
virtual const std::string & name () const
virtual bool run (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint)

Detailed Description

Class for generation of toy samples without any actual limit computation

Author:
Luca Lista (INFN)

Definition at line 15 of file GenerateOnly.h.


Constructor & Destructor Documentation

GenerateOnly::GenerateOnly ( )

Definition at line 6 of file GenerateOnly.cc.

                           :
    LimitAlgo("GenerateOnly specific options: none") {
}

Member Function Documentation

void GenerateOnly::applyOptions ( const boost::program_options::variables_map &  vm) [virtual]

Reimplemented from LimitAlgo.

Definition at line 10 of file GenerateOnly.cc.

                                                                           {
}
virtual const std::string& GenerateOnly::name ( void  ) const [inline, virtual]

Implements LimitAlgo.

Definition at line 19 of file GenerateOnly.h.

                                         {
    static const std::string name("GenerateOnly");
    return name;
  }
bool GenerateOnly::run ( RooWorkspace *  w,
RooStats::ModelConfig *  mc_s,
RooStats::ModelConfig *  mc_b,
RooAbsData &  data,
double &  limit,
double &  limitErr,
const double *  hint 
) [virtual]

Implements LimitAlgo.

Definition at line 13 of file GenerateOnly.cc.

References gather_cfg::cout.

                                                                                                                                                                   { 
  if (verbose > 0) {
    std::cout << "generate toy samples only; no limit computation " << std::endl;
  }
  return true;
}