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

- Public Types inherited from BPHFitSelect
using AcceptArg = BPHKinematicFit
 
- 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

Constructor

Definition at line 38 of file BPHMassFitSelect.h.

References setFitConstraint().

Referenced by getMultiTrackKC().

void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:35
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
double  mass,
double  sigma,
double  minMass,
double  maxMass 
)
inline

Definition at line 40 of file BPHMassFitSelect.h.

References setFitConstraint().

42  setFitConstraint(name, mass, sigma);
43  }
void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:35
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
double  mass,
double  minMass,
double  maxMass 
)
inline

Definition at line 45 of file BPHMassFitSelect.h.

References setFitConstraint().

BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
KinematicConstraint c,
double  minMass,
double  maxMass 
)
inline

Definition at line 50 of file BPHMassFitSelect.h.

References setFitConstraint().

53  }
void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:35
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
MultiTrackKinematicConstraint c,
double  minMass,
double  maxMass 
)
inline

Definition at line 55 of file BPHMassFitSelect.h.

References setFitConstraint().

58  }
void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:35
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:
71  break;
72  case mcss:
74  break;
75  case mcst:
76  cand.kinematicTree(cName, cMass);
77  break;
78  case kf:
79  cand.kinematicTree(cName, kc);
80  break;
81  case mtkf:
82  cand.kinematicTree(cName, mtkc);
83  break;
84  }
85  double mass = cand.p4().mass();
86  return ((mass > mMin) && (mass < mMax));
87  }
type
Definition: HCALResponse.h:21
virtual const math::XYZTLorentzVector & p4() const
compute total momentum after the fit
double mMax
Definition: BPHMassCuts.h:63
virtual const RefCountedKinematicTree & kinematicTree() const
perform the kinematic fit and get the result
double mMin
Definition: BPHMassCuts.h:62
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
const std::string& BPHMassFitSelect::getConstrainedName ( ) const
inline

get fit constraint

Definition at line 132 of file BPHMassFitSelect.h.

References cName.

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

Definition at line 135 of file BPHMassFitSelect.h.

References kc.

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

Definition at line 133 of file BPHMassFitSelect.h.

References cMass.

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

Definition at line 136 of file BPHMassFitSelect.h.

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

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

Definition at line 134 of file BPHMassFitSelect.h.

References cSigma.

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

Referenced by getMultiTrackKC().

void BPHMassFitSelect::setFitConstraint ( )
inline

set fit constraint

Definition at line 90 of file BPHMassFitSelect.h.

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

Referenced by BPHMassFitSelect().

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

Definition at line 98 of file BPHMassFitSelect.h.

References cMass, cName, cSigma, kc, EgHLTOffHistBins_cfi::mass, mcst, mtkc, and Skims_PA_cff::name.

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

Definition at line 106 of file BPHMassFitSelect.h.

References cMass, cName, cSigma, kc, EgHLTOffHistBins_cfi::mass, mcss, mtkc, and Skims_PA_cff::name.

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

Definition at line 114 of file BPHMassFitSelect.h.

References HltBtagPostValidation_cff::c, cMass, cName, cSigma, kc, kf, mtkc, and Skims_PA_cff::name.

114  {
115  type = kf;
116  cName = name;
117  cMass = -1.0;
118  cSigma = -1.0;
119  kc = c;
120  mtkc = nullptr;
121  }
type
Definition: HCALResponse.h:21
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc
void BPHMassFitSelect::setFitConstraint ( const std::string &  name,
MultiTrackKinematicConstraint c 
)
inline

Definition at line 122 of file BPHMassFitSelect.h.

References HltBtagPostValidation_cff::c, cMass, cName, cSigma, kc, mtkc, mtkf, and Skims_PA_cff::name.

122  {
123  type = mtkf;
124  cName = name;
125  cMass = -1.0;
126  cSigma = -1.0;
127  kc = nullptr;
128  mtkc = c;
129  }
type
Definition: HCALResponse.h:21
KinematicConstraint * kc
MultiTrackKinematicConstraint * mtkc

Member Data Documentation

double BPHMassFitSelect::cMass
private

Definition at line 147 of file BPHMassFitSelect.h.

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

std::string BPHMassFitSelect::cName
private

Definition at line 146 of file BPHMassFitSelect.h.

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

double BPHMassFitSelect::cSigma
private

Definition at line 148 of file BPHMassFitSelect.h.

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

KinematicConstraint* BPHMassFitSelect::kc
private

Definition at line 149 of file BPHMassFitSelect.h.

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

MultiTrackKinematicConstraint* BPHMassFitSelect::mtkc
private

Definition at line 150 of file BPHMassFitSelect.h.

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

fit_type BPHMassFitSelect::type
private