CombineHarvester
ch::Process Class Reference

#include "/afs/cern.ch/user/a/agilbert/CMSSW_14_1_0_pre4/src/CombineHarvester/CombineTools/interface/Process.h"

+ Inheritance diagram for ch::Process:

Public Member Functions

 Process ()
 
 ~Process ()
 
 Process (Process const &other)
 
 Process (Process &&other)
 
Processoperator= (Process other)
 
void set_rate (double const &rate)
 
double rate () const
 
double no_norm_rate () const
 Get the process normalisation without multiplying by the RooAbsReal value (in the case that it's present) More...
 
void set_shape (std::unique_ptr< TH1 > shape, bool set_rate)
 
void set_shape (TH1 const &shape, bool set_rate)
 
TH1 const * shape () const
 
std::unique_ptr< TH1 > ClonedShape () const
 
std::unique_ptr< TH1 > ClonedScaledShape () const
 
TH1F ShapeAsTH1F () const
 
void set_pdf (RooAbsReal *pdf)
 
RooAbsReal const * pdf () const
 
void set_data (RooAbsData *data)
 
RooAbsData const * data () const
 
void set_norm (RooAbsReal *norm)
 
RooAbsReal const * norm () const
 
void set_observable (RooRealVar *obs)
 
RooRealVar * observable () const
 
std::string to_string () const
 
- Public Member Functions inherited from ch::Object
 Object ()
 
virtual ~Object ()
 
 Object (Object const &other)
 
 Object (Object &&other)
 
Objectoperator= (Object other)
 
virtual void set_bin (std::string const &bin)
 
virtual std::string const & bin () const
 
virtual void set_process (std::string const &process)
 
virtual std::string const & process () const
 
void set_signal (bool const &signal)
 
bool signal () const
 
virtual void set_analysis (std::string const &analysis)
 
virtual std::string const & analysis () const
 
virtual void set_era (std::string const &era)
 
virtual std::string const & era () const
 
virtual void set_channel (std::string const &channel)
 
virtual std::string const & channel () const
 
virtual void set_bin_id (int const &bin_id)
 
virtual int bin_id () const
 
virtual void set_mass (std::string const &mass)
 
virtual std::string const & mass () const
 
virtual void set_attribute (std::string const &attr_label, std::string const &attr_value)
 
virtual void delete_attribute (std::string const &attr_label)
 
virtual void set_all_attributes (std::map< std::string, std::string > const &attrs_)
 
virtual std::map< std::string, std::string > const & all_attributes () const
 
virtual std::string const attribute (std::string const &attr_label) const
 

Static Public Member Functions

static std::ostream & PrintHeader (std::ostream &out)
 

Friends

std::ostream & operator<< (std::ostream &out, Process const &val)
 
void swap (Process &first, Process &second)
 

Detailed Description

Definition at line 15 of file Process.h.

Constructor & Destructor Documentation

◆ Process() [1/3]

ch::Process::Process ( )

Definition at line 21 of file Process.cc.

◆ ~Process()

ch::Process::~Process ( )

Definition at line 32 of file Process.cc.

◆ Process() [2/3]

ch::Process::Process ( Process const &  other)

Definition at line 48 of file Process.cc.

◆ Process() [3/3]

ch::Process::Process ( Process &&  other)

Definition at line 64 of file Process.cc.

Member Function Documentation

◆ operator=()

Process & ch::Process::operator= ( Process  other)

Definition at line 76 of file Process.cc.

◆ set_rate()

void ch::Process::set_rate ( double const &  rate)
inline

Definition at line 24 of file Process.h.

◆ rate()

double ch::Process::rate ( ) const
inline

Definition at line 25 of file Process.h.

◆ no_norm_rate()

double ch::Process::no_norm_rate ( ) const
inline

Get the process normalisation without multiplying by the RooAbsReal value (in the case that it's present)

Generally this isn't a very useful method, it just returns the value of the rate class member without multipling by the RooAbsReal term. If the process has a RooAbsReal attached then this is often an (or the) important part of determining the total process normalisation. One place this is useful is writing the rate into the text datacard.

Definition at line 46 of file Process.h.

◆ set_shape() [1/2]

void ch::Process::set_shape ( std::unique_ptr< TH1 >  shape,
bool  set_rate 
)

Definition at line 81 of file Process.cc.

◆ set_shape() [2/2]

void ch::Process::set_shape ( TH1 const &  shape,
bool  set_rate 
)

Definition at line 105 of file Process.cc.

◆ shape()

TH1 const* ch::Process::shape ( ) const
inline

Definition at line 52 of file Process.h.

◆ ClonedShape()

std::unique_ptr< TH1 > ch::Process::ClonedShape ( ) const

Definition at line 110 of file Process.cc.

◆ ClonedScaledShape()

std::unique_ptr< TH1 > ch::Process::ClonedScaledShape ( ) const

Definition at line 117 of file Process.cc.

◆ ShapeAsTH1F()

TH1F ch::Process::ShapeAsTH1F ( ) const

Definition at line 124 of file Process.cc.

◆ set_pdf()

void ch::Process::set_pdf ( RooAbsReal *  pdf)
inline

Definition at line 59 of file Process.h.

◆ pdf()

RooAbsReal const* ch::Process::pdf ( ) const
inline

Definition at line 60 of file Process.h.

◆ set_data()

void ch::Process::set_data ( RooAbsData *  data)
inline

Definition at line 62 of file Process.h.

◆ data()

RooAbsData const* ch::Process::data ( ) const
inline

Definition at line 63 of file Process.h.

◆ set_norm()

void ch::Process::set_norm ( RooAbsReal *  norm)
inline

Definition at line 65 of file Process.h.

◆ norm()

RooAbsReal const* ch::Process::norm ( ) const
inline

Definition at line 66 of file Process.h.

◆ set_observable()

void ch::Process::set_observable ( RooRealVar *  obs)
inline

Definition at line 68 of file Process.h.

◆ observable()

RooRealVar* ch::Process::observable ( ) const
inline

Definition at line 69 of file Process.h.

◆ to_string()

std::string ch::Process::to_string ( ) const

Definition at line 166 of file Process.cc.

◆ PrintHeader()

std::ostream & ch::Process::PrintHeader ( std::ostream &  out)
static

Definition at line 153 of file Process.cc.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
Process const &  val 
)
friend

Definition at line 170 of file Process.cc.

◆ swap

void swap ( Process first,
Process second 
)
friend

Definition at line 36 of file Process.cc.


The documentation for this class was generated from the following files: