CombineHarvester
ch::Observation Class Reference

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

+ Inheritance diagram for ch::Observation:

Public Member Functions

 Observation ()
 
 ~Observation ()
 
 Observation (Observation const &other)
 
 Observation (Observation &&other)
 
Observationoperator= (Observation other)
 
void set_rate (double const &rate)
 
double rate () const
 
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_data (RooAbsData *data)
 
RooAbsData const * data () 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, Observation const &val)
 
void swap (Observation &first, Observation &second)
 

Detailed Description

Definition at line 12 of file Observation.h.

Constructor & Destructor Documentation

◆ Observation() [1/3]

ch::Observation::Observation ( )

Definition at line 23 of file Observation.cc.

◆ ~Observation()

ch::Observation::~Observation ( )

Definition at line 31 of file Observation.cc.

◆ Observation() [2/3]

ch::Observation::Observation ( Observation const &  other)

Definition at line 41 of file Observation.cc.

◆ Observation() [3/3]

ch::Observation::Observation ( Observation &&  other)

Definition at line 53 of file Observation.cc.

Member Function Documentation

◆ operator=()

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

Definition at line 61 of file Observation.cc.

◆ set_rate()

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

Definition at line 20 of file Observation.h.

◆ rate()

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

Definition at line 21 of file Observation.h.

◆ set_shape() [1/2]

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

Definition at line 66 of file Observation.cc.

◆ set_shape() [2/2]

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

Definition at line 90 of file Observation.cc.

◆ shape()

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

Definition at line 27 of file Observation.h.

◆ ClonedShape()

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

Definition at line 94 of file Observation.cc.

◆ ClonedScaledShape()

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

Definition at line 101 of file Observation.cc.

◆ ShapeAsTH1F()

TH1F ch::Observation::ShapeAsTH1F ( ) const

Definition at line 108 of file Observation.cc.

◆ set_data()

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

Definition at line 34 of file Observation.h.

◆ data()

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

Definition at line 35 of file Observation.h.

◆ to_string()

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

Definition at line 140 of file Observation.cc.

◆ PrintHeader()

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

Definition at line 128 of file Observation.cc.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 144 of file Observation.cc.

◆ swap

void swap ( Observation first,
Observation second 
)
friend

Definition at line 33 of file Observation.cc.


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