|
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override |
|
| SiStripDetVOffTkMapPlotter (const edm::ParameterSet &iConfig) |
|
| ~SiStripDetVOffTkMapPlotter () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
Implements edm::one::EDAnalyzerBase.
Definition at line 64 of file SiStripDetVOffTkMapPlotter.cc.
References cond::persistency::ConnectionPool::createSession(), TkHistoMap::dumpInTkMap(), cond::persistency::Session::fetchPayload(), TkHistoMap::fill(), cond::persistency::IOVArray::find(), formatIOV(), cond::time::from_boost(), geomDetToken_, edm::EventSetup::getData(), TrackerGeometryUtils::getSiStripDetIds(), m_condDb, m_connectionPool, m_IOV, m_outputFile, m_plotFormat, m_plotTag, m_Time, jetsAK4_Puppi_cff::payload, cond::persistency::Session::readIov(), TkHistoMap::save(), TrackerMap::save(), cond::persistency::IOVProxy::selectAll(), TrackerMap::setPalette(), cond::persistency::Transaction::start(), tkDetMapToken_, cond::time::to_boost(), to_string(), and cond::persistency::Session::transaction().
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);
110 lvhisto.dumpInTkMap(&lvmap);
111 hvhisto.dumpInTkMap(&hvmap);
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void start(bool readOnly=true)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Transaction & transaction()
static std::string to_string(const XMLCh *ch)
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)
Iterator find(cond::Time_t time) const
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_
boost::posix_time::ptime to_boost(Time_t iValue)