50 m_condDb(iConfig.getParameter<std::
string>(
"conditionDatabase")),
51 m_plotTag(iConfig.getParameter<std::
string>(
"Tag")),
52 m_IOV(iConfig.getUntrackedParameter<cond::
Time_t>(
"IOV", 0)),
53 m_Time(iConfig.getUntrackedParameter<std::
string>(
"Time",
"")),
54 m_plotFormat(iConfig.getUntrackedParameter<std::
string>(
"plotFormat",
"png")),
55 m_outputFile(iConfig.getUntrackedParameter<std::
string>(
"outputFile",
"")),
68 }
else if (!
m_Time.empty()) {
76 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] "
82 auto iiov =
iovs.find(theIov);
83 if (iiov ==
iovs.end())
86 theIov = (*iiov).since;
87 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] "
88 <<
"Make tkMap for IOV " << theIov <<
" ("
94 TkHistoMap lvhisto(tkDetMap,
"LV_Status",
"LV_Status", -1);
95 TkHistoMap hvhisto(tkDetMap,
"HV_Status",
"HV_Status", -1);
98 for (
auto id : detids) {
102 lvhisto.
fill(
id, 0.5);
104 if (
payload->IsModuleHVOff(
id))
107 hvhisto.
fill(
id, 0.5);
124 auto facet =
new boost::posix_time::time_facet(format.c_str());
125 std::ostringstream
stream;
126 stream.imbue(std::locale(stream.getloc(), facet));
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
#define DEFINE_FWK_MODULE(type)
void start(bool readOnly=true)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Transaction & transaction()
SiStripDetVOffTkMapPlotter(const edm::ParameterSet &iConfig)
void setParameters(const edm::ParameterSet &connectionPset)
~SiStripDetVOffTkMapPlotter() override
bool getData(T &iHolder) const
void save(const std::string &filename)
unsigned long long Time_t
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)
std::vector< uint32_t > getSiStripDetIds(const GeometricDet &geomDet)
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
IOVProxy readIov(const std::string &tag)
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
std::string formatIOV(cond::Time_t iov, std::string format="%Y-%m-%d__%H_%M_%S")
Log< level::Info, false > LogInfo
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
void fill(DetId detid, float value)
T getParameter(std::string const &) const
boost::posix_time::ptime to_boost(Time_t iValue)