|
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override |
|
| BeamSpotRcdPrinter (const edm::ParameterSet &iConfig) |
|
void | endJob () override |
|
| ~BeamSpotRcdPrinter () override |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~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 |
|
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 EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
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 34 of file BeamSpotRcdPrinter.cc.
Definition at line 67 of file BeamSpotRcdPrinter.cc.
References cond::persistency::Transaction::commit(), cond::persistency::ConnectionPool::createSession(), cond::persistency::IOVProxy::end(), Exception, cond::persistency::Session::fetchPayload(), cond::persistency::IOVProxy::find(), groupFilesInBlocks::fout, m_condDb, m_connectionPool, m_endTime, m_output, m_startTime, m_tagName, jets_cff::payload, cond::persistency::Session::readIov(), contentValuesCheck::ss, cond::persistency::Transaction::start(), cond::persistency::Session::transaction(), and BSPrintUtils::unpack().
70 if (startIov > endIov)
72 edm::LogInfo(
"BeamSpotRcdPrinter") <<
"[BeamSpotRcdPrinter::" << __func__ <<
"] " 73 <<
"Set start time " << startIov <<
"\n ... Set end time " << endIov;
76 edm::LogInfo(
"BeamSpotRcdPrinter") <<
"[BeamSpotRcdPrinter::" << __func__ <<
"] " 77 <<
"Query the condition database " <<
m_condDb;
83 std::vector<cond::Time_t> vTime;
86 edm::LogInfo(
"BeamSpotRcdPrinter") <<
"[BeamSpotRcdPrinter::" << __func__ <<
"] " 89 auto iiov = iovProxy.
find(startIov);
90 auto eiov = iovProxy.
find(endIov);
92 while (iiov != iovProxy.
end() && (*iiov).since <= (*eiov).since) {
94 if ((*iiov).since < startIov) {
95 vTime.push_back(startIov);
97 vTime.push_back((*iiov).since);
102 ss << runLS.first <<
"," << runLS.second <<
" (" << (*iiov).since <<
")" 103 <<
" [hash: " << (*iiov).payloadId <<
"] \n" 110 vTime.push_back(endIov);
112 edm::LogInfo(
"BeamSpotRcdPrinter") <<
"[BeamSpotRcdPrinter::" << __func__ <<
"] " 113 <<
"Read " << niov <<
" IOVs from tag " << m_tagName
114 <<
" corresponding to the specified time interval.\n\n"
void start(bool readOnly=true)
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
cond::persistency::ConnectionPool m_connectionPool
Transaction & transaction()
IOVProxy readIov(const std::string &tag, bool full=false)
unsigned long long Time_t
Iterator find(cond::Time_t time)
unsigned long long m_startTime
Session createSession(const std::string &connectionString, bool writeCapable=false)
unsigned long long m_endTime
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)