CMS 3D CMS Logo

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

#include <BPHMassFitSelect.h>

Inheritance diagram for BPHMassFitSelect:
BPHFitSelect BPHMassCuts

Public Member Functions

bool accept (const BPHKinematicFit &cand) const override
 select particle More...
 
 BPHMassFitSelect (double minMass, double maxMass)
 
 BPHMassFitSelect (const std::string &name, double mass, double sigma, double minMass, double maxMass)
 
 BPHMassFitSelect (const std::string &name, double mass, double minMass, double maxMass)
 
 BPHMassFitSelect (const std::string &name, KinematicConstraint *c, double minMass, double maxMass)
 
 BPHMassFitSelect (const std::string &name, MultiTrackKinematicConstraint *c, double minMass, double maxMass)
 
const std::string & getConstrainedName () const
 get fit constraint More...
 
KinematicConstraintgetKC () const
 
double getMass () const
 
MultiTrackKinematicConstraintgetMultiTrackKC () const
 
double getSigma () const
 
void setFitConstraint ()
 set fit constraint More...
 
void setFitConstraint (const std::string &name, double mass)
 
void setFitConstraint (const std::string &name, double mass, double sigma)
 
void setFitConstraint (const std::string &name, KinematicConstraint *c)
 
void setFitConstraint (const std::string &name, MultiTrackKinematicConstraint *c)
 
 ~BPHMassFitSelect () override
 
- Public Member Functions inherited from BPHFitSelect
 BPHFitSelect ()
 
virtual ~BPHFitSelect ()
 
- Public Member Functions inherited from BPHMassCuts
 BPHMassCuts (double minMass, double maxMass)
 
double getMassMax () const
 
double getMassMin () const
 get current mass cuts More...
 
void setMassMax (double m)
 
void setMassMin (double m)
 set mass cuts More...
 
virtual ~BPHMassCuts ()
 

Private Types

enum  fit_type {
  none, mcss, mcst, kf,
  mtkf
}
 

Private Member Functions

 BPHMassFitSelect (const BPHMassFitSelect &x)=delete
 
BPHMassFitSelectoperator= (const BPHMassFitSelect &x)=delete
 

Private Attributes

double cMass
 
std::string cName
 
double cSigma
 
KinematicConstraintkc
 
MultiTrackKinematicConstraintmtkc
 
fit_type type
 

Additional Inherited Members

- Protected Member Functions inherited from BPHMassCuts
 BPHMassCuts (const BPHMassCuts &x)
 
BPHMassCutsoperator= (const BPHMassCuts &x)
 
- Protected Attributes inherited from BPHMassCuts
double mMax
 
double mMin
 

Detailed Description

Description: Class for candidate selection by invariant mass (at kinematic fit level)

Author
Paolo Ronchese INFN Padova

Definition at line 34 of file BPHMassFitSelect.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

BPHMassFitSelect::BPHMassFitSelect ( double  minMass,
double  maxMass 
)
inline
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
double  mass,
double  sigma,
double  minMass,
double  maxMass 
)
inline
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
double  mass,
double  minMass,
double  maxMass 
)
inline
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
KinematicConstraint c,
double  minMass,
double  maxMass 
)
inline
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
MultiTrackKinematicConstraint c,
double  minMass,
double  maxMass 
)
inline
BPHMassFitSelect::~BPHMassFitSelect ( )
inlineoverride
BPHMassFitSelect::BPHMassFitSelect ( const BPHMassFitSelect x)
privatedelete

Member Function Documentation

bool BPHMassFitSelect::accept ( const BPHKinematicFit cand) const
inlineoverridevirtual

select particle

Operations

Implements BPHFitSelect.

Definition at line 67 of file BPHMassFitSelect.h.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), esMonitoring.FDJsonServer::handle_accept(), and ~BPHMassFitSelect().

67  {
68  switch ( type ) {
69  default:
70  case none: break;
71  case mcss: cand.kinematicTree( cName, cMass, cSigma ); break;
72  case mcst: cand.kinematicTree( cName, cMass ) ; break;
73  case kf: cand.kinematicTree( cName, kc ); break;
74  case mtkf: cand.kinematicTree( cName, mtkc ); break;
75  }
76  double mass = cand.p4().mass();
77  return ( ( mass > mMin ) && ( mass < mMax ) );
78  }
type
Definition: HCALResponse.h:21
virtual const math::XYZTLorentzVector & p4() const
compute total momentum after the fit
double mMax
Definition: BPHMassCuts.h:64
virtual const RefCountedKinematicTree & kinematicTree() const
perform the kinematic fit and get the result
double mMin
Definition: BPHMassCuts.h:63
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
const std::string& BPHMassFitSelect::getConstrainedName ( ) const
inline

get fit constraint

Definition at line 124 of file BPHMassFitSelect.h.

References cName.

124 { return cName; }
KinematicConstraint* BPHMassFitSelect::getKC ( ) const
inline

Definition at line 127 of file BPHMassFitSelect.h.

References kc.

127 { return kc; }
KinematicConstraint * kc
double BPHMassFitSelect::getMass ( ) const
inline

Definition at line 125 of file BPHMassFitSelect.h.

References cMass.

125 { return cMass; }
MultiTrackKinematicConstraint* BPHMassFitSelect::getMultiTrackKC ( ) const
inline

Definition at line 128 of file BPHMassFitSelect.h.

References BPHMassFitSelect(), mtkc, operator=(), and x.

128 { return mtkc; }
MultiTrackKinematicConstraint * mtkc
double BPHMassFitSelect::getSigma ( ) const
inline

Definition at line 126 of file BPHMassFitSelect.h.

References cSigma.

126 { return cSigma; }
BPHMassFitSelect& BPHMassFitSelect::operator= ( const BPHMassFitSelect x)
privatedelete

Referenced by getMultiTrackKC().

void BPHMassFitSelect::setFitConstraint ( )
inline

set fit constraint

Definition at line 81 of file BPHMassFitSelect.h.

References cMass, cName, cSigma, kc, mtkc, none, and nullptr.

Referenced by BPHMassFitSelect().

81  {
82  type = none;
83  cName = "" ;
84  cMass = -1.0;
85  cSigma = -1.0;
86  kc = nullptr ;
87  mtkc = nullptr ;
88  }
type
Definition: HCALResponse.h:21
#define nullptr
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
void BPHMassFitSelect::setFitConstraint ( const std::string &  name,
double  mass 
)
inline

Definition at line 89 of file BPHMassFitSelect.h.

References cMass, cName, cSigma, kc, ResonanceBuilder::mass, mcst, mtkc, dataset::name, and nullptr.

89  {
90  type = mcst;
91  cName = name ;
92  cMass = mass ;
93  cSigma = -1.0 ;
94  kc = nullptr ;
95  mtkc = nullptr ;
96  }
type
Definition: HCALResponse.h:21
#define nullptr
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
void BPHMassFitSelect::setFitConstraint ( const std::string &  name,
double  mass,
double  sigma 
)
inline

Definition at line 97 of file BPHMassFitSelect.h.

References cMass, cName, cSigma, kc, ResonanceBuilder::mass, mcss, mtkc, dataset::name, and nullptr.

97  {
98  type = mcss;
99  cName = name ;
100  cMass = mass ;
101  cSigma = sigma;
102  kc = nullptr ;
103  mtkc = nullptr ;
104  }
type
Definition: HCALResponse.h:21
#define nullptr
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
void BPHMassFitSelect::setFitConstraint ( const std::string &  name,
KinematicConstraint c 
)
inline

Definition at line 105 of file BPHMassFitSelect.h.

References EnergyCorrector::c, cMass, cName, cSigma, kc, kf, mtkc, dataset::name, and nullptr.

105  {
106  type = kf;
107  cName = name ;
108  cMass = -1.0 ;
109  cSigma = -1.0 ;
110  kc = c ;
111  mtkc = nullptr ;
112  }
type
Definition: HCALResponse.h:21
#define nullptr
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
void BPHMassFitSelect::setFitConstraint ( const std::string &  name,
MultiTrackKinematicConstraint c 
)
inline

Definition at line 113 of file BPHMassFitSelect.h.

References EnergyCorrector::c, cMass, cName, cSigma, kc, mtkc, mtkf, dataset::name, and nullptr.

114  {
115  type = mtkf;
116  cName = name ;
117  cMass = -1.0 ;
118  cSigma = -1.0 ;
119  kc = nullptr ;
120  mtkc = c ;
121  }
type
Definition: HCALResponse.h:21
#define nullptr
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc

Member Data Documentation

double BPHMassFitSelect::cMass
private

Definition at line 140 of file BPHMassFitSelect.h.

Referenced by getMass(), setFitConstraint(), and ~BPHMassFitSelect().

std::string BPHMassFitSelect::cName
private

Definition at line 139 of file BPHMassFitSelect.h.

Referenced by getConstrainedName(), setFitConstraint(), and ~BPHMassFitSelect().

double BPHMassFitSelect::cSigma
private

Definition at line 141 of file BPHMassFitSelect.h.

Referenced by getSigma(), setFitConstraint(), and ~BPHMassFitSelect().

KinematicConstraint* BPHMassFitSelect::kc
private

Definition at line 142 of file BPHMassFitSelect.h.

Referenced by getKC(), setFitConstraint(), and ~BPHMassFitSelect().

MultiTrackKinematicConstraint* BPHMassFitSelect::mtkc
private

Definition at line 143 of file BPHMassFitSelect.h.

Referenced by getMultiTrackKC(), setFitConstraint(), and ~BPHMassFitSelect().

fit_type BPHMassFitSelect::type
private