Mēnsūra
Classes | Public Member Functions | List of all members
BTagEffHistograms Class Reference

Fills histograms that can be used to calculate b-tagging efficiency. More...

#include <BTagEffHistograms.hpp>

Inheritance diagram for BTagEffHistograms:
AnalysisPlugin Plugin

Public Member Functions

 BTagEffHistograms (std::string const &name, BTagger::Algorithm algo, std::list< BTagger::WorkingPoint > const &workingPoints)
 Creates a plugin with the given name and b-tagging configuration.
 
 BTagEffHistograms (BTagger::Algorithm algo, std::list< BTagger::WorkingPoint > const &workingPoints)
 A short-cut for the above version with a default name "BTagEffHistograms".
 
 BTagEffHistograms (BTagEffHistograms const &)=default
 Default copy constructor.
 
 BTagEffHistograms (BTagEffHistograms &&)=default
 Default move constructor.
 
BTagEffHistogramsoperator= (BTagEffHistograms const &)=delete
 Assignment operator is deleted.
 
virtual ~BTagEffHistograms () noexcept
 Trivial destructor.
 
virtual void BeginRun (Dataset const &) override
 Creates histograms for the new dataset. More...
 
virtual PluginClone () const override
 Creates a newly configured clone. More...
 
virtual void EndRun () override
 Clears container with histograms. More...
 
void SetEtaBinning (std::vector< double > const &etaBinning)
 Changes binning in absolute value of pseudorapidity.
 
void SetPtBinning (std::vector< double > const &ptBinning)
 Changes binning in transverse momentum.
 
- Public Member Functions inherited from AnalysisPlugin
 AnalysisPlugin (std::string const &name)
 Constructor.
 
 AnalysisPlugin (AnalysisPlugin const &)=default
 Default copy constructor.
 
 AnalysisPlugin (AnalysisPlugin &&)=default
 Default move constructor.
 
AnalysisPluginoperator= (AnalysisPlugin const &)=default
 Default assignment operator.
 
virtual ~AnalysisPlugin ()
 Trivial destructor.
 
- Public Member Functions inherited from Plugin
 Plugin (std::string const &name)
 Constructor.
 
 Plugin (Plugin const &)=default
 Default copy constructor.
 
 Plugin (Plugin &&)=default
 Default move constructor.
 
Pluginoperator= (Plugin const &)=default
 Default assignment operator.
 
virtual ~Plugin ()
 Trivial destructor.
 
Processor const & GetMaster () const
 Returns a reference to the master. More...
 
std::string const & GetName () const
 Returns name of the plugin.
 
EventOutcome ProcessEventToOutcome ()
 Processes a new event from the current dataset. More...
 
void SetMaster (Processor const *processor)
 Provides a pointer to an instance of Processor class that owns the plugin. More...
 

Additional Inherited Members

- Public Types inherited from Plugin
enum  EventOutcome { EventOutcome::Ok, EventOutcome::FilterFailed, EventOutcome::NoEvents }
 Outcome of processing of an event. More...
 
- Protected Member Functions inherited from Plugin
Plugin const * GetDependencyPlugin (std::string const &name) const
 Returns a pointer to a precedent plugin in the path with the given name. More...
 

Detailed Description

Fills histograms that can be used to calculate b-tagging efficiency.

This plugin fills histograms with jet distributions in pt and |eta| for each dataset. The histograms are filled for various jet flavours (b, c, other) with all jets in an event and jets passing given working points of a b-tagger. These histograms can then be used to calculate b-tagging efficiencies.

By default, the histograms have very fine binning. It is foreseen that bins will be merged when the efficiencies are calculated.

This plugin only accounts for the event weight due to pile-up.

This plugin depends on a number of services and plugins: BTagWPService (default name "BTagWP"), TFileService ("TFileService"), JetMETReader("JetMET"), PileUpWeight ("PileUpWeight").

Member Function Documentation

void BTagEffHistograms::BeginRun ( Dataset const &  )
overridevirtual

Creates histograms for the new dataset.

Reimplemented from Plugin.

Reimplemented from Plugin.

Plugin * BTagEffHistograms::Clone ( ) const
overridevirtual

Creates a newly configured clone.

Implemented from Plugin.

Implements Plugin.

void BTagEffHistograms::EndRun ( )
overridevirtual

Clears container with histograms.

Reimplemented from Plugin.

Reimplemented from Plugin.


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