6 #include "CLHEP/Random/RandGauss.h" 47 edm::LogInfo(
"SiPixelPerformanceSummaryBuilder") << pDD->
detUnits().size() <<
" detectors" << std::endl;
49 for (
const auto& it : pDD->
detUnits()) {
50 if (dynamic_cast<PixelGeomDetUnit const*>(it) !=
nullptr) {
61 float nDigisMean = (
float)CLHEP::RandGauss::shoot(50., 20.);
62 float nDigisRMS = (
float)CLHEP::RandGauss::shoot(20., 4.);
63 float emptyFraction = (
float)CLHEP::RandGauss::shoot(.5, .2);
65 performanceSummary.
setNumberOfDigis(*iDet, nDigisMean, nDigisRMS, emptyFraction);
67 clock_t presentTime = clock();
68 performanceSummary.
setTimeStamp((
unsigned long long)presentTime);
69 performanceSummary.
print();
77 performanceSummary, poolDBService->
beginOfTime(),
"SiPixelPerformanceSummaryRcd");
81 performanceSummary, poolDBService->
currentTime(),
"SiPixelPerformanceSummaryRcd");
86 edm::LogError(
"DBWriting") <<
"caught std::exception " <<
err.what() << std::endl;
91 edm::LogError(
"PoolDBOutputService") <<
"service unavailable" << std::endl;
Base exception class for the object to relational access.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
cond::Time_t beginOfTime() const
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
Log< level::Error, false > LogError
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
void appendOneIOV(const T &payload, cond::Time_t sinceTime, const std::string &recordName)
bool isNewTagRequest(const std::string &recordName)
cond::Time_t currentTime() const
#define DEFINE_FWK_MODULE(type)
Namespace of DDCMS conversion namespace.
Log< level::Info, false > LogInfo