|
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override |
|
void | endJob () override |
|
| SiStripDetVOffTkMapPlotter (const edm::ParameterSet &iConfig) |
|
| ~SiStripDetVOffTkMapPlotter () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 60 of file SiStripDetVOffTkMapPlotter.cc.
References cond::persistency::ConnectionPool::createSession(), TkHistoMap::dumpInTkMap(), cond::persistency::IOVProxy::end(), cond::persistency::Session::fetchPayload(), TkHistoMap::fill(), cond::persistency::IOVProxy::find(), formatIOV(), cond::time::from_boost(), edm::EventSetup::get(), TrackerGeometryUtils::getSiStripDetIds(), m_condDb, m_connectionPool, m_IOV, m_outputFile, m_plotFormat, m_plotTag, m_Time, jets_cff::payload, cond::persistency::Session::readIov(), TkHistoMap::save(), TrackerMap::save(), TrackerMap::setPalette(), cond::persistency::Transaction::start(), cond::time::to_boost(), and cond::persistency::Session::transaction().
64 }
else if (!
m_Time.empty()) {
72 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 77 auto iiov = iovProxy.
find(theIov);
78 if (iiov == iovProxy.
end())
81 theIov = (*iiov).since;
82 edm::LogInfo(
"SiStripDetVOffMapPlotter") <<
"[SiStripDetVOffMapPlotter::" << __func__ <<
"] " 83 <<
"Make tkMap for IOV " << theIov <<
" (" 89 const TkDetMap* tkDetMap = tkDetMapHandle.product();
91 TkHistoMap lvhisto(tkDetMap,
"LV_Status",
"LV_Status", -1);
92 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);
110 lvhisto.dumpInTkMap(&lvmap);
111 hvhisto.dumpInTkMap(&hvmap);
void start(bool readOnly=true)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Transaction & transaction()
IOVProxy readIov(const std::string &tag, bool full=false)
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)
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)