test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

virtual bool accept (const BPHKinematicFit &cand) const
 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)
 
virtual ~BPHMassFitSelect ()
 
- 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)
 
BPHMassFitSelectoperator= (const BPHMassFitSelect &x)
 

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

Constructor

Definition at line 40 of file BPHMassFitSelect.h.

References setFitConstraint().

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

Definition at line 43 of file BPHMassFitSelect.h.

References setFitConstraint().

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

Definition at line 47 of file BPHMassFitSelect.h.

References setFitConstraint().

48  :
void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:40
BPHMassFitSelect::BPHMassFitSelect ( const std::string &  name,
KinematicConstraint c,
double  minMass,
double  maxMass 
)
inline

Definition at line 51 of file BPHMassFitSelect.h.

References setFitConstraint().

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

Definition at line 55 of file BPHMassFitSelect.h.

References setFitConstraint().

56  :
void setFitConstraint()
set fit constraint
BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:40
virtual BPHMassFitSelect::~BPHMassFitSelect ( )
inlinevirtual

Destructor

Definition at line 61 of file BPHMassFitSelect.h.

61  {
62  }
BPHMassFitSelect::BPHMassFitSelect ( const BPHMassFitSelect x)
private

Member Function Documentation

virtual bool BPHMassFitSelect::accept ( const BPHKinematicFit cand) const
inlinevirtual

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(), and esMonitoring.FDJsonServer::handle_accept().

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 mtkc.

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)
private
void BPHMassFitSelect::setFitConstraint ( )
inline

set fit constraint

Definition at line 81 of file BPHMassFitSelect.h.

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

Referenced by BPHMassFitSelect().

81  {
82  type = none;
83  cName = "" ;
84  cMass = -1.0;
85  cSigma = -1.0;
86  kc = 0 ;
87  mtkc = 0 ;
88  }
type
Definition: HCALResponse.h:21
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, and mergeVDriftHistosByStation::name.

89  {
90  type = mcst;
91  cName = name ;
92  cMass = mass ;
93  cSigma = -1.0 ;
94  kc = 0 ;
95  mtkc = 0 ;
96  }
type
Definition: HCALResponse.h:21
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, and mergeVDriftHistosByStation::name.

97  {
98  type = mcss;
99  cName = name ;
100  cMass = mass ;
101  cSigma = sigma;
102  kc = 0 ;
103  mtkc = 0 ;
104  }
type
Definition: HCALResponse.h:21
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, and mergeVDriftHistosByStation::name.

105  {
106  type = kf;
107  cName = name ;
108  cMass = -1.0 ;
109  cSigma = -1.0 ;
110  kc = c ;
111  mtkc = 0 ;
112  }
type
Definition: HCALResponse.h:21
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, and mergeVDriftHistosByStation::name.

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

Member Data Documentation

double BPHMassFitSelect::cMass
private

Definition at line 140 of file BPHMassFitSelect.h.

Referenced by getMass(), and setFitConstraint().

std::string BPHMassFitSelect::cName
private

Definition at line 139 of file BPHMassFitSelect.h.

Referenced by getConstrainedName(), and setFitConstraint().

double BPHMassFitSelect::cSigma
private

Definition at line 141 of file BPHMassFitSelect.h.

Referenced by getSigma(), and setFitConstraint().

KinematicConstraint* BPHMassFitSelect::kc
private

Definition at line 142 of file BPHMassFitSelect.h.

Referenced by getKC(), and setFitConstraint().

MultiTrackKinematicConstraint* BPHMassFitSelect::mtkc
private

Definition at line 143 of file BPHMassFitSelect.h.

Referenced by getMultiTrackKC(), and setFitConstraint().

fit_type BPHMassFitSelect::type
private