CMS 3D CMS Logo

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

Functions

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

Function Documentation

void DDVectorGetter::beginWith ( const std::string &  str,
std::vector< std::string > &  vstring 
)
inline

Definition at line 58 of file DDVectorGetter.h.

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

59  {
60  DDVector::iterator<DDVector> vit;
61  DDVector::iterator<DDVector> ved( DDVector::end());
62 
63  for(; vit != ved; ++vit )
64  {
65  if( vit->isDefined().second )
66  {
67  DDName vname( vit->name());
68  if( vname.name().compare( 0, str.size(), str ) == 0 )
69  vstring.push_back( vname.name());
70  }
71  }
72  }
vector< string > vstring
Definition: ExoticaDQM.cc:86
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:18
bool DDVectorGetter::check ( const std::string &  str)
inline

Definition at line 15 of file DDVectorGetter.h.

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

Referenced by SiStripQuality::add(), L1TFED::analyze(), HcalParametersFromDD::build(), TrackerParametersFromDD::build(), 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(), amc::Packet::finalize(), 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(), METCorrectorParameters::METCorrectorParameters(), 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(), TracktoRPC::TracktoRPC(), CSCSPRecord::unpack(), gen::EvtGenLHCInterface::update_candlist(), and evf::EvFDaqDirector::updateFuLock().

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

Definition at line 34 of file DDVectorGetter.h.

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

Referenced by HcalParametersFromDD::build(), TrackerParametersFromDD::build(), and TrackerGeometricDetESModule::produce().

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