CMS 3D CMS Logo

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

#include <BPHPhiToKKBuilder.h>

Public Member Functions

 BPHPhiToKKBuilder (const edm::EventSetup &es, const BPHRecoBuilder::BPHGenericCollection *kPosCollection, const BPHRecoBuilder::BPHGenericCollection *kNegCollection)
 
std::vector< BPHPlusMinusConstCandPtrbuild ()
 build Phi candidates More...
 
double getConstrMass () const
 
double getConstrSigma () const
 
double getEtaMax () const
 
double getMassMax () const
 
double getMassMin () const
 
double getProbMin () const
 
double getPtMin () const
 get current cuts More...
 
void setConstr (double mass, double sigma)
 
void setEtaMax (double eta)
 
void setMassMax (double m)
 
void setMassMin (double m)
 
void setProbMin (double p)
 
void setPtMin (double pt)
 set cuts More...
 
virtual ~BPHPhiToKKBuilder ()
 

Private Member Functions

 BPHPhiToKKBuilder (const BPHPhiToKKBuilder &x)=delete
 
BPHPhiToKKBuilderoperator= (const BPHPhiToKKBuilder &x)=delete
 

Private Attributes

BPHChi2Selectchi2Sel
 
double cMass
 
double cSigma
 
BPHParticleEtaSelectetaSel
 
const edm::EventSetupevSetup
 
std::string kNegName
 
std::string kPosName
 
BPHMassSelectmassSel
 
const BPHRecoBuilder::BPHGenericCollectionnegCollection
 
std::vector< BPHPlusMinusConstCandPtrphiList
 
const BPHRecoBuilder::BPHGenericCollectionposCollection
 
BPHParticlePtSelectptSel
 
bool updated
 

Detailed Description

Description: Class to build Phi to K+ K- candidates

Author
Paolo Ronchese INFN Padova

Definition at line 41 of file BPHPhiToKKBuilder.h.

Constructor & Destructor Documentation

BPHPhiToKKBuilder::BPHPhiToKKBuilder ( const edm::EventSetup es,
const BPHRecoBuilder::BPHGenericCollection kPosCollection,
const BPHRecoBuilder::BPHGenericCollection kNegCollection 
)

Constructor

Definition at line 37 of file BPHPhiToKKBuilder.cc.

References chi2Sel, etaSel, massSel, ptSel, and updated.

40  :
41  kPosName( "KPos" ),
42  kNegName( "KNeg" ),
43  evSetup( &es ),
44  posCollection( kPosCollection ),
45  negCollection( kNegCollection ) {
46  ptSel = new BPHParticlePtSelect ( 0.7 );
47  etaSel = new BPHParticleEtaSelect( 10.0 );
48  massSel = new BPHMassSelect( 1.0, 1.04 );
49  chi2Sel = new BPHChi2Select( 0.0 );
50  updated = false;
51 }
BPHParticlePtSelect * ptSel
const BPHRecoBuilder::BPHGenericCollection * negCollection
const edm::EventSetup * evSetup
BPHChi2Select * chi2Sel
BPHParticleEtaSelect * etaSel
const BPHRecoBuilder::BPHGenericCollection * posCollection
BPHMassSelect * massSel
BPHPhiToKKBuilder::~BPHPhiToKKBuilder ( )
virtual

Destructor

Definition at line 56 of file BPHPhiToKKBuilder.cc.

References chi2Sel, etaSel, massSel, and ptSel.

56  {
57  delete ptSel;
58  delete etaSel;
59  delete massSel;
60  delete chi2Sel;
61 }
BPHParticlePtSelect * ptSel
BPHChi2Select * chi2Sel
BPHParticleEtaSelect * etaSel
BPHMassSelect * massSel
BPHPhiToKKBuilder::BPHPhiToKKBuilder ( const BPHPhiToKKBuilder x)
privatedelete

Member Function Documentation

vector< BPHPlusMinusConstCandPtr > BPHPhiToKKBuilder::build ( )

build Phi candidates

Operations

Definition at line 66 of file BPHPhiToKKBuilder.cc.

References BPHRecoBuilder::add(), BPHPlusMinusCandidate::build(), chi2Sel, etaSel, evSetup, BPHRecoBuilder::filter(), BPHParticleMasses::kaonMass, BPHParticleMasses::kaonMSigma, kNegName, kPosName, massSel, negCollection, phiList, posCollection, ptSel, and updated.

Referenced by BPHWriteSpecificDecay::fill().

66  {
67 
68  if ( updated ) return phiList;
69 
70  BPHRecoBuilder bPhi( *evSetup );
75  bPhi.filter( kPosName, *ptSel );
76  bPhi.filter( kNegName, *ptSel );
77  bPhi.filter( kPosName, *etaSel );
78  bPhi.filter( kNegName, *etaSel );
79 
80  bPhi.filter( *massSel );
81  bPhi.filter( *chi2Sel );
82 
84  updated = true;
85  return phiList;
86 
87 }
static std::vector< BPHPlusMinusConstCandPtr > build(const BPHRecoBuilder &builder, const std::string &nPos, const std::string &nNeg, double mass=-1, double msig=-1)
static const double kaonMass
BPHParticlePtSelect * ptSel
const BPHRecoBuilder::BPHGenericCollection * negCollection
const edm::EventSetup * evSetup
std::vector< BPHPlusMinusConstCandPtr > phiList
BPHChi2Select * chi2Sel
BPHParticleEtaSelect * etaSel
const BPHRecoBuilder::BPHGenericCollection * posCollection
BPHMassSelect * massSel
static const double kaonMSigma
double BPHPhiToKKBuilder::getConstrMass ( ) const

Definition at line 158 of file BPHPhiToKKBuilder.cc.

References cMass.

Referenced by BPHWriteSpecificDecay::fill().

158  {
159  return cMass;
160 }
double BPHPhiToKKBuilder::getConstrSigma ( ) const

Definition at line 163 of file BPHPhiToKKBuilder.cc.

References cSigma.

Referenced by BPHWriteSpecificDecay::fill().

163  {
164  return cSigma;
165 }
double BPHPhiToKKBuilder::getEtaMax ( ) const

Definition at line 138 of file BPHPhiToKKBuilder.cc.

References etaSel, and BPHParticleEtaSelect::getEtaMax().

138  {
139  return etaSel->getEtaMax();
140 }
BPHParticleEtaSelect * etaSel
double getEtaMax() const
get current eta max
double BPHPhiToKKBuilder::getMassMax ( ) const

Definition at line 148 of file BPHPhiToKKBuilder.cc.

References BPHMassCuts::getMassMax(), and massSel.

148  {
149  return massSel->getMassMax();
150 }
double getMassMax() const
Definition: BPHMassCuts.h:55
BPHMassSelect * massSel
double BPHPhiToKKBuilder::getMassMin ( ) const

Definition at line 143 of file BPHPhiToKKBuilder.cc.

References BPHMassCuts::getMassMin(), and massSel.

143  {
144  return massSel->getMassMin();
145 }
double getMassMin() const
get current mass cuts
Definition: BPHMassCuts.h:54
BPHMassSelect * massSel
double BPHPhiToKKBuilder::getProbMin ( ) const

Definition at line 153 of file BPHPhiToKKBuilder.cc.

References chi2Sel, and BPHChi2Select::getProbMin().

153  {
154  return chi2Sel->getProbMin();
155 }
BPHChi2Select * chi2Sel
double getProbMin() const
get current prob min
Definition: BPHChi2Select.h:58
double BPHPhiToKKBuilder::getPtMin ( ) const

get current cuts

Definition at line 133 of file BPHPhiToKKBuilder.cc.

References BPHParticlePtSelect::getPtMin(), and ptSel.

133  {
134  return ptSel->getPtMin();
135 }
BPHParticlePtSelect * ptSel
double getPtMin() const
get current pt min
BPHPhiToKKBuilder& BPHPhiToKKBuilder::operator= ( const BPHPhiToKKBuilder x)
privatedelete
void BPHPhiToKKBuilder::setConstr ( double  mass,
double  sigma 
)

Definition at line 125 of file BPHPhiToKKBuilder.cc.

References cMass, cSigma, ResonanceBuilder::mass, and updated.

Referenced by BPHWriteSpecificDecay::fill().

125  {
126  updated = false;
127  cMass = mass;
128  cSigma = sigma;
129  return;
130 }
void BPHPhiToKKBuilder::setEtaMax ( double  eta)

Definition at line 97 of file BPHPhiToKKBuilder.cc.

References etaSel, BPHParticleEtaSelect::setEtaMax(), and updated.

Referenced by BPHWriteSpecificDecay::fill().

97  {
98  updated = false;
99  etaSel->setEtaMax( eta );
100  return;
101 }
BPHParticleEtaSelect * etaSel
void setEtaMax(double eta)
set eta max
void BPHPhiToKKBuilder::setMassMax ( double  m)

Definition at line 111 of file BPHPhiToKKBuilder.cc.

References massSel, BPHMassCuts::setMassMax(), and updated.

Referenced by BPHWriteSpecificDecay::fill().

111  {
112  updated = false;
113  massSel->setMassMax( m );
114  return;
115 }
void setMassMax(double m)
Definition: BPHMassCuts.h:51
BPHMassSelect * massSel
void BPHPhiToKKBuilder::setMassMin ( double  m)

Definition at line 104 of file BPHPhiToKKBuilder.cc.

References massSel, BPHMassCuts::setMassMin(), and updated.

Referenced by BPHWriteSpecificDecay::fill().

104  {
105  updated = false;
106  massSel->setMassMin( m );
107  return;
108 }
void setMassMin(double m)
set mass cuts
Definition: BPHMassCuts.h:50
BPHMassSelect * massSel
void BPHPhiToKKBuilder::setProbMin ( double  p)

Definition at line 118 of file BPHPhiToKKBuilder.cc.

References chi2Sel, BPHChi2Select::setProbMin(), and updated.

Referenced by BPHWriteSpecificDecay::fill().

118  {
119  updated = false;
120  chi2Sel->setProbMin( p );
121  return;
122 }
BPHChi2Select * chi2Sel
void setProbMin(double p)
set prob min
Definition: BPHChi2Select.h:55
void BPHPhiToKKBuilder::setPtMin ( double  pt)

set cuts

Definition at line 90 of file BPHPhiToKKBuilder.cc.

References ptSel, BPHParticlePtSelect::setPtMin(), and updated.

Referenced by BPHWriteSpecificDecay::fill().

90  {
91  updated = false;
92  ptSel->setPtMin( pt );
93  return;
94 }
BPHParticlePtSelect * ptSel
void setPtMin(double pt)
set pt min

Member Data Documentation

BPHChi2Select* BPHPhiToKKBuilder::chi2Sel
private
double BPHPhiToKKBuilder::cMass
private

Definition at line 94 of file BPHPhiToKKBuilder.h.

Referenced by getConstrMass(), and setConstr().

double BPHPhiToKKBuilder::cSigma
private

Definition at line 95 of file BPHPhiToKKBuilder.h.

Referenced by getConstrSigma(), and setConstr().

BPHParticleEtaSelect* BPHPhiToKKBuilder::etaSel
private
const edm::EventSetup* BPHPhiToKKBuilder::evSetup
private

Definition at line 86 of file BPHPhiToKKBuilder.h.

Referenced by build().

std::string BPHPhiToKKBuilder::kNegName
private

Definition at line 84 of file BPHPhiToKKBuilder.h.

Referenced by build().

std::string BPHPhiToKKBuilder::kPosName
private

Definition at line 83 of file BPHPhiToKKBuilder.h.

Referenced by build().

BPHMassSelect* BPHPhiToKKBuilder::massSel
private
const BPHRecoBuilder::BPHGenericCollection* BPHPhiToKKBuilder::negCollection
private

Definition at line 88 of file BPHPhiToKKBuilder.h.

Referenced by build().

std::vector<BPHPlusMinusConstCandPtr> BPHPhiToKKBuilder::phiList
private

Definition at line 98 of file BPHPhiToKKBuilder.h.

Referenced by build().

const BPHRecoBuilder::BPHGenericCollection* BPHPhiToKKBuilder::posCollection
private

Definition at line 87 of file BPHPhiToKKBuilder.h.

Referenced by build().

BPHParticlePtSelect* BPHPhiToKKBuilder::ptSel
private

Definition at line 90 of file BPHPhiToKKBuilder.h.

Referenced by BPHPhiToKKBuilder(), build(), getPtMin(), setPtMin(), and ~BPHPhiToKKBuilder().

bool BPHPhiToKKBuilder::updated
private