Mēnsūra
Public Types | Public Member Functions | Static Public Member Functions | List of all members
BTagger Class Reference

A light-weight class to define selection on b-tagging. More...

#include <BTagger.hpp>

Public Types

enum  Algorithm : unsigned { Algorithm::CSV, Algorithm::JP, Algorithm::CMVA }
 Supported b-tagging algorithms. More...
 
enum  WorkingPoint { Tight, Medium, Loose }
 Supported working points for b-tagging algorithms.
 

Public Member Functions

 BTagger (Algorithm algo, WorkingPoint wp)
 Constructor with full initialization.
 
 BTagger (BTagger const &)=default
 Default copy constructor.
 
 BTagger (BTagger &&)=default
 Default move constructor.
 
BTaggeroperator= (BTagger const &)=default
 Default assignment operator.
 
Algorithm GetAlgorithm () const
 Returns the b-tagging algorithm in use.
 
std::string GetTextCode () const
 Returns a string that encodes the algorithm and the working point.
 
WorkingPoint GetWorkingPoint () const
 Returns the working point in use.
 
std::size_t Hash () const
 Hash function to use BTagger in an unordered map.
 
bool operator== (BTagger const &other) const
 Equality operator.
 

Static Public Member Functions

static std::string AlgorithmToTextCode (Algorithm algo)
 Converts algorithm ID to a text code.
 
static constexpr double GetMaxPseudorapidity ()
 Returns maximal jet pseudorapidity for which b-tagging is supported. More...
 
static std::string WorkingPointToTextCode (WorkingPoint wp)
 Converts working point ID to a text code.
 

Detailed Description

A light-weight class to define selection on b-tagging.

The class stores selected b-tagging algorithm and working point. It is strongly recommended to defined b-tagged jets with the help of this class instead of explicit cuts on values of b-tagging disriminators.

Member Enumeration Documentation

enum BTagger::Algorithm : unsigned
strong

Supported b-tagging algorithms.

Enumerator
CSV 

Combined secondary vertex, v2.

JP 

Jet probability.

CMVA 

Combined MVA, v2.

Member Function Documentation

constexpr double BTagger::GetMaxPseudorapidity ( )
static

Returns maximal jet pseudorapidity for which b-tagging is supported.

A very small fraction of jets with larger pseudorapidity can be b-tagged, but they should not be considered as such in an analysis. One reasons is that scale factors are always constrained to |eta| < 2.4.


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