MINT2
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
HadronicParameters::ModelBinning3Body Class Reference

Phase binning class for 3-body decays using the line s13=s23 to determine favoured/suppressed. More...

#include <HadronicParameters.h>

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

Public Member Functions

 ModelBinning3Body (ModelPtr, ModelPtr, unsigned)
 
virtual ~ModelBinning3Body ()
 
virtual std::string type () const override
 
- Public Member Functions inherited from HadronicParameters::ModelPhaseBinning
 ModelPhaseBinning (ModelPtr, ModelPtr, unsigned)
 
virtual ~ModelPhaseBinning ()
 
virtual EventBinInfo binInfo (IDalitzEvent &) const override
 
virtual void Print (const std::string &, std::ostream &os=std::cout) const override
 
- Public Member Functions inherited from HadronicParameters::PhaseBinningBase
 PhaseBinningBase (unsigned nBins)
 
virtual ~PhaseBinningBase ()
 
int binNumber (IDalitzEvent &) const
 
virtual bool operator== (const PhaseBinningBase &) const
 
bool operator!= (const PhaseBinningBase &) const
 

Static Public Member Functions

static MINT::counted_ptr< PhaseBinningBasefromConfig (const std::string &, const std::string &fname="")
 
- Static Public Member Functions inherited from HadronicParameters::ModelPhaseBinning
static MINT::counted_ptr< PhaseBinningBasefromConfig (const std::string &, const std::string &fname="")
 

Protected Member Functions

virtual bool isFavoured (const double, const double, IDalitzEvent &) const override
 

Additional Inherited Members

- Public Attributes inherited from HadronicParameters::PhaseBinningBase
const unsigned nBins
 
- Protected Attributes inherited from HadronicParameters::ModelPhaseBinning
ModelPtr m_model
 
ModelPtr m_cpmodel
 

Detailed Description

Phase binning class for 3-body decays using the line s13=s23 to determine favoured/suppressed.

Definition at line 67 of file HadronicParameters.h.

Constructor & Destructor Documentation

◆ ModelBinning3Body()

HadronicParameters::ModelBinning3Body::ModelBinning3Body ( HadronicParameters::ModelPtr  model,
HadronicParameters::ModelPtr  cpmodel,
unsigned  nBins 
)

Definition at line 106 of file HadronicParameters.cpp.

108  :
109  ModelPhaseBinning(model, cpmodel, nBins)
110 {}
ModelPhaseBinning(ModelPtr, ModelPtr, unsigned)

◆ ~ModelBinning3Body()

virtual HadronicParameters::ModelBinning3Body::~ModelBinning3Body ( )
inlinevirtual

Definition at line 70 of file HadronicParameters.h.

70 {} ;

Member Function Documentation

◆ fromConfig()

HadronicParameters::BinningPtr HadronicParameters::ModelBinning3Body::fromConfig ( const std::string &  ,
const std::string &  fname = "" 
)
static

Definition at line 133 of file HadronicParameters.cpp.

134  {
135  string name = _name + "_binning_" ;
136  if(string(NamedParameter<string>(name + "type", fname.c_str())) != "model3body")
137  return BinningPtr(0) ;
138  NamedParameter<int> nBins(name + "nBins", fname.c_str()) ;
139  NamedParameter<int> pat(name + "eventPattern", fname.c_str()) ;
140  NamedParameter<int> cpPat(name + "cpEventPattern", fname.c_str()) ;
141  ModelPtr model(new FitAmpSum(DalitzEventPattern(pat), fname.c_str())) ;
142  ModelPtr cpModel(new FitAmpSum(DalitzEventPattern(cpPat), fname.c_str())) ;
143  return BinningPtr(new ModelBinning3Body(model, cpModel, nBins)) ;
144 }
ModelBinning3Body(ModelPtr, ModelPtr, unsigned)
MINT::counted_ptr< FitAmpSum > ModelPtr
MINT::counted_ptr< PhaseBinningBase > BinningPtr
Pointer to the binning scheme.

◆ isFavoured()

bool HadronicParameters::ModelBinning3Body::isFavoured ( const double  ,
const double  ,
IDalitzEvent evt 
) const
overrideprotectedvirtual

Reimplemented from HadronicParameters::ModelPhaseBinning.

Definition at line 116 of file HadronicParameters.cpp.

116  {
117  const DalitzEventPattern& pat = evt.eventPattern() ;
118  int i1(1), i2(2), i3(3) ;
119  // Assuming we have a decay of the form P->h+h-h0 (in some order).
120  for(unsigned i = 1 ; i < pat.size() ; ++i){
121  if(pat[i].charge() > 0)
122  i1 = i ;
123  else if(pat[i].charge() < 0)
124  i2 = i ;
125  else
126  i3 = i ;
127  }
128  double s13 = evt.s(i1, i3) ;
129  double s23 = evt.s(i2, i3) ;
130  return s13 > s23 ;
131 }
virtual const DalitzEventPattern & eventPattern() const =0
unsigned int size() const
virtual double s(unsigned int i, unsigned int j) const =0

◆ type()

string HadronicParameters::ModelBinning3Body::type ( ) const
overridevirtual

Reimplemented from HadronicParameters::ModelPhaseBinning.

Definition at line 112 of file HadronicParameters.cpp.

112  {
113  return "model3body" ;
114 }

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