gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
Gambit::ColliderBit::SignalRegionData Struct Reference

A simple container for the result of one signal region from one analysis. More...

#include <AnalysisData.hpp>

Collaboration diagram for Gambit::ColliderBit::SignalRegionData:

Public Member Functions

 SignalRegionData (const EventCounter &scounter, double nobs, const std::pair< double, double > &nbkg, double nsigscaled=0)
 Constructor with EventCounter arg for the signal count and SR name. More...
 
 SignalRegionData (const std::string &sr, double nobs, const EventCounter &scounter, const std::pair< double, double > &nbkg, double nsigscaled=0)
 Constructor with EventCounter arg for the signal count, but separate name. More...
 
 SignalRegionData (const std::string &sr, double nobs, const std::pair< double, double > &nsigMC, const std::pair< double, double > &nbkg, double nsigscaled=0)
 Constructor with {n,nsys} pair args. More...
 
 SignalRegionData (const std::string &sr, double nobs, double nsigMC, double nbkg, double nsigMCsys, double nbkgerr, double nsigscaled=0)
 Constructor with separate n & nsys args. More...
 
 SignalRegionData ()
 Default constructor. More...
 
bool check () const
 Consistency check. More...
 
double scalefactor () const
 Uncertainty calculators. More...
 
double calc_n_sig_MC_stat () const
 
double calc_n_sig_MC_err () const
 
double calc_n_sig_scaled_stat () const
 
double calc_n_sig_scaled_sys () const
 
double calc_n_sig_scaled_err () const
 
double calc_n_sigbkg_err () const
 

Public Attributes

Signal region specification
std::string sr_label
 A label for the particular signal region of the analysis. More...
 
Signal region data
double n_obs = 0
 The number of events passing selection for this signal region as reported by the experiment. More...
 
double n_sig_MC = 0
 The number of simulated model events passing selection for this signal region. More...
 
double n_sig_scaled = 0
 n_sig_MC, scaled to luminosity * cross-section More...
 
double n_bkg = 0
 The number of standard model events expected to pass the selection for this signal region, as reported by the experiment. More...
 
double n_sig_MC_sys = 0
 The absolute systematic error of n_sig_MC. More...
 
double n_bkg_err = 0
 The absolute error of n_bkg. More...
 

Detailed Description

A simple container for the result of one signal region from one analysis.

Definition at line 57 of file AnalysisData.hpp.

Constructor & Destructor Documentation

◆ SignalRegionData() [1/5]

Gambit::ColliderBit::SignalRegionData::SignalRegionData ( const EventCounter scounter,
double  nobs,
const std::pair< double, double > &  nbkg,
double  nsigscaled = 0 
)
inline

Constructor with EventCounter arg for the signal count and SR name.

Definition at line 61 of file AnalysisData.hpp.

64  : SignalRegionData(scounter.name(), nobs, scounter.weight_sum(), nbkg.first, scounter.weight_sum_err(), nbkg.second, nsigscaled)
65  {}
SignalRegionData()
Default constructor.

◆ SignalRegionData() [2/5]

Gambit::ColliderBit::SignalRegionData::SignalRegionData ( const std::string &  sr,
double  nobs,
const EventCounter scounter,
const std::pair< double, double > &  nbkg,
double  nsigscaled = 0 
)
inline

Constructor with EventCounter arg for the signal count, but separate name.

Definition at line 68 of file AnalysisData.hpp.

71  : SignalRegionData(sr, nobs, scounter.weight_sum(), nbkg.first, scounter.weight_sum_err(), nbkg.second, nsigscaled)
72  {}
SignalRegionData()
Default constructor.

◆ SignalRegionData() [3/5]

Gambit::ColliderBit::SignalRegionData::SignalRegionData ( const std::string &  sr,
double  nobs,
const std::pair< double, double > &  nsigMC,
const std::pair< double, double > &  nbkg,
double  nsigscaled = 0 
)
inline

Constructor with {n,nsys} pair args.

Definition at line 75 of file AnalysisData.hpp.

78  : SignalRegionData(sr, nobs, nsigMC.first, nbkg.first, nsigMC.second, nbkg.second, nsigscaled)
79  {}
SignalRegionData()
Default constructor.

◆ SignalRegionData() [4/5]

Gambit::ColliderBit::SignalRegionData::SignalRegionData ( const std::string &  sr,
double  nobs,
double  nsigMC,
double  nbkg,
double  nsigMCsys,
double  nbkgerr,
double  nsigscaled = 0 
)
inline

Constructor with separate n & nsys args.

Definition at line 82 of file AnalysisData.hpp.

85  : sr_label(sr),
86  n_obs(nobs), n_sig_MC(nsigMC), n_sig_scaled(nsigscaled), n_bkg(nbkg),
87  n_sig_MC_sys(nsigMCsys), n_bkg_err(nbkgerr)
88  {}
double n_sig_MC
The number of simulated model events passing selection for this signal region.
double n_bkg_err
The absolute error of n_bkg.
double n_bkg
The number of standard model events expected to pass the selection for this signal region...
double n_obs
The number of events passing selection for this signal region as reported by the experiment.
std::string sr_label
A label for the particular signal region of the analysis.
double n_sig_MC_sys
The absolute systematic error of n_sig_MC.
double n_sig_scaled
n_sig_MC, scaled to luminosity * cross-section

◆ SignalRegionData() [5/5]

Gambit::ColliderBit::SignalRegionData::SignalRegionData ( )
inline

Default constructor.

Definition at line 91 of file AnalysisData.hpp.

91 {}

Member Function Documentation

◆ calc_n_sig_MC_err()

double Gambit::ColliderBit::SignalRegionData::calc_n_sig_MC_err ( ) const
inline

Definition at line 105 of file AnalysisData.hpp.

References calc_n_sig_MC_stat(), and n_sig_MC_sys.

Referenced by calc_n_sig_scaled_err().

106  {
107  double n_sig_MC_stat = calc_n_sig_MC_stat();
108  return sqrt( n_sig_MC_stat * n_sig_MC_stat + n_sig_MC_sys * n_sig_MC_sys );
109  }
double n_sig_MC_sys
The absolute systematic error of n_sig_MC.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_n_sig_MC_stat()

double Gambit::ColliderBit::SignalRegionData::calc_n_sig_MC_stat ( ) const
inline

Definition at line 103 of file AnalysisData.hpp.

References n_sig_MC.

Referenced by calc_n_sig_MC_err(), and calc_n_sig_scaled_stat().

103 { return sqrt(n_sig_MC); }
double n_sig_MC
The number of simulated model events passing selection for this signal region.
Here is the caller graph for this function:

◆ calc_n_sig_scaled_err()

double Gambit::ColliderBit::SignalRegionData::calc_n_sig_scaled_err ( ) const
inline

Definition at line 115 of file AnalysisData.hpp.

References calc_n_sig_MC_err(), and scalefactor().

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), Gambit::ColliderBit::calc_LHC_signals(), calc_n_sigbkg_err(), and main().

115 { return scalefactor() * calc_n_sig_MC_err(); }
double scalefactor() const
Uncertainty calculators.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_n_sig_scaled_stat()

double Gambit::ColliderBit::SignalRegionData::calc_n_sig_scaled_stat ( ) const
inline

Definition at line 111 of file AnalysisData.hpp.

References calc_n_sig_MC_stat(), and scalefactor().

111 { return scalefactor() * calc_n_sig_MC_stat(); }
double scalefactor() const
Uncertainty calculators.
Here is the call graph for this function:

◆ calc_n_sig_scaled_sys()

double Gambit::ColliderBit::SignalRegionData::calc_n_sig_scaled_sys ( ) const
inline

Definition at line 113 of file AnalysisData.hpp.

References n_sig_MC_sys, and scalefactor().

113 { return scalefactor() * n_sig_MC_sys; }
double scalefactor() const
Uncertainty calculators.
double n_sig_MC_sys
The absolute systematic error of n_sig_MC.
Here is the call graph for this function:

◆ calc_n_sigbkg_err()

double Gambit::ColliderBit::SignalRegionData::calc_n_sigbkg_err ( ) const
inline

Definition at line 117 of file AnalysisData.hpp.

References calc_n_sig_scaled_err(), and n_bkg_err.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes().

118  {
119  double n_sig_scaled_err = calc_n_sig_scaled_err();
120  return sqrt( n_sig_scaled_err * n_sig_scaled_err + n_bkg_err * n_bkg_err );
121  }
double n_bkg_err
The absolute error of n_bkg.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check()

bool Gambit::ColliderBit::SignalRegionData::check ( ) const
inline

Consistency check.

Definition at line 94 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::AnalysisData::add(), and Gambit::ColliderBit::AnalysisData::AnalysisData().

94  {
95  bool consistent = true;
97  return consistent;
98  }
Here is the caller graph for this function:

◆ scalefactor()

double Gambit::ColliderBit::SignalRegionData::scalefactor ( ) const
inline

Uncertainty calculators.

Definition at line 101 of file AnalysisData.hpp.

References n_sig_MC, and n_sig_scaled.

Referenced by calc_n_sig_scaled_err(), calc_n_sig_scaled_stat(), and calc_n_sig_scaled_sys().

101 { return n_sig_MC == 0 ? 1 : n_sig_scaled / n_sig_MC; }
double n_sig_MC
The number of simulated model events passing selection for this signal region.
double n_sig_scaled
n_sig_MC, scaled to luminosity * cross-section
Here is the caller graph for this function:

Member Data Documentation

◆ n_bkg

double Gambit::ColliderBit::SignalRegionData::n_bkg = 0

The number of standard model events expected to pass the selection for this signal region, as reported by the experiment.

Definition at line 135 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), and main().

◆ n_bkg_err

double Gambit::ColliderBit::SignalRegionData::n_bkg_err = 0

The absolute error of n_bkg.

Definition at line 137 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), calc_n_sigbkg_err(), and main().

◆ n_obs

double Gambit::ColliderBit::SignalRegionData::n_obs = 0

The number of events passing selection for this signal region as reported by the experiment.

Definition at line 132 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), and main().

◆ n_sig_MC

double Gambit::ColliderBit::SignalRegionData::n_sig_MC = 0

The number of simulated model events passing selection for this signal region.

Definition at line 133 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::AnalysisData::add(), Gambit::ColliderBit::calc_LHC_LogLikes(), calc_n_sig_MC_stat(), and scalefactor().

◆ n_sig_MC_sys

double Gambit::ColliderBit::SignalRegionData::n_sig_MC_sys = 0

The absolute systematic error of n_sig_MC.

Definition at line 136 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), calc_n_sig_MC_err(), and calc_n_sig_scaled_sys().

◆ n_sig_scaled

double Gambit::ColliderBit::SignalRegionData::n_sig_scaled = 0

n_sig_MC, scaled to luminosity * cross-section

Definition at line 134 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::calc_LHC_LogLikes(), Gambit::ColliderBit::calc_LHC_signals(), main(), and scalefactor().

◆ sr_label

std::string Gambit::ColliderBit::SignalRegionData::sr_label

A label for the particular signal region of the analysis.

Definition at line 127 of file AnalysisData.hpp.

Referenced by Gambit::ColliderBit::AnalysisData::add(), Gambit::ColliderBit::calc_LHC_LogLikes(), Gambit::ColliderBit::calc_LHC_signals(), and main().


The documentation for this struct was generated from the following file: