|
|
Go to the documentation of this file.
22 : printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
false)) {}
29 edm::LogInfo(
"SiStripDetVOffFakeBuilder") <<
" There are " << pDD->
detUnits().size() <<
" detectors" << std::endl;
31 for (
const auto& it : pDD->
detUnits()) {
32 if (dynamic_cast<StripGeomDetUnit const*>(it) !=
nullptr) {
33 uint32_t detid = (it->geographicalId()).rawId();
34 const StripTopology&
p = dynamic_cast<StripGeomDetUnit const*>(it)->specificTopology();
35 unsigned short Nstrips =
p.nstrips();
36 if (Nstrips < 1 || Nstrips > 768) {
38 <<
" Problem with Number of strips in detector.. " <<
p.nstrips() <<
" Exiting program" << endl;
43 edm::LogInfo(
"SiStripDetVOffFakeBuilder") <<
"detid " << detid;
54 <<
"... creating dummy SiStripDetVOff Data for Run " <<
run <<
"\n " << std::endl;
60 for (std::vector<uint32_t>::const_iterator it =
detids.begin(); it !=
detids.end(); it++) {
65 edm::LogInfo(
"SiStripDetVOffFakeBuilder") <<
"detid: " << *it <<
" HV\t OFF" << std::endl;
66 SiStripDetVOff_->
put(*it, 1, -1);
70 edm::LogInfo(
"SiStripDetVOffFakeBuilder") <<
"detid: " << *it <<
" LV\t OFF" << std::endl;
71 SiStripDetVOff_->
put(*it, -1, 1);
74 if (lv <= 2 || hv <= 2)
75 edm::LogInfo(
"SiStripDetVOffFakeBuilder") <<
"detid: " << *it <<
" V\t OFF" << std::endl;
94 edm::LogError(
"SiStripDetVOffFakeBuilder") <<
"caught std::exception " << er.what() << std::endl;
97 edm::LogError(
"SiStripDetVOffFakeBuilder") <<
"Service is unavailable" << std::endl;
cond::Time_t beginOfTime() const
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
char const * what() const noexcept override
void analyze(const edm::Event &, const edm::EventSetup &) override
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
SiStripDetVOffFakeBuilder(const edm::ParameterSet &iConfig)
virtual void initialize(const edm::EventSetup &)
std::vector< uint32_t > detids
bool put(const uint32_t DetId, const int HVoff, const int LVoff)
Insert information for a single detId.
Base exception class for the object to relational access.
cond::Time_t endOfTime() const
bool isNewTagRequest(const std::string &recordName)
~SiStripDetVOffFakeBuilder() override
cond::Time_t currentTime() const
Namespace of DDCMS conversion namespace.