Container class for database connection parameters. More...
#include <SiStripDbParams.h>
Public Types | |
typedef boost::iterator_range < SiStripPartitions::const_iterator > | const_iterator_range |
typedef boost::iterator_range < SiStripPartitions::iterator > | iterator_range |
typedef std::map< std::string, SiStripPartition > | SiStripPartitions |
typedef SiStripPartitions::size_type | size_type |
Public Member Functions | |
void | addPartition (const SiStripPartition &) |
void | clearPartitions () |
std::string | confdb () const |
void | confdb (const std::string &) |
void | confdb (const std::string &user, const std::string &passwd, const std::string &path) |
std::vector< std::string > | inputDcuInfoXmlFiles () const |
std::vector< std::string > | inputFecXmlFiles () const |
std::vector< std::string > | inputFedXmlFiles () const |
std::vector< std::string > | inputModuleXmlFiles () const |
bool | operator!= (const SiStripDbParams &) const |
SiStripDbParams & | operator= (const SiStripDbParams &) |
bool | operator== (const SiStripDbParams &) const |
std::string | outputDcuInfoXml () const |
std::string | outputFecXml () const |
std::string | outputFedXml () const |
std::string | outputModuleXml () const |
SiStripPartitions::const_iterator | partition (std::string partition_name) const |
SiStripPartitions::iterator | partition (std::string partition_name) |
std::vector< std::string > | partitionNames () const |
std::vector< std::string > | partitionNames (std::string) const |
std::string | partitionNames (const std::vector< std::string > &) const |
const_iterator_range | partitions () const |
iterator_range | partitions () |
size_type | partitionsSize () const |
std::string | passwd () const |
std::string | path () const |
void | print (std::stringstream &) const |
void | pset (const edm::ParameterSet &) |
void | reset () |
std::string | sharedMemory () const |
void | sharedMemory (std::string) |
SiStripDbParams () | |
SiStripDbParams (const SiStripDbParams &) | |
std::string | tnsAdmin () const |
std::string | user () const |
bool | usingDb () const |
void | usingDb (bool) |
bool | usingDbCache () const |
void | usingDbCache (bool) |
~SiStripDbParams () | |
Private Attributes | |
std::string | confdb_ |
std::string | outputDcuInfoXml_ |
std::string | outputFecXml_ |
std::string | outputFedXml_ |
std::string | outputModuleXml_ |
SiStripPartitions | partitions_ |
std::string | passwd_ |
std::string | path_ |
std::string | sharedMemory_ |
std::string | tnsAdmin_ |
std::string | user_ |
bool | usingDb_ |
bool | usingDbCache_ |
Container class for database connection parameters.
Definition at line 26 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::const_iterator> SiStripDbParams::const_iterator_range |
Definition at line 50 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::iterator> SiStripDbParams::iterator_range |
Definition at line 52 of file SiStripDbParams.h.
typedef std::map< std::string, SiStripPartition > SiStripDbParams::SiStripPartitions |
Definition at line 46 of file SiStripDbParams.h.
typedef SiStripPartitions::size_type SiStripDbParams::size_type |
Definition at line 48 of file SiStripDbParams.h.
SiStripDbParams::SiStripDbParams | ( | ) |
Definition at line 11 of file SiStripDbParams.cc.
SiStripDbParams::SiStripDbParams | ( | const SiStripDbParams & | input | ) |
Definition at line 29 of file SiStripDbParams.cc.
SiStripDbParams::~SiStripDbParams | ( | ) |
Definition at line 101 of file SiStripDbParams.cc.
References reset().
void SiStripDbParams::addPartition | ( | const SiStripPartition & | in | ) |
Definition at line 126 of file SiStripDbParams.cc.
References SiStripPartition::defaultPartitionName_, recoMuon::in, getDQMSummary::iter, LogTrace, sistrip::mlConfigDb_, SiStripPartition::partitionName(), partitions_, and contentValuesCheck::ss.
Referenced by pset(), SiStripConfigDb::usingDatabase(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
Definition at line 197 of file SiStripDbParams.h.
References partitions_.
Referenced by SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 177 of file SiStripDbParams.h.
References confdb_.
Referenced by confdb(), operator=(), operator==(), pset(), reset(), and SiStripConfigDb::usingDatabase().
void SiStripDbParams::confdb | ( | const std::string & | confdb | ) |
Definition at line 209 of file SiStripDbParams.cc.
References confdb(), confdb_, sistrip::null_, passwd_, path_, and user_.
void SiStripDbParams::confdb | ( | const std::string & | user, |
const std::string & | passwd, | ||
const std::string & | path | ||
) |
Definition at line 227 of file SiStripDbParams.cc.
References confdb_, sistrip::null_, passwd(), passwd_, path(), path_, user(), and user_.
std::vector< std::string > SiStripDbParams::inputDcuInfoXmlFiles | ( | ) | const |
Definition at line 374 of file SiStripDbParams.cc.
References MainPageGenerator::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFecXmlFiles | ( | ) | const |
Definition at line 384 of file SiStripDbParams.cc.
References MainPageGenerator::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFedXmlFiles | ( | ) | const |
Definition at line 394 of file SiStripDbParams.cc.
References MainPageGenerator::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputModuleXmlFiles | ( | ) | const |
Definition at line 364 of file SiStripDbParams.cc.
References MainPageGenerator::files, cuy::ii, findQualityFiles::jj, and partitions_.
bool SiStripDbParams::operator!= | ( | const SiStripDbParams & | input | ) | const |
SiStripDbParams & SiStripDbParams::operator= | ( | const SiStripDbParams & | input | ) |
Definition at line 47 of file SiStripDbParams.cc.
References confdb(), confdb_, outputDcuInfoXml(), outputDcuInfoXml_, outputFecXml(), outputFecXml_, outputFedXml(), outputFedXml_, outputModuleXml(), outputModuleXml_, partitions(), partitions_, passwd(), passwd_, path(), path_, sharedMemory(), sharedMemory_, tnsAdmin(), tnsAdmin_, user(), user_, usingDb(), usingDb_, usingDbCache(), and usingDbCache_.
bool SiStripDbParams::operator== | ( | const SiStripDbParams & | input | ) | const |
Definition at line 68 of file SiStripDbParams.cc.
References confdb(), confdb_, outputDcuInfoXml(), outputDcuInfoXml_, outputFecXml(), outputFecXml_, outputFedXml(), outputFedXml_, outputModuleXml(), outputModuleXml_, partitions_, partitionsSize(), passwd(), passwd_, path(), path_, sharedMemory(), sharedMemory_, tnsAdmin(), tnsAdmin_, user(), user_, usingDb(), usingDb_, usingDbCache(), and usingDbCache_.
|
inline |
Definition at line 193 of file SiStripDbParams.h.
References outputDcuInfoXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 194 of file SiStripDbParams.h.
References outputFecXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 195 of file SiStripDbParams.h.
References outputFedXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 192 of file SiStripDbParams.h.
References outputModuleXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
SiStripDbParams::SiStripPartitions::const_iterator SiStripDbParams::partition | ( | std::string | partition_name | ) | const |
Returns const iterator to partition object.
Definition at line 245 of file SiStripDbParams.cc.
References cuy::ii, findQualityFiles::jj, and partitions().
Referenced by SiStripConfigDb::runs().
SiStripDbParams::SiStripPartitions::iterator SiStripDbParams::partition | ( | std::string | partition_name | ) |
Returns iterator to partition object.
Definition at line 254 of file SiStripDbParams.cc.
References cuy::ii, findQualityFiles::jj, and partitions().
std::vector< std::string > SiStripDbParams::partitionNames | ( | ) | const |
Extract (non-zero) partition names from partition objects.
Definition at line 263 of file SiStripDbParams.cc.
References spr::find(), cuy::ii, findQualityFiles::jj, sistrip::mlConfigDb_, partitions(), and partitions_.
Referenced by SiStripConfigDb::usingDatabase().
std::vector< std::string > SiStripDbParams::partitionNames | ( | std::string | input | ) | const |
Extract (non-zero) partition names from string.
Definition at line 284 of file SiStripDbParams.cc.
References partitions(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
std::string SiStripDbParams::partitionNames | ( | const std::vector< std::string > & | partitions | ) | const |
Construct string from (non-zero) partition names.
Definition at line 295 of file SiStripDbParams.cc.
References plotBeamSpotDB::first, cuy::ii, findQualityFiles::jj, and contentValuesCheck::ss.
|
inline |
Returns pair of const iterators to partitions objects.
Definition at line 185 of file SiStripDbParams.h.
References partitions_.
Referenced by CommissioningHistosUsingDb::buildDetInfo(), SiStripCondObjBuilderFromDb::checkForCompatibility(), NoiseHistosUsingDb::create(), OptoScanHistosUsingDb::create(), PedestalsHistosUsingDb::create(), PedsFullNoiseHistosUsingDb::create(), PedsOnlyHistosUsingDb::create(), VpspScanHistosUsingDb::create(), ApvTimingHistosUsingDb::create(), LatencyHistosUsingDb::create(), CalibrationHistosUsingDb::create(), FastFedCablingHistosUsingDb::create(), FineDelayHistosUsingDb::create(), operator=(), partition(), partitionNames(), pset(), SiStripPsuDetIdMap::retrieveDcuDeviceAddresses(), SiStripConfigDb::runs(), CommissioningHistosUsingDb::uploadAnalyses(), FastFedCablingHistosUsingDb::uploadConfigurations(), SiStripConfigDb::usingDatabase(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Returns pair of iterators to partitions objects.
Definition at line 187 of file SiStripDbParams.h.
References partitions_.
|
inline |
Return the number of partitions.
Definition at line 190 of file SiStripDbParams.h.
References partitions_.
Referenced by operator==().
|
inline |
Definition at line 179 of file SiStripDbParams.h.
References passwd_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 180 of file SiStripDbParams.h.
References path_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
void SiStripDbParams::print | ( | std::stringstream & | ss | ) | const |
Definition at line 311 of file SiStripDbParams.cc.
References confdb_, cuy::ii, findQualityFiles::jj, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions_, sharedMemory_, usingDb_, and usingDbCache_.
Referenced by operator<<().
void SiStripDbParams::pset | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 163 of file SiStripDbParams.cc.
References addPartition(), confdb(), edm::false, spr::find(), edm::ParameterSet::getParameterNamesForType(), edm::ParameterSet::getUntrackedParameter(), cscdqm::h::names, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions(), partitions_, SiStripPartition::pset(), sharedMemory_, AlCaHLTBitMon_QueryRunRegistry::string, tmp, tnsAdmin_, usingDb_, and usingDbCache_.
Referenced by SiStripConfigDb::SiStripConfigDb().
void SiStripDbParams::reset | ( | void | ) |
Definition at line 107 of file SiStripDbParams.cc.
References confdb(), confdb_, sistrip::null_, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions_, passwd_, path_, sharedMemory_, tnsAdmin_, user_, usingDb_, and usingDbCache_.
Referenced by SiStripConfigDb::SiStripConfigDb(), SiStripConfigDb::usingDatabaseCache(), and ~SiStripDbParams().
|
inline |
Definition at line 182 of file SiStripDbParams.h.
References sharedMemory_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
Definition at line 200 of file SiStripDbParams.h.
References mergeVDriftHistosByStation::name, and sharedMemory_.
|
inline |
Definition at line 183 of file SiStripDbParams.h.
References tnsAdmin_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 178 of file SiStripDbParams.h.
References user_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 176 of file SiStripDbParams.h.
References usingDb_.
Referenced by SiStripConfigDb::openDbConnection(), operator=(), operator==(), SiStripConfigDb::usingDatabase(), SiStripConfigDb::usingDatabaseCache(), SiStripConfigDb::usingDb(), and SiStripConfigDb::usingXmlFiles().
|
inline |
|
inline |
Definition at line 181 of file SiStripDbParams.h.
References usingDbCache_.
Referenced by SiStripConfigDb::openDbConnection(), operator=(), operator==(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
|
private |
Definition at line 148 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), print(), and reset().
|
private |
Definition at line 166 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputDcuInfoXml(), print(), pset(), and reset().
|
private |
Definition at line 168 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFecXml(), print(), pset(), and reset().
|
private |
Definition at line 170 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFedXml(), print(), pset(), and reset().
|
private |
Definition at line 164 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputModuleXml(), print(), pset(), and reset().
|
private |
Definition at line 162 of file SiStripDbParams.h.
Referenced by addPartition(), clearPartitions(), inputDcuInfoXmlFiles(), inputFecXmlFiles(), inputFedXmlFiles(), inputModuleXmlFiles(), operator=(), operator==(), partitionNames(), partitions(), partitionsSize(), print(), pset(), and reset().
|
private |
Definition at line 152 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), passwd(), and reset().
|
private |
Definition at line 154 of file SiStripDbParams.h.
Referenced by valtools.comparison::comparisonOnWebSite(), valtools.comparison::comparisonUrl(), confdb(), operator=(), operator==(), path(), reset(), and valtools.comparison::submit().
|
private |
Definition at line 158 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and sharedMemory().
|
private |
Definition at line 160 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), pset(), reset(), and tnsAdmin().
|
private |
Definition at line 150 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), reset(), and user().
|
private |
Definition at line 146 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDb().
|
private |
Definition at line 156 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDbCache().