MINT2
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
BinFlipParSet Class Reference

#include <BinFlipChi2.h>

Inheritance diagram for BinFlipParSet:
MINT::MinuitParameterSet

Public Member Functions

 BinFlipParSet (double, double, double, double, double, double, double, double, unsigned long blindingSeed=0, double zBlindRange=0., double deltazBlindRange=0.)
 
 BinFlipParSet (const std::string &)
 
void fixZeroCPV ()
 
std::complex< double > zcp () const
 
std::complex< double > deltaz () const
 
- Public Member Functions inherited from MINT::MinuitParameterSet
 MinuitParameterSet ()
 
 MinuitParameterSet (const MinuitParameterSet &other)
 
MinuitParameterSet getFloating ()
 
bool add (IMinuitParameter *parPtr)
 
bool unregister (IMinuitParameter *patPtr)
 
unsigned int size () const
 
IMinuitParametergetParPtr (unsigned int i)
 
const IMinuitParametergetParPtr (unsigned int i) const
 
IMinuitParametergetParPtr (std::string name)
 
const IMinuitParametergetParPtr (std::string name) const
 
int findParPtr (std::string name)
 
void deleteListAndObjects ()
 
void deleteListKeepObjects ()
 
TNtupleD * makeNewNtpForOwner (TFile *&ntpFile) const
 
std::string ntpNames () const
 
void fillNtp (TFile *&ntpFile, TNtupleD *&ntp) const
 
void print (std::ostream &os=std::cout) const
 
void printVariable (std::ostream &os=std::cout) const
 
void printResultVsInput (std::ostream &os=std::cout) const
 
bool setCovMatrix (const CovMatrix &)
 Set the covariance matrix. More...
 
const CovMatrixcovMatrix () const
 Get the covariance matrix. More...
 

Static Public Member Functions

static std::pair< std::complex< double >, std::complex< double > > fromXY (double, double, double, double)
 
- Static Public Member Functions inherited from MINT::MinuitParameterSet
static MinuitParameterSetgetDefaultSet ()
 

Public Attributes

MINT::FitParameter zcp_Re
 
MINT::FitParameter zcp_Im
 
MINT::FitParameter deltaz_Re
 
MINT::FitParameter deltaz_Im
 

Private Member Functions

std::complex< double > unblindZcp () const
 
std::complex< double > unblindDeltaz () const
 

Friends

class BinFlipChi2Base
 

Additional Inherited Members

- Public Types inherited from MINT::MinuitParameterSet
typedef TMatrixTSym< double > CovMatrix
 
- Protected Member Functions inherited from MINT::MinuitParameterSet
bool addToEnd (IMinuitParameter *parPtr)
 
bool setAllIndices ()
 
- Static Protected Member Functions inherited from MINT::MinuitParameterSet
static std::string prtToNtpName (const std::string &s_in)
 
- Protected Attributes inherited from MINT::MinuitParameterSet
std::vector< IMinuitParameter * > _parPtrList
 
CovMatrix _covMatrix
 
- Static Protected Attributes inherited from MINT::MinuitParameterSet
static MinuitParameterSet_defaultMinuitParameterSet =0
 
static const char ntpNameChars [] = { 'p', 'm', 's', '_', '_', '_', '_', '_', '_', '\0'}
 
static const char prtNameChars [] = { '+', '-', '*', '>', ',', '(', ')', '[', ']', '\0'}
 

Detailed Description

Definition at line 17 of file BinFlipChi2.h.

Constructor & Destructor Documentation

◆ BinFlipParSet() [1/2]

BinFlipParSet::BinFlipParSet ( double  _zcp_Re,
double  zcp_Re_step,
double  _zcp_Im,
double  zcp_Im_step,
double  _deltaz_Re,
double  deltaz_Re_step,
double  _deltaz_Im,
double  deltaz_Im_step,
unsigned long  blindingSeed = 0,
double  zBlindRange = 0.,
double  deltazBlindRange = 0. 
)

Definition at line 17 of file BinFlipChi2.cpp.

19  :
20  zcp_Re("zcp_Re", FitParameter::FIT, _zcp_Re, zcp_Re_step, 0., 0., this,
21  NamedParameterBase::VERBOSE, nullptr, _blindingPars(blindingSeed, zBlindRange, 0)),
22  zcp_Im("zcp_Im", FitParameter::FIT, _zcp_Im, zcp_Im_step, 0., 0., this,
23  NamedParameterBase::VERBOSE, nullptr, _blindingPars(blindingSeed, zBlindRange, 1)),
24  deltaz_Re("deltaz_Re", FitParameter::FIT, _deltaz_Re, deltaz_Re_step, 0., 0., this,
25  NamedParameterBase::VERBOSE, nullptr, _blindingPars(blindingSeed, deltazBlindRange, 2)),
26  deltaz_Im("deltaz_Im", FitParameter::FIT, _deltaz_Im, deltaz_Im_step, 0., 0., this,
27  NamedParameterBase::VERBOSE, nullptr, _blindingPars(blindingSeed, deltazBlindRange, 3))
28 {
29 }
vector< double > _blindingPars(unsigned long seed, double range, unsigned long offset)
Definition: BinFlipChi2.cpp:8
MINT::FitParameter zcp_Re
Definition: BinFlipChi2.h:24
MINT::FitParameter deltaz_Re
Definition: BinFlipChi2.h:26
MINT::FitParameter zcp_Im
Definition: BinFlipChi2.h:25
MINT::FitParameter deltaz_Im
Definition: BinFlipChi2.h:27

◆ BinFlipParSet() [2/2]

BinFlipParSet::BinFlipParSet ( const std::string &  )

Member Function Documentation

◆ deltaz()

complex< double > BinFlipParSet::deltaz ( ) const

Definition at line 49 of file BinFlipChi2.cpp.

49  {
50  return complex<double>(deltaz_Re.blindedMean(), deltaz_Im.blindedMean()) ;
51 }
double blindedMean() const
MINT::FitParameter deltaz_Re
Definition: BinFlipChi2.h:26
MINT::FitParameter deltaz_Im
Definition: BinFlipChi2.h:27

◆ fixZeroCPV()

void BinFlipParSet::fixZeroCPV ( )

Definition at line 38 of file BinFlipChi2.cpp.

38  {
43 }
MINT::FitParameter deltaz_Re
Definition: BinFlipChi2.h:26
virtual void setCurrentFitVal(double fv)
MINT::FitParameter deltaz_Im
Definition: BinFlipChi2.h:27

◆ fromXY()

pair< complex< double >, complex< double > > BinFlipParSet::fromXY ( double  x,
double  y,
double  magqoverp,
double  phi 
)
static

Definition at line 61 of file BinFlipChi2.cpp.

61  {
62  complex<double> z(-y, -x) ;
63  complex<double> qoverp = polar(magqoverp, phi) ;
64  complex<double> poverq = pow(qoverp, -1) ;
65  complex<double> zcp = z * (qoverp + poverq) / 2. ;
66  complex<double> deltaz = z * (qoverp - poverq) / 2. ;
67  return make_pair(zcp, deltaz) ;
68 }
std::complex< double > deltaz() const
Definition: BinFlipChi2.cpp:49
std::complex< double > zcp() const
Definition: BinFlipChi2.cpp:45

◆ unblindDeltaz()

complex< double > BinFlipParSet::unblindDeltaz ( ) const
private

Definition at line 57 of file BinFlipChi2.cpp.

57  {
58  return complex<double>(deltaz_Re.getCurrentFitVal(), deltaz_Im.getCurrentFitVal()) ;
59 }
MINT::FitParameter deltaz_Re
Definition: BinFlipChi2.h:26
virtual double getCurrentFitVal() const
MINT::FitParameter deltaz_Im
Definition: BinFlipChi2.h:27

◆ unblindZcp()

complex< double > BinFlipParSet::unblindZcp ( ) const
private

Definition at line 53 of file BinFlipChi2.cpp.

53  {
54  return complex<double>(zcp_Re.getCurrentFitVal(), zcp_Im.getCurrentFitVal()) ;
55 }
MINT::FitParameter zcp_Re
Definition: BinFlipChi2.h:24
MINT::FitParameter zcp_Im
Definition: BinFlipChi2.h:25
virtual double getCurrentFitVal() const

◆ zcp()

complex< double > BinFlipParSet::zcp ( ) const

Definition at line 45 of file BinFlipChi2.cpp.

45  {
46  return complex<double>(zcp_Re.blindedMean(), zcp_Im.blindedMean()) ;
47 }
double blindedMean() const
MINT::FitParameter zcp_Re
Definition: BinFlipChi2.h:24
MINT::FitParameter zcp_Im
Definition: BinFlipChi2.h:25

Friends And Related Function Documentation

◆ BinFlipChi2Base

friend class BinFlipChi2Base
friend

Definition at line 18 of file BinFlipChi2.h.

Member Data Documentation

◆ deltaz_Im

MINT::FitParameter BinFlipParSet::deltaz_Im

Definition at line 27 of file BinFlipChi2.h.

◆ deltaz_Re

MINT::FitParameter BinFlipParSet::deltaz_Re

Definition at line 26 of file BinFlipChi2.h.

◆ zcp_Im

MINT::FitParameter BinFlipParSet::zcp_Im

Definition at line 25 of file BinFlipChi2.h.

◆ zcp_Re

MINT::FitParameter BinFlipParSet::zcp_Re

Definition at line 24 of file BinFlipChi2.h.


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