CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BPHBdToKxMuMuBuilder Class Reference

#include <BPHBdToKxMuMuBuilder.h>

Inheritance diagram for BPHBdToKxMuMuBuilder:
BPHDecayGenericBuilder< BPHRecoCandidate > BPHDecaySpecificBuilder< BPHRecoCandidate > BPHDecayGenericBuilderBase BPHDecaySpecificBuilderBase BPHDecayGenericBuilder< BPHRecoCandidate > BPHDecayGenericBuilderBase

Public Member Functions

 BPHBdToKxMuMuBuilder (const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &oniaCollection, const std::vector< BPHPlusMinusConstCandPtr > &kx0Collection)
 
 BPHBdToKxMuMuBuilder (const BPHBdToKxMuMuBuilder &x)=delete
 
void fill (BPHRecoBuilder &brb, void *parameters) override
 build candidates More...
 
double getKxMassMax () const
 
double getKxMassMin () const
 
double getOniaMassMax () const
 
double getOniaMassMin () const
 get current cuts More...
 
BPHBdToKxMuMuBuilderoperator= (const BPHBdToKxMuMuBuilder &x)=delete
 
void setKxMassMax (double m)
 
void setKxMassMin (double m)
 
void setOniaMassMax (double m)
 
void setOniaMassMin (double m)
 set cuts More...
 
void setup (void *parameters) override
 setup parameters for BPHRecoBuilder More...
 
 ~BPHBdToKxMuMuBuilder () override=default
 
- Public Member Functions inherited from BPHDecayGenericBuilder< BPHRecoCandidate >
 BPHDecayGenericBuilder (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs)
 
 BPHDecayGenericBuilder (const BPHDecayGenericBuilder &x)=delete
 
virtual std::vector< prod_ptrbuild ()
 build candidates More...
 
BPHDecayGenericBuilderoperator= (const BPHDecayGenericBuilder &x)=delete
 
 ~BPHDecayGenericBuilder () override=default
 
- Public Member Functions inherited from BPHDecayGenericBuilderBase
 BPHDecayGenericBuilderBase ()
 
 BPHDecayGenericBuilderBase (const BPHEventSetupWrapper &es, BPHMassFitSelect *mfs=new BPHMassFitSelect(-2.0e+06, -1.0e+06))
 
 BPHDecayGenericBuilderBase (const BPHDecayGenericBuilderBase &x)=delete
 
double getMassFitMax () const
 
double getMassFitMin () const
 
double getMassMax () const
 
double getMassMin () const
 get current cuts More...
 
double getMinPDiff ()
 
double getProbMin () const
 
BPHDecayGenericBuilderBaseoperator= (const BPHDecayGenericBuilderBase &x)=delete
 
void setMassFitMax (double m)
 
void setMassFitMin (double m)
 
void setMassFitRange (double mMin, double mMax)
 
void setMassMax (double m)
 
void setMassMin (double m)
 set cuts More...
 
void setMassRange (double mMin, double mMax)
 
void setMinPDiff (double mpd)
 track min p difference More...
 
void setProbMin (double p)
 
virtual ~BPHDecayGenericBuilderBase ()
 
- Public Member Functions inherited from BPHDecaySpecificBuilder< BPHRecoCandidate >
 BPHDecaySpecificBuilder ()
 
 BPHDecaySpecificBuilder (const BPHDecaySpecificBuilder &x)=delete
 
BPHDecaySpecificBuilderoperator= (const BPHDecaySpecificBuilder &x)=delete
 
 ~BPHDecaySpecificBuilder () override=default
 
- Public Member Functions inherited from BPHDecaySpecificBuilderBase
virtual ~BPHDecaySpecificBuilderBase ()=default
 

Private Attributes

const std::vector< BPHPlusMinusConstCandPtr > * kCollection
 
std::string kx0Name
 
BPHMassSelectmkx0Sel
 
const std::vector< BPHPlusMinusConstCandPtr > * oCollection
 
std::string oniaName
 
BPHMassSelectoniaSel
 

Additional Inherited Members

- Public Types inherited from BPHDecayGenericBuilder< BPHRecoCandidate >
typedef BPHRecoCandidate ::const_pointer prod_ptr
 
- Protected Member Functions inherited from BPHDecayGenericBuilder< BPHRecoCandidate >
 BPHDecayGenericBuilder ()
 
- Protected Member Functions inherited from BPHDecaySpecificBuilder< BPHRecoCandidate >
void fillRecList ()
 
void fillRecList () override
 build candidates More...
 
- Protected Attributes inherited from BPHDecayGenericBuilder< BPHRecoCandidate >
std::vector< prod_ptrrecList
 
- Protected Attributes inherited from BPHDecayGenericBuilderBase
BPHChi2Selectchi2Sel
 
const BPHEventSetupWrapperevSetup
 
BPHMassSelectmassSel
 
BPHMassFitSelectmFitSel
 
double minPDiff
 
bool outdated
 

Detailed Description

Description: Class to build B0 to K*0 mu+ mu- candidates

Author
Paolo Ronchese INFN Padova

Definition at line 42 of file BPHBdToKxMuMuBuilder.h.

Constructor & Destructor Documentation

◆ BPHBdToKxMuMuBuilder() [1/2]

BPHBdToKxMuMuBuilder::BPHBdToKxMuMuBuilder ( const BPHEventSetupWrapper es,
const std::vector< BPHPlusMinusConstCandPtr > &  oniaCollection,
const std::vector< BPHPlusMinusConstCandPtr > &  kx0Collection 
)
inline

Constructor

Definition at line 47 of file BPHBdToKxMuMuBuilder.h.

References mkx0Sel, and oniaSel.

50  : BPHDecayGenericBuilderBase(es, nullptr),
51  oniaName("MuMu"),
52  kx0Name("Kx0"),
53  oCollection(&oniaCollection),
54  kCollection(&kx0Collection) {
55  oniaSel = new BPHMassSelect(1.00, 12.00);
56  mkx0Sel = new BPHMassSelect(0.80, 1.00);
57  }
const std::vector< BPHPlusMinusConstCandPtr > * kCollection
const std::vector< BPHPlusMinusConstCandPtr > * oCollection

◆ BPHBdToKxMuMuBuilder() [2/2]

BPHBdToKxMuMuBuilder::BPHBdToKxMuMuBuilder ( const BPHBdToKxMuMuBuilder x)
delete

◆ ~BPHBdToKxMuMuBuilder()

BPHBdToKxMuMuBuilder::~BPHBdToKxMuMuBuilder ( )
overridedefault

Destructor

Member Function Documentation

◆ fill()

void BPHBdToKxMuMuBuilder::fill ( BPHRecoBuilder brb,
void *  parameters 
)
inlineoverridevirtual

build candidates

Operations

Implements BPHDecaySpecificBuilderBase.

Definition at line 70 of file BPHBdToKxMuMuBuilder.h.

70  {
72  brb.add(oniaName, *oCollection);
73  brb.add(kx0Name, *kCollection);
74  brb.filter(oniaName, *oniaSel);
75  brb.filter(kx0Name, *mkx0Sel);
76  if (massSel->getMassMax() >= 0.0)
77  brb.filter(*massSel);
78  if (chi2Sel->getProbMin() >= 0.0)
79  brb.filter(*chi2Sel);
80  return;
81  }
double getProbMin() const
get current prob min
Definition: BPHChi2Select.h:66
void setMinPDiffererence(double pMin)
const std::vector< BPHPlusMinusConstCandPtr > * kCollection
void filter(const std::string &name, const BPHRecoSelect &sel) const
double getMassMax() const
Definition: BPHMassCuts.h:59
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
const std::vector< BPHPlusMinusConstCandPtr > * oCollection

◆ getKxMassMax()

double BPHBdToKxMuMuBuilder::getKxMassMax ( ) const
inline

Definition at line 105 of file BPHBdToKxMuMuBuilder.h.

References BPHMassCuts::getMassMax(), and mkx0Sel.

105 { return mkx0Sel->getMassMax(); }
double getMassMax() const
Definition: BPHMassCuts.h:59

◆ getKxMassMin()

double BPHBdToKxMuMuBuilder::getKxMassMin ( ) const
inline

Definition at line 104 of file BPHBdToKxMuMuBuilder.h.

References BPHMassCuts::getMassMin(), and mkx0Sel.

104 { return mkx0Sel->getMassMin(); }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58

◆ getOniaMassMax()

double BPHBdToKxMuMuBuilder::getOniaMassMax ( ) const
inline

Definition at line 103 of file BPHBdToKxMuMuBuilder.h.

References BPHMassCuts::getMassMax(), and oniaSel.

103 { return oniaSel->getMassMax(); }
double getMassMax() const
Definition: BPHMassCuts.h:59

◆ getOniaMassMin()

double BPHBdToKxMuMuBuilder::getOniaMassMin ( ) const
inline

get current cuts

Definition at line 102 of file BPHBdToKxMuMuBuilder.h.

References BPHMassCuts::getMassMin(), and oniaSel.

102 { return oniaSel->getMassMin(); }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:58

◆ operator=()

BPHBdToKxMuMuBuilder& BPHBdToKxMuMuBuilder::operator= ( const BPHBdToKxMuMuBuilder x)
delete

◆ setKxMassMax()

void BPHBdToKxMuMuBuilder::setKxMassMax ( double  m)
inline

◆ setKxMassMin()

void BPHBdToKxMuMuBuilder::setKxMassMin ( double  m)
inline

◆ setOniaMassMax()

void BPHBdToKxMuMuBuilder::setOniaMassMax ( double  m)
inline

◆ setOniaMassMin()

void BPHBdToKxMuMuBuilder::setOniaMassMin ( double  m)
inline

◆ setup()

void BPHBdToKxMuMuBuilder::setup ( void *  parameters)
inlineoverridevirtual

setup parameters for BPHRecoBuilder

Implements BPHDecaySpecificBuilderBase.

Definition at line 108 of file BPHBdToKxMuMuBuilder.h.

108 {}

Member Data Documentation

◆ kCollection

const std::vector<BPHPlusMinusConstCandPtr>* BPHBdToKxMuMuBuilder::kCollection
private

Definition at line 115 of file BPHBdToKxMuMuBuilder.h.

◆ kx0Name

std::string BPHBdToKxMuMuBuilder::kx0Name
private

Definition at line 112 of file BPHBdToKxMuMuBuilder.h.

◆ mkx0Sel

BPHMassSelect* BPHBdToKxMuMuBuilder::mkx0Sel
private

◆ oCollection

const std::vector<BPHPlusMinusConstCandPtr>* BPHBdToKxMuMuBuilder::oCollection
private

Definition at line 114 of file BPHBdToKxMuMuBuilder.h.

◆ oniaName

std::string BPHBdToKxMuMuBuilder::oniaName
private

Definition at line 111 of file BPHBdToKxMuMuBuilder.h.

◆ oniaSel

BPHMassSelect* BPHBdToKxMuMuBuilder::oniaSel
private