DAS  3.0
Das Analysis System
Observable

Description

Represents an observable that can be unfolded

Idea:

  • use pointers to this abstract class to define observables in daughter classes
  • this class handles everything that doesn't access event data (e.g. the binning)
  • it also gives access to a Filler through getFiller()

This class is used repeatedly by several executables related to the unfolding (nearly all, to the notable exception of unfold itself), as well as in macros used for plotting.

#include <Observable.h>

+ Inheritance diagram for Observable:

Public Member Functions

virtual std::unique_ptr< FillergetFiller (TTreeReader &reader) const
 
virtual std::unique_ptr< TransformergetTransformer (TUnfoldBinning *) const
 
virtual void setLmatrix (const std::unique_ptr< TH1 > &, std::unique_ptr< TH2 > &)
 
virtual ~Observable ()=default
 

Public Attributes

TUnfoldBinning * recBinning
 
TUnfoldBinning * genBinning
 

Static Public Attributes

static bool isMC = false
 
static double maxDR = 0.2
 

Protected Member Functions

 Observable (const char *, const char *)
 

Constructor & Destructor Documentation

◆ ~Observable()

virtual ~Observable ( )
virtualdefault

◆ Observable()

Observable ( const char *  name,
const char *  title 
)
protected

Constructor.

26  :
27  recBinning(new TUnfoldBinning(name)), genBinning(new TUnfoldBinning(name))
28 {
29  cout << "|- Defining " << __func__ << " `" << name << "`." << endl;
30 
31  recBinning->SetTitle(Form("%s (detector level)", title));
32  genBinning->SetTitle(Form("%s (particle level)", title));
33 }

Member Function Documentation

◆ getFiller()

unique_ptr< Filler > getFiller ( TTreeReader &  reader) const
virtual

Constructs a filler for the observable. By default, a dummy filler is returned.

Reimplemented in HTn, ZPtY, MjjYmax, MjjYbYs, PtY, DEtaDPhi, and BF.

73 {
74  cerr << orange << "Warning: the default `Filler' does nothing\n" << def;
75  return make_unique<Filler>();
76 }

◆ getTransformer()

unique_ptr< Transformer > getTransformer ( TUnfoldBinning *  bng) const
virtual

Constructs a filler for the observable. By default, no operation is applied.

Reimplemented in HTn.

83 {
84  return make_unique<Transformer>(bng);
85 }

◆ setLmatrix()

void setLmatrix ( const std::unique_ptr< TH1 > &  ,
std::unique_ptr< TH2 > &   
)
virtual

Construct regularisation matrix.

Reimplemented in HTn, ZPtY, MjjYmax, MjjYbYs, PtY, DEtaDPhi, and BF.

39 {
40  cerr << orange << "Warning: the default L-matrix is empty\n" << def;
41 }

Member Data Documentation

◆ genBinning

TUnfoldBinning * genBinning

particle-level binning

◆ isMC

bool isMC = false
static

flag from metainfo

◆ maxDR

double maxDR = 0.2
static

max Delta R

Todo:
specific to jet analyses

◆ recBinning

TUnfoldBinning* recBinning

detector-level binning


The documentation for this struct was generated from the following files:
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
Ntupliser_cfg.cerr
cerr
Definition: Ntupliser_cfg.py:93
Step::def
static const char * def
Definition: Step.h:36
DAS::Unfolding::Observable::genBinning
TUnfoldBinning * genBinning
particle-level binning
Definition: Observable.h:150
orange
static const char * orange
Definition: colours.h:6
DAS::Unfolding::Observable::recBinning
TUnfoldBinning * recBinning
detector-level binning
Definition: Observable.h:149