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 27 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::const_iterator> SiStripDbParams::const_iterator_range |
Definition at line 51 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::iterator> SiStripDbParams::iterator_range |
Definition at line 53 of file SiStripDbParams.h.
typedef std::map< std::string, SiStripPartition > SiStripDbParams::SiStripPartitions |
Definition at line 47 of file SiStripDbParams.h.
typedef SiStripPartitions::size_type SiStripDbParams::size_type |
Definition at line 49 of file SiStripDbParams.h.
SiStripDbParams::SiStripDbParams | ( | ) |
Definition at line 12 of file SiStripDbParams.cc.
SiStripDbParams::SiStripDbParams | ( | const SiStripDbParams & | input | ) |
Definition at line 30 of file SiStripDbParams.cc.
SiStripDbParams::~SiStripDbParams | ( | ) |
Definition at line 102 of file SiStripDbParams.cc.
References reset().
void SiStripDbParams::addPartition | ( | const SiStripPartition & | in | ) |
Definition at line 127 of file SiStripDbParams.cc.
References SiStripPartition::defaultPartitionName_, recoMuon::in, LogTrace, sistrip::mlConfigDb_, SiStripPartition::partitionName(), and partitions_.
Referenced by pset(), SiStripConfigDb::usingDatabase(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
Definition at line 198 of file SiStripDbParams.h.
References partitions_.
Referenced by SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 178 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 210 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 228 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 375 of file SiStripDbParams.cc.
References linker::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFecXmlFiles | ( | ) | const |
Definition at line 385 of file SiStripDbParams.cc.
References linker::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFedXmlFiles | ( | ) | const |
Definition at line 395 of file SiStripDbParams.cc.
References linker::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputModuleXmlFiles | ( | ) | const |
Definition at line 365 of file SiStripDbParams.cc.
References linker::files, cuy::ii, findQualityFiles::jj, and partitions_.
bool SiStripDbParams::operator!= | ( | const SiStripDbParams & | input | ) | const |
SiStripDbParams & SiStripDbParams::operator= | ( | const SiStripDbParams & | input | ) |
Definition at line 48 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 69 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 194 of file SiStripDbParams.h.
References outputDcuInfoXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 195 of file SiStripDbParams.h.
References outputFecXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 196 of file SiStripDbParams.h.
References outputFedXml_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 193 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 246 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 255 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 264 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 285 of file SiStripDbParams.cc.
References partitions(), 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 296 of file SiStripDbParams.cc.
References first, cuy::ii, and findQualityFiles::jj.
|
inline |
Returns pair of const iterators to partitions objects.
Definition at line 186 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 188 of file SiStripDbParams.h.
References partitions_.
|
inline |
Return the number of partitions.
Definition at line 191 of file SiStripDbParams.h.
References partitions_.
Referenced by operator==().
|
inline |
Definition at line 180 of file SiStripDbParams.h.
References passwd_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 181 of file SiStripDbParams.h.
References path_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
void SiStripDbParams::print | ( | std::stringstream & | ss | ) | const |
Definition at line 312 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 164 of file SiStripDbParams.cc.
References addPartition(), confdb(), funct::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 108 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 183 of file SiStripDbParams.h.
References sharedMemory_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
Definition at line 201 of file SiStripDbParams.h.
References mergeVDriftHistosByStation::name, and sharedMemory_.
|
inline |
Definition at line 184 of file SiStripDbParams.h.
References tnsAdmin_.
Referenced by operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 179 of file SiStripDbParams.h.
References user_.
Referenced by confdb(), operator=(), operator==(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 177 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 182 of file SiStripDbParams.h.
References usingDbCache_.
Referenced by SiStripConfigDb::openDbConnection(), operator=(), operator==(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
|
private |
Definition at line 149 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), print(), and reset().
|
private |
Definition at line 167 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputDcuInfoXml(), print(), pset(), and reset().
|
private |
Definition at line 169 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFecXml(), print(), pset(), and reset().
|
private |
Definition at line 171 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFedXml(), print(), pset(), and reset().
|
private |
Definition at line 165 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputModuleXml(), print(), pset(), and reset().
|
private |
Definition at line 163 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 153 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), passwd(), and reset().
|
private |
Definition at line 155 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 159 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and sharedMemory().
|
private |
Definition at line 161 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), pset(), reset(), and tnsAdmin().
|
private |
Definition at line 151 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), reset(), and user().
|
private |
Definition at line 147 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDb().
|
private |
Definition at line 157 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDbCache().