CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PFDisplacedVertexHelper::VertexIdentifier Struct Reference

Tool which store the information for the vertex identification. More...

Public Member Functions

double angle_max () const
 
double angle_V0Conv_max () const
 
void Dump (std::ostream &out=std::cout) const
 
bool identifyVertices () const
 
double logPrimSec_min () const
 
double looper_eta_max () const
 
double mConv_max () const
 
double mK0_max () const
 
double mK0_min () const
 
double mK_max () const
 
double mK_min () const
 
double mLambda_max () const
 
double mLambda_min () const
 
double mNucl_min () const
 
double pt_kink_min () const
 
double pt_min () const
 
 VertexIdentifier ()
 
 VertexIdentifier (const edm::ParameterSet &ps)
 

Public Attributes

std::vector< double > angles_
 
bool bIdentifyVertices_
 
double logPrimSec_min_
 
double looper_eta_max_
 
std::vector< double > masses_
 
double pt_kink_min_
 
double pt_min_
 

Detailed Description

Tool which store the information for the vertex identification.

Definition at line 107 of file PFDisplacedVertexHelper.h.

Constructor & Destructor Documentation

◆ VertexIdentifier() [1/2]

PFDisplacedVertexHelper::VertexIdentifier::VertexIdentifier ( )
inline

Definition at line 108 of file PFDisplacedVertexHelper.h.

References a, particleFlowDisplacedVertex_cfi::angles, angles_, visualization-live-secondInstance_cfg::m, particleFlowDisplacedVertex_cfi::masses, and masses_.

109  : bIdentifyVertices_(false), pt_min_(0.2), pt_kink_min_(1.4), looper_eta_max_(0.1), logPrimSec_min_(0.2) {
110  double m[] = {0.050, 0.470, 0.525, 0.470, 0.525, 1.107, 1.125, 0.200};
111  std::vector<double> masses(m, m + 8);
112  masses_ = masses;
113 
114  double a[] = {60, 40};
115  std::vector<double> angles(a, a + 1);
116  angles_ = angles;
117  };
double a
Definition: hdecay.h:121

◆ VertexIdentifier() [2/2]

PFDisplacedVertexHelper::VertexIdentifier::VertexIdentifier ( const edm::ParameterSet ps)
inline

Definition at line 119 of file PFDisplacedVertexHelper.h.

References angles_, bIdentifyVertices_, edm::ParameterSet::getParameter(), logPrimSec_min_, looper_eta_max_, masses_, pt_kink_min_, and pt_min_.

119  {
120  bIdentifyVertices_ = ps.getParameter<bool>("bIdentifyVertices");
121  angles_ = ps.getParameter<std::vector<double> >("angles");
122  masses_ = ps.getParameter<std::vector<double> >("masses");
123  pt_min_ = ps.getParameter<double>("pt_min");
124  pt_kink_min_ = ps.getParameter<double>("pt_kink_min");
125  looper_eta_max_ = ps.getParameter<double>("looper_eta_max");
126  logPrimSec_min_ = ps.getParameter<double>("logPrimSec_min");
127  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

◆ angle_max()

double PFDisplacedVertexHelper::VertexIdentifier::angle_max ( ) const
inline

Definition at line 131 of file PFDisplacedVertexHelper.h.

References angles_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

131 { return angles_[0]; }

◆ angle_V0Conv_max()

double PFDisplacedVertexHelper::VertexIdentifier::angle_V0Conv_max ( ) const
inline

Definition at line 132 of file PFDisplacedVertexHelper.h.

References angles_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

132 { return angles_[1]; }

◆ Dump()

void PFDisplacedVertexHelper::VertexIdentifier::Dump ( std::ostream &  out = std::cout) const
inline

Definition at line 157 of file PFDisplacedVertexHelper.h.

References angle_max(), angle_V0Conv_max(), bIdentifyVertices_, logPrimSec_min_, looper_eta_max_, mConv_max(), mK0_max(), mK0_min(), mK_max(), mK_min(), mLambda_max(), mLambda_min(), mNucl_min(), MillePedeFileConverter_cfg::out, pt_kink_min_, pt_min_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by PFDisplacedVertexHelper::Dump().

157  {
158  if (!out)
159  return;
160  std::string s = bIdentifyVertices_ ? "On" : "Off";
161  out << "" << std::endl;
162  out << " ==== The Vertex Identifier is " << s.data() << " ==== " << std::endl;
163 
164  out << " pt_min_ = " << pt_min_ << " pt_kink_min_ = " << pt_kink_min_ << std::endl
165  << " looper_eta_max_ = " << looper_eta_max_ << " log10(P_Prim/P_Sec)_min " << logPrimSec_min_ << std::endl
166  << " Mass_conv > " << mConv_max() << std::endl
167  << " " << mK0_min() << " < Mass_K0 < " << mK0_max() << std::endl
168  << " " << mK_min() << " < Mass_K+- < " << mK_max() << std::endl
169  << " " << mLambda_min() << " < Mass_Lambda < " << mLambda_max() << std::endl
170  << " Mass_Nucl_ee > " << mNucl_min() << std::endl
171  << " angle_max = " << angle_max() << " angle_V0Conv_max = " << angle_V0Conv_max() << std::endl;
172  }

◆ identifyVertices()

bool PFDisplacedVertexHelper::VertexIdentifier::identifyVertices ( ) const
inline

◆ logPrimSec_min()

double PFDisplacedVertexHelper::VertexIdentifier::logPrimSec_min ( ) const
inline

◆ looper_eta_max()

double PFDisplacedVertexHelper::VertexIdentifier::looper_eta_max ( ) const
inline

◆ mConv_max()

double PFDisplacedVertexHelper::VertexIdentifier::mConv_max ( ) const
inline

Definition at line 137 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

137 { return masses_[0]; }

◆ mK0_max()

double PFDisplacedVertexHelper::VertexIdentifier::mK0_max ( ) const
inline

Definition at line 139 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

139 { return masses_[2]; }

◆ mK0_min()

double PFDisplacedVertexHelper::VertexIdentifier::mK0_min ( ) const
inline

Definition at line 138 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

138 { return masses_[1]; }

◆ mK_max()

double PFDisplacedVertexHelper::VertexIdentifier::mK_max ( ) const
inline

Definition at line 141 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::isKaonMass().

141 { return masses_[4]; }

◆ mK_min()

double PFDisplacedVertexHelper::VertexIdentifier::mK_min ( ) const
inline

Definition at line 140 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::isKaonMass().

140 { return masses_[3]; }

◆ mLambda_max()

double PFDisplacedVertexHelper::VertexIdentifier::mLambda_max ( ) const
inline

Definition at line 143 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::lambdaCP().

143 { return masses_[6]; }

◆ mLambda_min()

double PFDisplacedVertexHelper::VertexIdentifier::mLambda_min ( ) const
inline

Definition at line 142 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::lambdaCP().

142 { return masses_[5]; }

◆ mNucl_min()

double PFDisplacedVertexHelper::VertexIdentifier::mNucl_min ( ) const
inline

Definition at line 144 of file PFDisplacedVertexHelper.h.

References masses_.

Referenced by Dump(), and PFDisplacedVertexHelper::identifyVertex().

144 { return masses_[7]; }

◆ pt_kink_min()

double PFDisplacedVertexHelper::VertexIdentifier::pt_kink_min ( ) const
inline

◆ pt_min()

double PFDisplacedVertexHelper::VertexIdentifier::pt_min ( ) const
inline

Member Data Documentation

◆ angles_

std::vector<double> PFDisplacedVertexHelper::VertexIdentifier::angles_

Definition at line 150 of file PFDisplacedVertexHelper.h.

Referenced by angle_max(), angle_V0Conv_max(), and VertexIdentifier().

◆ bIdentifyVertices_

bool PFDisplacedVertexHelper::VertexIdentifier::bIdentifyVertices_

Definition at line 149 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), identifyVertices(), and VertexIdentifier().

◆ logPrimSec_min_

double PFDisplacedVertexHelper::VertexIdentifier::logPrimSec_min_

Definition at line 155 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), logPrimSec_min(), and VertexIdentifier().

◆ looper_eta_max_

double PFDisplacedVertexHelper::VertexIdentifier::looper_eta_max_

Definition at line 154 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), looper_eta_max(), and VertexIdentifier().

◆ masses_

std::vector<double> PFDisplacedVertexHelper::VertexIdentifier::masses_

◆ pt_kink_min_

double PFDisplacedVertexHelper::VertexIdentifier::pt_kink_min_

Definition at line 153 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), pt_kink_min(), and VertexIdentifier().

◆ pt_min_

double PFDisplacedVertexHelper::VertexIdentifier::pt_min_

Definition at line 152 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), pt_min(), and VertexIdentifier().