AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Projection Class Reference

Detailed Description

Definition at line 22 of file Projection.h.

Public Member Functions

 Projection ()
template<class FCN>
 Projection (const FCN &fcn, const std::string &name, const std::string &xAxisTitle, const size_t &nBins, const double &min, const double &max, const std::string &units="")
 Projection (const std::function< double(const Event &)> &fcn, const std::string &name, const std::string &xAxisTitle, const size_t &nBins, const double &min, const double &max, const std::string &units="")
const std::string name () const
template<class eventlist_type, class... ARGS>
TH1D * operator() (const eventlist_type &evts, const ARGS... args) const
template<class eventlist_type, class... ARGS>
std::tuple< std::vector< TH1D * >, THStack * > operator() (const eventlist_type &evts, const keyedFunctors &weightFunction, const ARGS... args) const
double operator() (const Event &evt) const
TH1D * plot (const std::string &prefix="") const
std::function< int(const Event &evt)> binFunctor () const
void setRange (const double &min, const double &max)
template<class eventlist_type>
TH1D * projInternal (const eventlist_type &, const ArgumentPack &) const
 private:
template<class eventlist_type>
std::tuple< std::vector< TH1D * >, THStack * > projInternal (const eventlist_type &, const keyedFunctors &, const ArgumentPack &) const

Public Attributes

std::function< double(const Event &)> m_func
std::string m_name = {""}
std::string m_xAxisTitle = {""}
std::string m_units = {""}
size_t m_nBins = {0}
double m_min = {0}
double m_max = {0}
double m_width = {0}

Friends

class Projection2D

Constructor & Destructor Documentation

◆ Projection() [1/3]

AmpGen::Projection::Projection ( )

◆ Projection() [2/3]

template<class FCN>
AmpGen::Projection::Projection ( const FCN & fcn,
const std::string & name,
const std::string & xAxisTitle,
const size_t & nBins,
const double & min,
const double & max,
const std::string & units = "" )
inline

Definition at line 28 of file Projection.h.

◆ Projection() [3/3]

AmpGen::Projection::Projection ( const std::function< double(const Event &)> & fcn,
const std::string & name,
const std::string & xAxisTitle,
const size_t & nBins,
const double & min,
const double & max,
const std::string & units = "" )

Member Function Documentation

◆ binFunctor()

std::function< int(const Event &evt)> AmpGen::Projection::binFunctor ( ) const

◆ name()

const std::string AmpGen::Projection::name ( ) const

◆ operator()() [1/3]

double AmpGen::Projection::operator() ( const Event & evt) const

◆ operator()() [2/3]

template<class eventlist_type, class... ARGS>
TH1D * AmpGen::Projection::operator() ( const eventlist_type & evts,
const ARGS... args ) const
inline

Definition at line 34 of file Projection.h.

◆ operator()() [3/3]

template<class eventlist_type, class... ARGS>
std::tuple< std::vector< TH1D * >, THStack * > AmpGen::Projection::operator() ( const eventlist_type & evts,
const keyedFunctors & weightFunction,
const ARGS... args ) const
inline

Definition at line 38 of file Projection.h.

◆ plot()

TH1D * AmpGen::Projection::plot ( const std::string & prefix = "") const

◆ projInternal() [1/2]

template<class eventlist_type>
TH1D * AmpGen::Projection::projInternal ( const eventlist_type & ,
const ArgumentPack &  ) const

◆ projInternal() [2/2]

template<class eventlist_type>
std::tuple< std::vector< TH1D * >, THStack * > AmpGen::Projection::projInternal ( const eventlist_type & ,
const keyedFunctors & ,
const ArgumentPack &  ) const

◆ setRange()

void AmpGen::Projection::setRange ( const double & min,
const double & max )
inline

Definition at line 47 of file Projection.h.

◆ Projection2D

friend class Projection2D
friend

Definition at line 53 of file Projection.h.

Member Data Documentation

◆ m_func

std::function<double(const Event &)> AmpGen::Projection::m_func

Definition at line 58 of file Projection.h.

◆ m_max

double AmpGen::Projection::m_max = {0}

Definition at line 64 of file Projection.h.

◆ m_min

double AmpGen::Projection::m_min = {0}

Definition at line 63 of file Projection.h.

◆ m_name

std::string AmpGen::Projection::m_name = {""}

Definition at line 59 of file Projection.h.

◆ m_nBins

size_t AmpGen::Projection::m_nBins = {0}

Definition at line 62 of file Projection.h.

◆ m_units

std::string AmpGen::Projection::m_units = {""}

Definition at line 61 of file Projection.h.

◆ m_width

double AmpGen::Projection::m_width = {0}

Definition at line 65 of file Projection.h.

◆ m_xAxisTitle

std::string AmpGen::Projection::m_xAxisTitle = {""}

Definition at line 60 of file Projection.h.


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