CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions
TrackMultiSelector::Block Struct Reference

Public Member Functions

 Block (const edm::ParameterSet &cfg)
 

Public Attributes

std::pair< double, double > chi2n
 
double d0
 
double d0Rel
 
double dz
 
double dzRel
 
std::pair< uint32_t, uint32_t > lhits
 
std::pair< double, double > pt
 
std::pair< uint32_t, uint32_t > vlayers
 

Private Member Functions

template<typename T >
std::pair< T, Tp2p (const edm::ParameterSet &cfg, const std::string name)
 

Detailed Description

Definition at line 34 of file TrackMultiSelector.cc.

Constructor & Destructor Documentation

TrackMultiSelector::Block::Block ( const edm::ParameterSet cfg)
explicit

Definition at line 112 of file TrackMultiSelector.cc.

112  :
113  pt(p2p<double>(cfg,"pt")),
114  vlayers(p2p<uint32_t>(cfg,"validLayers")),
115  lhits(p2p<uint32_t>(cfg,"lostHits")),
116  chi2n(p2p<double>(cfg,"chi2n")),
117  d0(cfg.getParameter<double>("d0")),
118  dz(cfg.getParameter<double>("dz")),
119  d0Rel(cfg.getParameter<double>("d0Rel")),
120  dzRel(cfg.getParameter<double>("dzRel"))
121 {
122 }
T getParameter(std::string const &) const
std::pair< double, double > pt
std::pair< uint32_t, uint32_t > vlayers
std::pair< uint32_t, uint32_t > lhits
std::pair< double, double > chi2n

Member Function Documentation

template<typename T >
std::pair< T, T > TrackMultiSelector::Block::p2p ( const edm::ParameterSet cfg,
const std::string  name 
)
private

Definition at line 99 of file TrackMultiSelector.cc.

References edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::name, and runTheMatrix::ret.

99  {
100  typedef typename std::vector<T> Ts;
101  Ts ret = cfg.getParameter<Ts>(name);
102  if (ret.size() != 2) throw cms::Exception("Invalid configuration") << "Parameter '" << name << "' must be given as {min,max}";
103  return std::pair<T,T>(ret[0],ret[1]);
104 }
T getParameter(std::string const &) const
tuple ret
prodAgent to be discontinued

Member Data Documentation

std::pair<double,double> TrackMultiSelector::Block::chi2n

Definition at line 37 of file TrackMultiSelector.cc.

double TrackMultiSelector::Block::d0

Definition at line 38 of file TrackMultiSelector.cc.

Referenced by TrackMultiSelector::testVtx().

double TrackMultiSelector::Block::d0Rel

Definition at line 38 of file TrackMultiSelector.cc.

Referenced by TrackMultiSelector::testVtx().

double TrackMultiSelector::Block::dz
double TrackMultiSelector::Block::dzRel

Definition at line 38 of file TrackMultiSelector.cc.

Referenced by TrackMultiSelector::testVtx().

std::pair<uint32_t,uint32_t> TrackMultiSelector::Block::lhits

Definition at line 36 of file TrackMultiSelector.cc.

std::pair<double,double> TrackMultiSelector::Block::pt
std::pair<uint32_t,uint32_t> TrackMultiSelector::Block::vlayers

Definition at line 36 of file TrackMultiSelector.cc.