MINT2
Public Member Functions | Public Attributes | List of all members
HadronicParameters::PhaseBinningBase Class Referenceabstract

Interface class for determining which bin an event lives in. More...

#include <HadronicParameters.h>

Inheritance diagram for HadronicParameters::PhaseBinningBase:
HadronicParameters::ModelPhaseBinning HadronicParameters::ModelBinning3Body

Public Member Functions

 PhaseBinningBase (unsigned nBins)
 
virtual EventBinInfo binInfo (IDalitzEvent &) const =0
 
virtual std::string type () const =0
 
virtual void Print (const std::string &, std::ostream &os=std::cout) const =0
 
virtual ~PhaseBinningBase ()
 
int binNumber (IDalitzEvent &) const
 
virtual bool operator== (const PhaseBinningBase &) const
 
bool operator!= (const PhaseBinningBase &) const
 

Public Attributes

const unsigned nBins
 

Detailed Description

Interface class for determining which bin an event lives in.

Definition at line 37 of file HadronicParameters.h.

Constructor & Destructor Documentation

◆ PhaseBinningBase()

HadronicParameters::PhaseBinningBase::PhaseBinningBase ( unsigned  nBins)

Definition at line 17 of file HadronicParameters.cpp.

17  :
18  nBins(nBins)
19 {}

◆ ~PhaseBinningBase()

virtual HadronicParameters::PhaseBinningBase::~PhaseBinningBase ( )
inlinevirtual

Definition at line 43 of file HadronicParameters.h.

43 {} ;

Member Function Documentation

◆ binInfo()

virtual EventBinInfo HadronicParameters::PhaseBinningBase::binInfo ( IDalitzEvent ) const
pure virtual

◆ binNumber()

int HadronicParameters::PhaseBinningBase::binNumber ( IDalitzEvent evt) const

Definition at line 21 of file HadronicParameters.cpp.

21  {
22  return binInfo(evt).binNumber ;
23 }
virtual EventBinInfo binInfo(IDalitzEvent &) const =0

◆ operator!=()

bool HadronicParameters::PhaseBinningBase::operator!= ( const PhaseBinningBase other) const

Definition at line 29 of file HadronicParameters.cpp.

29  {
30  return !(operator==(other)) ;
31 }
virtual bool operator==(const PhaseBinningBase &) const

◆ operator==()

bool HadronicParameters::PhaseBinningBase::operator== ( const PhaseBinningBase other) const
virtual

Definition at line 25 of file HadronicParameters.cpp.

25  {
26  return other.nBins == nBins && other.type() == type() ;
27 }
virtual std::string type() const =0

◆ Print()

virtual void HadronicParameters::PhaseBinningBase::Print ( const std::string &  ,
std::ostream &  os = std::cout 
) const
pure virtual

◆ type()

virtual std::string HadronicParameters::PhaseBinningBase::type ( ) const
pure virtual

Member Data Documentation

◆ nBins

const unsigned HadronicParameters::PhaseBinningBase::nBins

Definition at line 43 of file HadronicParameters.h.


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