CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDVectorGetter Namespace Reference

Functions

bool check (const std::string &)
 
std::vector< double > get (const std::string &)
 

Function Documentation

bool DDVectorGetter::check ( const std::string &  str)
inline

Definition at line 14 of file DDVectorGetter.h.

References DDBase< DDName, std::vector< double > * >::end().

Referenced by SiStripQuality::add(), L1TFED::analyze(), FFTJetPatRecoProducer::buildDenseProduct(), FFTJetPatRecoProducer::buildSparseProduct(), Trajectory::closestMeasurement(), MuonGeometryArrange::compareGeometries(), TrackerGeometryCompare::compareGeometries(), DDcreateRotationMatrix(), DDrot(), DDrotReflect(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), EtaPhiEstimator::estimate(), TwoBodyDecayEstimator::estimate(), LMFDat::fetch(), DTCompactMapWriter::fillReadOutMap(), OpticalObject::findExtraEntryValue(), Trajectory::geometricalInnermostState(), L1MuDTTFMasks::get_etsoc_chdis_st1(), L1MuDTTFMasks::get_etsoc_chdis_st2(), L1MuDTTFMasks::get_etsoc_chdis_st3(), L1MuDTTFMasks::get_inrec_chdis_csc(), L1MuDTTFMasks::get_inrec_chdis_st1(), L1MuDTTFMasks::get_inrec_chdis_st2(), L1MuDTTFMasks::get_inrec_chdis_st3(), L1MuDTTFMasks::get_inrec_chdis_st4(), L1MuDTTFParameters::get_inrec_qual_st1(), L1MuDTTFParameters::get_inrec_qual_st2(), L1MuDTTFParameters::get_inrec_qual_st3(), L1MuDTTFParameters::get_inrec_qual_st4(), L1MuDTTFParameters::get_soc_csc_etacanc(), L1MuDTTFParameters::get_soc_nbx_del(), L1MuDTTFParameters::get_soc_openlut_extr(), L1MuDTTFParameters::get_soc_qcut_st1(), L1MuDTTFParameters::get_soc_qcut_st2(), L1MuDTTFParameters::get_soc_qcut_st4(), L1MuDTTFParameters::get_soc_qual_csc(), L1MuDTTFParameters::get_soc_run_21(), L1MuDTTFParameters::get_soc_stdis_n(), L1MuDTTFParameters::get_soc_stdis_wl(), L1MuDTTFParameters::get_soc_stdis_wr(), L1MuDTTFParameters::get_soc_stdis_zl(), L1MuDTTFParameters::get_soc_stdis_zr(), SimTrackManager::getOrCreateVertex(), TStorageFactorySystem::GetPathInfo(), DDLRotationAndReflection::isLeftHanded(), FWHtml::IsVisited(), JetCorrectorParameters::JetCorrectorParameters(), MuScleFitUtils::minimizeLikelihood(), amc13::Packet::parse(), PixelSLinkDataInputSource::PixelSLinkDataInputSource(), CSCChamberTimeCorrectionsValues::prefill(), CSCChipSpeedCorrectionDBConditions::prefillDBChipSpeedCorrection(), CSCGasGainCorrectionDBConditions::prefillDBGasGainCorrection(), PFAlgo::processBlock(), CSCDCCUnpacker::produce(), FFTJetPatRecoProducer::produce(), DDCoreToDDXMLOutput::rotation(), L1MuDTTFMasks::set_etsoc_chdis_st1(), L1MuDTTFMasks::set_etsoc_chdis_st2(), L1MuDTTFMasks::set_etsoc_chdis_st3(), L1MuDTTFMasks::set_inrec_chdis_csc(), L1MuDTTFMasks::set_inrec_chdis_st1(), L1MuDTTFMasks::set_inrec_chdis_st2(), L1MuDTTFMasks::set_inrec_chdis_st3(), L1MuDTTFMasks::set_inrec_chdis_st4(), L1MuDTTFParameters::set_inrec_qual_st1(), L1MuDTTFParameters::set_inrec_qual_st2(), L1MuDTTFParameters::set_inrec_qual_st3(), L1MuDTTFParameters::set_inrec_qual_st4(), L1MuDTTFParameters::set_soc_csc_etacanc(), L1MuDTTFParameters::set_soc_nbx_del(), L1MuDTTFParameters::set_soc_openlut_extr(), L1MuDTTFParameters::set_soc_qcut_st1(), L1MuDTTFParameters::set_soc_qcut_st2(), L1MuDTTFParameters::set_soc_qcut_st4(), L1MuDTTFParameters::set_soc_qual_csc(), L1MuDTTFParameters::set_soc_run_21(), L1MuDTTFParameters::set_soc_stdis_n(), L1MuDTTFParameters::set_soc_stdis_wl(), L1MuDTTFParameters::set_soc_stdis_wr(), L1MuDTTFParameters::set_soc_stdis_zl(), L1MuDTTFParameters::set_soc_stdis_zr(), AlgoPos::setParameters(), TracktoRPC::TracktoRPC(), CSCSPRecord::unpack(), gen::EvtGenLHCInterface::update_candlist(), and evf::EvFDaqDirector::updateFuLock().

15  {
16  DDVector::iterator<DDVector> vit;
17  DDVector::iterator<DDVector> ved( DDVector::end());
18 
19  for(; vit != ved; ++vit )
20  {
21  if( vit->isDefined().second )
22  {
23  DDName vname( vit->name());
24  if( vname.name() == str )
25  return true;
26  }
27  }
28 
29  return false;
30  }
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:18
static DDI::Store< DDName, std::vector< double > * >::iterator end()
Definition: DDBase.h:69
std::vector< double > DDVectorGetter::get ( const std::string &  str)
inline

Definition at line 33 of file DDVectorGetter.h.

References DDBase< DDName, std::vector< double > * >::end(), and edm::hlt::Exception.

Referenced by PTrackerParametersDBBuilder::beginRun(), and TrackerGeometricDetESModule::produce().

34  {
35  DDVector::iterator<DDVector> vit;
36  DDVector::iterator<DDVector> ved( DDVector::end());
37  if( vit == ved )
38  throw cms::Exception( "DDException" ) << "DDVectorGetter: vectors are empty, cannot get array " << str;
39 
40  for (; vit != ved; ++vit )
41  {
42  if( vit->isDefined().second )
43  {
44  DDName vname( vit->name());
45  if( vname.name() == str )
46  {
47  const std::vector<double> & fvec = vit->values();
48  return fvec;
49  }
50  }
51  }
52 
53  throw cms::Exception( "DDException" ) << "DDVectorGetter: cannot get array " << str;
54  }
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:18
static DDI::Store< DDName, std::vector< double > * >::iterator end()
Definition: DDBase.h:69