|
virtual void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) |
|
virtual void | endJob () |
|
| SiStripDetVOffTkMapPlotter (const edm::ParameterSet &iConfig) |
|
virtual | ~SiStripDetVOffTkMapPlotter () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 62 of file SiStripDetVOffTkMapPlotter.cc.
References cond::persistency::ConnectionPool::createSession(), detidReader, TkHistoMap::dumpInTkMap(), cond::persistency::IOVProxy::end(), cond::persistency::Session::fetchPayload(), TkHistoMap::fill(), cond::persistency::IOVProxy::find(), formatIOV(), cond::time::from_boost(), SiStripDetInfoFileReader::getAllDetIds(), m_condDb, m_connectionPool, m_IOV, m_outputFile, m_plotFormat, m_plotTag, m_Time, jetCorrFactors_cfi::payload, cond::persistency::Session::readIov(), TkHistoMap::save(), cond::persistency::Transaction::start(), cond::time::to_boost(), and cond::persistency::Session::transaction().
67 }
else if (!
m_Time.empty()){
75 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 80 auto iiov = iovProxy.
find(theIov);
81 if (iiov==iovProxy.
end())
84 theIov = (*iiov).since;
85 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 86 <<
"Make tkMap for IOV " << theIov <<
" (" << boost::posix_time::to_simple_string(
cond::time::to_boost(theIov)) <<
")";
90 TkHistoMap lvhisto(
"LV_Status",
"LV_Status",-1);
91 TkHistoMap hvhisto(
"HV_Status",
"HV_Status",-1);
94 for (
auto id : detids){
98 lvhisto.fill(
id, 0.5);
100 if (
payload->IsModuleHVOff(
id))
103 hvhisto.fill(
id, 0.5);
106 lvhisto.dumpInTkMap(&lvmap);
107 hvhisto.dumpInTkMap(&hvmap);
void start(bool readOnly=true)
Transaction & transaction()
edm::Service< SiStripDetInfoFileReader > detidReader
payload
payload postfix for testing
IOVProxy readIov(const std::string &tag, bool full=false)
unsigned long long Time_t
const std::vector< uint32_t > & getAllDetIds() const
Iterator find(cond::Time_t time)
Session createSession(const std::string &connectionString, bool writeCapable=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")
boost::posix_time::ptime to_boost(Time_t iValue)
std::shared_ptr< T > fetchPayload(const cond::Hash &payloadHash)