|
|
Go to the documentation of this file.
51 m_condDb(iConfig.getParameter<
std::
string>(
"conditionDatabase")),
52 m_plotTag(iConfig.getParameter<
std::
string>(
"Tag")),
53 m_IOV(iConfig.getUntrackedParameter<
cond::
Time_t>(
"IOV", 0)),
54 m_Time(iConfig.getUntrackedParameter<
std::
string>(
"Time",
"")),
55 m_plotFormat(iConfig.getUntrackedParameter<
std::
string>(
"plotFormat",
"png")),
56 m_outputFile(iConfig.getUntrackedParameter<
std::
string>(
"outputFile",
"")),
69 }
else if (!
m_Time.empty()) {
77 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] "
83 auto iiov = iovs.
find(theIov);
84 if (iiov == iovs.end())
87 theIov = (*iiov).since;
88 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] "
89 <<
"Make tkMap for IOV " << theIov <<
" ("
95 TkHistoMap lvhisto(tkDetMap,
"LV_Status",
"LV_Status", -1);
96 TkHistoMap hvhisto(tkDetMap,
"HV_Status",
"HV_Status", -1);
99 for (
auto id : detids) {
100 if (
payload->IsModuleLVOff(
id))
103 lvhisto.
fill(
id, 0.5);
105 if (
payload->IsModuleHVOff(
id))
108 hvhisto.
fill(
id, 0.5);
127 auto facet =
new boost::posix_time::time_facet(
format.c_str());
128 std::ostringstream
stream;
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
boost::posix_time::ptime to_boost(Time_t iValue)
void setPalette(int numpalette)
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Log< level::Info, false > LogInfo
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
void save(const std::string &filename)
Session createSession(const std::string &connectionString, bool writeCapable=false)
cond::persistency::ConnectionPool m_connectionPool
std::vector< uint32_t > getSiStripDetIds(const GeometricDet &geomDet)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Iterator find(cond::Time_t time) const
void fill(DetId detid, float value)
#define DEFINE_FWK_MODULE(type)
IOVProxy readIov(const std::string &tag)
void dumpInTkMap(TrackerMap *tkmap, bool dumpEntries=false)
Time_t from_boost(boost::posix_time::ptime bt)
unsigned long long Time_t
void setParameters(const edm::ParameterSet &connectionPset)
bool getData(T &iHolder) const
Transaction & transaction()
void start(bool readOnly=true)
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
T getParameter(std::string const &) const
~SiStripDetVOffTkMapPlotter() override
std::string formatIOV(cond::Time_t iov, std::string format="%Y-%m-%d__%H_%M_%S")
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
SiStripDetVOffTkMapPlotter(const edm::ParameterSet &iConfig)