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::iterator | partition (std::string partition_name) |
SiStripPartitions::const_iterator | partition (std::string partition_name) const |
std::vector< std::string > | partitionNames () const |
std::string | partitionNames (const std::vector< std::string > &) const |
std::vector< std::string > | partitionNames (std::string) const |
iterator_range | partitions () |
const_iterator_range | partitions () const |
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 25 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::const_iterator> SiStripDbParams::const_iterator_range |
Definition at line 47 of file SiStripDbParams.h.
typedef boost::iterator_range<SiStripPartitions::iterator> SiStripDbParams::iterator_range |
Definition at line 49 of file SiStripDbParams.h.
typedef std::map<std::string, SiStripPartition> SiStripDbParams::SiStripPartitions |
Definition at line 43 of file SiStripDbParams.h.
typedef SiStripPartitions::size_type SiStripDbParams::size_type |
Definition at line 45 of file SiStripDbParams.h.
SiStripDbParams::SiStripDbParams | ( | ) |
Definition at line 11 of file SiStripDbParams.cc.
SiStripDbParams::SiStripDbParams | ( | const SiStripDbParams & | input | ) |
Definition at line 30 of file SiStripDbParams.cc.
SiStripDbParams::~SiStripDbParams | ( | ) |
void SiStripDbParams::addPartition | ( | const SiStripPartition & | in | ) |
Definition at line 121 of file SiStripDbParams.cc.
References SiStripPartition::defaultPartitionName_, recoMuon::in, LogTrace, sistrip::mlConfigDb_, partitions_, and contentValuesCheck::ss.
Referenced by pset(), SiStripConfigDb::usingDatabase(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
Definition at line 192 of file SiStripDbParams.h.
References partitions_.
Referenced by SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 170 of file SiStripDbParams.h.
References confdb_.
Referenced by confdb(), operator=(), pset(), reset(), and SiStripConfigDb::usingDatabase().
void SiStripDbParams::confdb | ( | const std::string & | confdb | ) |
Definition at line 195 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 | ||
) |
std::vector< std::string > SiStripDbParams::inputDcuInfoXmlFiles | ( | ) | const |
Definition at line 368 of file SiStripDbParams.cc.
References submitPVResolutionJobs::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFecXmlFiles | ( | ) | const |
Definition at line 380 of file SiStripDbParams.cc.
References submitPVResolutionJobs::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputFedXmlFiles | ( | ) | const |
Definition at line 392 of file SiStripDbParams.cc.
References submitPVResolutionJobs::files, cuy::ii, findQualityFiles::jj, and partitions_.
std::vector< std::string > SiStripDbParams::inputModuleXmlFiles | ( | ) | const |
Definition at line 356 of file SiStripDbParams.cc.
References submitPVResolutionJobs::files, cuy::ii, findQualityFiles::jj, and partitions_.
bool SiStripDbParams::operator!= | ( | const SiStripDbParams & | input | ) | const |
SiStripDbParams & SiStripDbParams::operator= | ( | const SiStripDbParams & | input | ) |
Definition at line 49 of file SiStripDbParams.cc.
References confdb(), confdb_, input, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions_, passwd_, path_, sharedMemory_, tnsAdmin_, user_, usingDb_, and usingDbCache_.
bool SiStripDbParams::operator== | ( | const SiStripDbParams & | input | ) | const |
Definition at line 70 of file SiStripDbParams.cc.
References confdb_, input, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions_, partitionsSize(), passwd_, path_, sharedMemory_, tnsAdmin_, user_, usingDb_, and usingDbCache_.
|
inline |
Definition at line 188 of file SiStripDbParams.h.
References outputDcuInfoXml_.
Referenced by SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 189 of file SiStripDbParams.h.
References outputFecXml_.
Referenced by SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 190 of file SiStripDbParams.h.
References outputFedXml_.
Referenced by SiStripConfigDb::usingXmlFiles().
|
inline |
Definition at line 187 of file SiStripDbParams.h.
References outputModuleXml_.
Referenced by SiStripConfigDb::usingXmlFiles().
SiStripDbParams::SiStripPartitions::iterator SiStripDbParams::partition | ( | std::string | partition_name | ) |
Returns iterator to partition object.
Definition at line 240 of file SiStripDbParams.cc.
References cuy::ii, findQualityFiles::jj, and partitions().
SiStripDbParams::SiStripPartitions::const_iterator SiStripDbParams::partition | ( | std::string | partition_name | ) | const |
Returns const iterator to partition object.
Definition at line 227 of file SiStripDbParams.cc.
References cuy::ii, findQualityFiles::jj, and partitions().
Referenced by SiStripConfigDb::runs().
std::vector< std::string > SiStripDbParams::partitionNames | ( | ) | const |
Extract (non-zero) partition names from partition objects.
Definition at line 253 of file SiStripDbParams.cc.
References spr::find(), cuy::ii, findQualityFiles::jj, sistrip::mlConfigDb_, partitions(), and partitions_.
Referenced by SiStripConfigDb::usingDatabase().
std::string SiStripDbParams::partitionNames | ( | const std::vector< std::string > & | partitions | ) | const |
Construct string from (non-zero) partition names.
Definition at line 288 of file SiStripDbParams.cc.
References first, cuy::ii, findQualityFiles::jj, partitions(), and contentValuesCheck::ss.
std::vector< std::string > SiStripDbParams::partitionNames | ( | std::string | input | ) | const |
Extract (non-zero) partition names from string.
Definition at line 273 of file SiStripDbParams.cc.
References makeHLTPrescaleTable::delimiter, input, partitions(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and unpackBuffers-CaloStage2::token.
|
inline |
Returns pair of iterators to partitions objects.
Definition at line 181 of file SiStripDbParams.h.
References partitions_.
|
inline |
Returns pair of const iterators to partitions objects.
Definition at line 178 of file SiStripDbParams.h.
References partitions_.
Referenced by CommissioningHistosUsingDb::buildDetInfo(), SiStripCondObjBuilderFromDb::checkForCompatibility(), DaqScopeModeHistosUsingDb::create(), VpspScanHistosUsingDb::create(), NoiseHistosUsingDb::create(), OptoScanHistosUsingDb::create(), PedestalsHistosUsingDb::create(), PedsFullNoiseHistosUsingDb::create(), PedsOnlyHistosUsingDb::create(), ApvTimingHistosUsingDb::create(), LatencyHistosUsingDb::create(), CalibrationHistosUsingDb::create(), FastFedCablingHistosUsingDb::create(), FineDelayHistosUsingDb::create(), SiStripCondObjBuilderFromDb::getConfigString(), partition(), partitionNames(), pset(), SiStripPsuDetIdMap::retrieveDcuDeviceAddresses(), SiStripConfigDb::runs(), CommissioningHistosUsingDb::uploadAnalyses(), FastFedCablingHistosUsingDb::uploadConfigurations(), SiStripConfigDb::usingDatabase(), and SiStripConfigDb::usingXmlFiles().
|
inline |
Return the number of partitions.
Definition at line 185 of file SiStripDbParams.h.
References partitions_.
Referenced by operator==().
|
inline |
Definition at line 172 of file SiStripDbParams.h.
References passwd_.
Referenced by confdb(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 173 of file SiStripDbParams.h.
References path_.
Referenced by confdb(), and SiStripConfigDb::usingDatabase().
void SiStripDbParams::print | ( | std::stringstream & | ss | ) | const |
Definition at line 304 of file SiStripDbParams.cc.
References cuy::ii, findQualityFiles::jj, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions_, path_, sharedMemory_, contentValuesCheck::ss, user_, usingDb_, and usingDbCache_.
void SiStripDbParams::pset | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 151 of file SiStripDbParams.cc.
References addPartition(), looper::cfg, confdb(), spr::find(), edm::ParameterSet::getParameterNamesForType(), edm::ParameterSet::getUntrackedParameter(), names, outputDcuInfoXml_, outputFecXml_, outputFedXml_, outputModuleXml_, partitions(), partitions_, sharedMemory_, str, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, tnsAdmin_, usingDb_, and usingDbCache_.
Referenced by SiStripConfigDb::SiStripConfigDb().
void SiStripDbParams::reset | ( | void | ) |
Definition at line 102 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 175 of file SiStripDbParams.h.
References sharedMemory_.
Referenced by SiStripConfigDb::usingDatabaseCache().
|
inline |
|
inline |
Definition at line 176 of file SiStripDbParams.h.
References tnsAdmin_.
Referenced by SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 171 of file SiStripDbParams.h.
References user_.
Referenced by confdb(), and SiStripConfigDb::usingDatabase().
|
inline |
Definition at line 169 of file SiStripDbParams.h.
References usingDb_.
Referenced by SiStripConfigDb::openDbConnection(), SiStripConfigDb::usingDatabase(), SiStripConfigDb::usingDatabaseCache(), SiStripConfigDb::usingDb(), and SiStripConfigDb::usingXmlFiles().
|
inline |
|
inline |
Definition at line 174 of file SiStripDbParams.h.
References usingDbCache_.
Referenced by SiStripConfigDb::openDbConnection(), and SiStripConfigDb::usingDatabaseCache().
|
inline |
|
private |
Definition at line 142 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), and reset().
|
private |
Definition at line 160 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputDcuInfoXml(), print(), pset(), and reset().
|
private |
Definition at line 162 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFecXml(), print(), pset(), and reset().
|
private |
Definition at line 164 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputFedXml(), print(), pset(), and reset().
|
private |
Definition at line 158 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), outputModuleXml(), print(), pset(), and reset().
|
private |
Definition at line 156 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 146 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), passwd(), and reset().
|
private |
Definition at line 148 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), path(), print(), and reset().
|
private |
Definition at line 152 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and sharedMemory().
|
private |
Definition at line 154 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), pset(), reset(), and tnsAdmin().
|
private |
Definition at line 144 of file SiStripDbParams.h.
Referenced by confdb(), operator=(), operator==(), print(), reset(), and user().
|
private |
Definition at line 140 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDb().
|
private |
Definition at line 150 of file SiStripDbParams.h.
Referenced by operator=(), operator==(), print(), pset(), reset(), and usingDbCache().