66 }
else if (!
m_Time.empty()) {
74 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 79 auto iiov = iovProxy.
find(theIov);
80 if (iiov == iovProxy.
end())
83 theIov = (*iiov).since;
84 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 85 <<
"Make tkMap for IOV " << theIov <<
" (" 91 const TkDetMap* tkDetMap = tkDetMapHandle.product();
93 TkHistoMap lvhisto(tkDetMap,
"LV_Status",
"LV_Status", -1);
94 TkHistoMap hvhisto(tkDetMap,
"HV_Status",
"HV_Status", -1);
97 for (
auto id : detids) {
101 lvhisto.
fill(
id, 0.5);
103 if (
payload->IsModuleHVOff(
id))
106 hvhisto.
fill(
id, 0.5);
125 auto facet =
new boost::posix_time::time_facet(format.c_str());
126 std::ostringstream stream;
127 stream.imbue(std::locale(stream.getloc(), facet));
T getParameter(std::string const &) const
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
void start(bool readOnly=true)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Transaction & transaction()
SiStripDetVOffTkMapPlotter(const edm::ParameterSet &iConfig)
void setParameters(const edm::ParameterSet &connectionPset)
~SiStripDetVOffTkMapPlotter() override
void save(const std::string &filename)
edm::Service< SiStripDetInfoFileReader > detidReader
IOVProxy readIov(const std::string &tag, bool full=false)
#define DEFINE_FWK_MODULE(type)
unsigned long long Time_t
const std::vector< uint32_t > & getAllDetIds() const
void setPalette(int numpalette)
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
Iterator find(cond::Time_t time)
Session createSession(const std::string &connectionString, bool writeCapable=false)
void dumpInTkMap(TrackerMap *tkmap, bool dumpEntries=false)
Time_t from_boost(boost::posix_time::ptime bt)
cond::persistency::ConnectionPool m_connectionPool
std::string formatIOV(cond::Time_t iov, std::string format="%Y-%m-%d__%H_%M_%S")
void fill(DetId detid, float value)
boost::posix_time::ptime to_boost(Time_t iValue)