hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
Loading...
Searching...
No Matches
Cutflow Class Reference

#include <PreselectAndCategorize.h>

Public Member Functions

 Cutflow (const std::string &name, const std::string &nocut_name)
void set_label_names (const std::vector< std::string > &label_names)
void add (const std::string &name, int nbins, float min, float max)
void init ()
void begin_event ()
void apply (const std::string &name, bool descision)
template<typename T>
void fill_nm1 (const std::string &name, T value)
bool keep () const
void save ()

Private Attributes

std::string name_
std::string nocut_name_
std::unique_ptr< TH1F > h_cutflow_
std::map< std::string, std::pair< std::size_t, std::unique_ptr< TH1F > > > cuts_
bool keep_
std::vector< std::optional< bool > > cut_desc_
std::vector< std::string > label_names_

Detailed Description

Definition at line 63 of file PreselectAndCategorize.h.

Constructor & Destructor Documentation

◆ Cutflow()

Cutflow ( const std::string & name,
const std::string & nocut_name )
inline

Definition at line 66 of file PreselectAndCategorize.h.

Member Function Documentation

◆ add()

void add ( const std::string & name,
int nbins,
float min,
float max )
inline

Definition at line 73 of file PreselectAndCategorize.h.

◆ apply()

void apply ( const std::string & name,
bool descision )
inline

Definition at line 106 of file PreselectAndCategorize.h.

◆ begin_event()

void begin_event ( )
inline

Definition at line 100 of file PreselectAndCategorize.h.

◆ fill_nm1()

template<typename T>
void fill_nm1 ( const std::string & name,
T value )
inline

Definition at line 118 of file PreselectAndCategorize.h.

◆ init()

void init ( )
inline

Definition at line 86 of file PreselectAndCategorize.h.

◆ keep()

bool keep ( ) const
inline

Definition at line 132 of file PreselectAndCategorize.h.

◆ save()

void save ( )
inline

Definition at line 136 of file PreselectAndCategorize.h.

◆ set_label_names()

void set_label_names ( const std::vector< std::string > & label_names)
inline

Definition at line 69 of file PreselectAndCategorize.h.

Member Data Documentation

◆ cut_desc_

std::vector<std::optional<bool> > cut_desc_
private

Definition at line 163 of file PreselectAndCategorize.h.

◆ cuts_

std::map<std::string,std::pair<std::size_t,std::unique_ptr<TH1F> > > cuts_
private

Definition at line 161 of file PreselectAndCategorize.h.

◆ h_cutflow_

std::unique_ptr<TH1F> h_cutflow_
private

Definition at line 160 of file PreselectAndCategorize.h.

◆ keep_

bool keep_
private

Definition at line 162 of file PreselectAndCategorize.h.

◆ label_names_

std::vector<std::string> label_names_
private

Definition at line 164 of file PreselectAndCategorize.h.

◆ name_

std::string name_
private

Definition at line 159 of file PreselectAndCategorize.h.

◆ nocut_name_

std::string nocut_name_
private

Definition at line 159 of file PreselectAndCategorize.h.


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