21 outputModuleXml_(
"/tmp/module.xml"),
22 outputDcuInfoXml_(
"/tmp/dcuinfo.xml"),
23 outputFecXml_(
"/tmp/fec.xml"),
24 outputFedXml_(
"/tmp/fed.xml") {
31 : usingDb_(
input.usingDb()),
34 passwd_(
input.passwd()),
36 usingDbCache_(
input.usingDbCache()),
37 sharedMemory_(
input.sharedMemory()),
38 tnsAdmin_(
input.tnsAdmin()),
40 outputModuleXml_(
input.outputModuleXml()),
41 outputDcuInfoXml_(
input.outputDcuInfoXml()),
42 outputFecXml_(
input.outputFecXml()),
43 outputFedXml_(
input.outputFedXml()) {
122 if (
in.partitionName().empty()) {
123 std::stringstream
ss;
124 ss <<
"[SiStripDbParams::" << __func__ <<
"]"
125 <<
" Attempting to add partition with null name!";
129 SiStripPartitions::const_iterator iter =
partitions_.find(
in.partitionName());
133 std::stringstream
ss;
134 ss <<
"[SiStripDbParams::" << __func__ <<
"]"
135 <<
" Added new partition with name \"" <<
in.partitionName() <<
"\"";
137 ss <<
" (Currently have " <<
partitions_.size() <<
" partitions in cache...)";
141 std::stringstream
ss;
142 ss <<
"[SiStripDbParams::" << __func__ <<
"]"
143 <<
" Partition with name \"" <<
in.partitionName() <<
"\" already found!"
144 <<
" Not adding to cache...";
153 usingDb_ =
cfg.getUntrackedParameter<
bool>(
"UsingDb",
false);
163 if (istr !=
str.end()) {
171 std::vector<std::string>::iterator iname =
names.begin();
172 std::vector<std::string>::iterator jname =
names.end();
173 for (; iname != jname; ++iname) {
197 size_t ipass =
confdb.find(
'/');
198 size_t ipath =
confdb.find(
'@');
199 if (ipass != std::string::npos && ipath != std::string::npos) {
228 SiStripDbParams::SiStripPartitions::const_iterator
ii =
partitions().begin();
229 SiStripDbParams::SiStripPartitions::const_iterator
jj =
partitions().end();
231 if (partition_name ==
ii->second.partitionName()) {
241 SiStripDbParams::SiStripPartitions::iterator
ii =
partitions().begin();
242 SiStripDbParams::SiStripPartitions::iterator
jj =
partitions().end();
244 if (partition_name ==
ii->second.partitionName()) {
259 if (!
ii->second.partitionName().empty()) {
264 <<
" Partition " <<
ii->second.partitionName()
265 <<
" already found! Not adding to vector...";
278 while (getline(
ss,
token,
':')) {
279 if (!
token.empty()) {
289 std::stringstream
ss;
290 std::vector<std::string>::const_iterator
ii =
partitions.begin();
291 std::vector<std::string>::const_iterator
jj =
partitions.end();
305 ss <<
" Using database account : " << std::boolalpha <<
usingDb_ << std::noboolalpha << std::endl;
306 ss <<
" Using XML files : " << std::boolalpha << !
usingDb_ << std::noboolalpha << std::endl;
307 ss <<
" Using database cache : " << std::boolalpha <<
usingDbCache_ << std::noboolalpha << std::endl;
309 ss <<
" Shared memory name : " << std::boolalpha <<
sharedMemory_ << std::noboolalpha << std::endl;
314 ss <<
" Database account (ConfDb) : " <<
user_ +
"/******@" +
path_ << std::endl;
322 ss <<
" (Using database cache!)";
332 ss <<
" Partition #" << cntr <<
" (out of " <<
partitions_.size() <<
"):" << std::endl;
339 <<
" Output \"fec.xml\" file(s) : " <<
outputFecXml_ << std::endl
340 <<
" Output \"fed.xml\" file(s) : " <<
outputFedXml_ << std::endl;
348 std::stringstream
ss;
357 std::vector<std::string>
files;
369 std::vector<std::string>
files;
373 files.insert(
files.end(),
ii->second.inputDcuInfoXml());
381 std::vector<std::string>
files;
385 files.insert(
files.end(),
ii->second.inputFecXml().begin(),
ii->second.inputFecXml().end());
393 std::vector<std::string>
files;
397 files.insert(
files.end(),
ii->second.inputFedXml().begin(),
ii->second.inputFedXml().end());