14 edm::LogInfo(
"SiStripSummaryBuilder") <<
"... creating dummy SiStripSummary Data for Run " <<
run <<
"\n "
22 std::vector<std::string> userDBContent;
23 typedef std::vector<edm::ParameterSet> VParameters;
25 VParameters::iterator ithistoList =
histoList.begin();
26 VParameters::iterator ithistoListEnd =
histoList.end();
28 for (; ithistoList != ithistoListEnd; ++ithistoList) {
30 std::vector<std::string> Quantities =
31 ithistoList->getUntrackedParameter<std::vector<std::string> >(
"quantitiesToExtract");
32 for (
size_t i = 0;
i < Quantities.size(); ++
i) {
33 if (Quantities[
i] ==
"landau") {
38 }
else if (Quantities[
i] ==
"gauss") {
42 }
else if (Quantities[
i] ==
"stat") {
48 <<
"Quantity " << Quantities[
i] <<
" cannot be handled\nAllowed quantities are"
49 <<
"\n 'stat' that includes: entries, mean, rms"
50 <<
"\n 'landau' that includes: landauPeak, landauPeakErr, landauSFWHM, landauChi2NDF"
51 <<
"\n 'gauss' that includes: gaussMean, gaussSigma, gaussChi2NDF" << std::endl;
55 obj->setUserDBContent(userDBContent);
57 std::stringstream ss1;
58 ss1 <<
"QUANTITIES TO BE INSERTED IN DB :"
60 std::vector<std::string> userDBContentA =
obj->getUserDBContent();
61 for (
size_t i = 0;
i < userDBContentA.size(); ++
i)
62 ss1 << userDBContentA[
i] << std::endl;
67 std::stringstream ss2;
68 for (uint32_t detid = 0; detid < 430; detid++) {
70 for (
unsigned int i = 0;
i < userDBContent.size();
i++)
71 values.push_back((
float)CLHEP::RandGauss::shoot(50., 30.));
73 ss2 <<
"\n\tdetid " << detid;
74 for (
size_t j = 0;
j <
values.size(); ++
j)
75 ss2 <<
"\n\t\t " << userDBContent[
j] <<
" " <<
values[
j];
113 edm::LogError(
"SiStripSummaryBuilder") <<
"Service is unavailable" << std::endl;