#include <ProcessHistory.h>
Classes | |
struct | Transients |
Public Types | |
typedef std::vector< value_type > | collection_type |
typedef collection_type::const_iterator | const_iterator |
typedef collection_type::const_reference | const_reference |
typedef collection_type::const_reverse_iterator | const_reverse_iterator |
typedef collection_type::iterator | iterator |
typedef collection_type::reference | reference |
typedef collection_type::reverse_iterator | reverse_iterator |
typedef collection_type::size_type | size_type |
typedef ProcessConfiguration | value_type |
Public Member Functions | |
reference | at (size_type i) |
const_reference | at (size_type i) const |
const_iterator | begin () const |
size_type | capacity () const |
void | clear () |
collection_type const & | data () const |
template<typename... Args> | |
void | emplace_back (Args &&...args) |
bool | empty () const |
const_iterator | end () const |
bool | getConfigurationForProcess (std::string const &name, ProcessConfiguration &config) const |
ProcessHistoryID | id () const |
void | initializeTransients () const |
const_reference | operator[] (size_type i) const |
reference | operator[] (size_type i) |
ProcessHistory (size_type n) | |
ProcessHistory () | |
ProcessHistory (collection_type const &vec) | |
void | push_back (const_reference t) |
void | push_front (const_reference t) |
const_reverse_iterator | rbegin () const |
void | reduce () |
const_reverse_iterator | rend () const |
void | reserve (size_type n) |
size_type | size () const |
void | swap (ProcessHistory &other) |
Private Member Functions | |
ProcessHistoryID & | phid () const |
Private Attributes | |
collection_type | data_ |
Transients | transient_ |
Definition at line 13 of file ProcessHistory.h.
typedef std::vector<value_type> edm::ProcessHistory::collection_type |
Definition at line 16 of file ProcessHistory.h.
typedef collection_type::const_iterator edm::ProcessHistory::const_iterator |
Definition at line 19 of file ProcessHistory.h.
typedef collection_type::const_reference edm::ProcessHistory::const_reference |
Definition at line 25 of file ProcessHistory.h.
typedef collection_type::const_reverse_iterator edm::ProcessHistory::const_reverse_iterator |
Definition at line 22 of file ProcessHistory.h.
typedef collection_type::iterator edm::ProcessHistory::iterator |
Definition at line 18 of file ProcessHistory.h.
typedef collection_type::reference edm::ProcessHistory::reference |
Definition at line 24 of file ProcessHistory.h.
typedef collection_type::reverse_iterator edm::ProcessHistory::reverse_iterator |
Definition at line 21 of file ProcessHistory.h.
typedef collection_type::size_type edm::ProcessHistory::size_type |
Definition at line 27 of file ProcessHistory.h.
Definition at line 15 of file ProcessHistory.h.
edm::ProcessHistory::ProcessHistory | ( | ) | [inline] |
Definition at line 29 of file ProcessHistory.h.
: data_(), transient_() {}
edm::ProcessHistory::ProcessHistory | ( | size_type | n | ) | [inline, explicit] |
Definition at line 30 of file ProcessHistory.h.
: data_(n), transient_() {}
edm::ProcessHistory::ProcessHistory | ( | collection_type const & | vec | ) | [inline, explicit] |
Definition at line 31 of file ProcessHistory.h.
: data_(vec), transient_() {}
const_reference edm::ProcessHistory::at | ( | size_type | i | ) | const [inline] |
const_iterator edm::ProcessHistory::begin | ( | void | ) | const [inline] |
Definition at line 52 of file ProcessHistory.h.
References data_.
Referenced by edm::HistoryAppender::checkProcessHistory(), getConfigurationForProcess(), fwlite::Event::getProcessHistory(), id(), HLTConfigProvider::init(), operator<<(), edm::TransientProductLookupMap::reorderIfNecessary(), DQMRootOutputModule::startEndFile(), edm::LumiReWeighting::weight(), edm::LumiReWeighting::weightOOT(), and edm::AsciiOutputModule::write().
{return data_.begin();}
size_type edm::ProcessHistory::capacity | ( | ) | const [inline] |
void edm::ProcessHistory::clear | ( | void | ) | [inline] |
Definition at line 73 of file ProcessHistory.h.
{ data_.clear(); phid() = ProcessHistoryID(); }
collection_type const& edm::ProcessHistory::data | ( | ) | const [inline] |
Definition at line 64 of file ProcessHistory.h.
References data_.
Referenced by edm::isAncestor(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfoForFilter(), and edm::operator==().
{return data_;}
void edm::ProcessHistory::emplace_back | ( | Args &&... | args | ) | [inline] |
Definition at line 35 of file ProcessHistory.h.
References harvestRelVal::args, data_, and phid().
Referenced by edm::ProvenanceAdaptor::fixProcessHistory().
{data_.emplace_back(std::forward<Args>(args)...); phid() = ProcessHistoryID();}
bool edm::ProcessHistory::empty | ( | ) | const [inline] |
Definition at line 41 of file ProcessHistory.h.
References data_.
Referenced by edm::TransientProductLookupMap::reorderIfNecessary().
{return data_.empty();}
const_iterator edm::ProcessHistory::end | ( | void | ) | const [inline] |
Definition at line 53 of file ProcessHistory.h.
References data_.
Referenced by edm::HistoryAppender::checkProcessHistory(), getConfigurationForProcess(), fwlite::Event::getProcessHistory(), id(), HLTConfigProvider::init(), operator<<(), edm::TransientProductLookupMap::reorderIfNecessary(), DQMRootOutputModule::startEndFile(), edm::LumiReWeighting::weight(), edm::LumiReWeighting::weightOOT(), and edm::AsciiOutputModule::write().
{return data_.end();}
bool edm::ProcessHistory::getConfigurationForProcess | ( | std::string const & | name, |
ProcessConfiguration & | config | ||
) | const |
Definition at line 33 of file ProcessHistory.cc.
References begin(), alignCSCRings::e, end(), i, and mergeVDriftHistosByStation::name.
Referenced by edm::Event::getProcessParameterSet(), HLTConfigProvider::init(), and edm::Provenance::processConfigurationID().
ProcessHistoryID edm::ProcessHistory::id | ( | void | ) | const |
Definition at line 12 of file ProcessHistory.cc.
References begin(), cms::Digest::digest(), alignCSCRings::e, end(), i, phid(), edm::Hash< I >::swap(), and tmp.
Referenced by edm::HistoryAppender::appendToProcessHistory(), edm::DaqProvenanceHelper::daqInit(), edm::ProvenanceAdaptor::fixProcessHistory(), edm::FullHistoryToReducedHistoryMap::FullHistoryToReducedHistoryMap(), edm::FullHistoryToReducedHistoryMap::reduceProcessHistoryID(), edm::TransientProductLookupMap::reorderIfNecessary(), and DQMRootSource::setupFile().
{ if(phid().isValid()) { return phid(); } // This implementation is ripe for optimization. // We do not use operator<< because it does not write out everything. std::ostringstream oss; for (const_iterator i = begin(), e = end(); i != e; ++i) { oss << i->processName() << ' ' << i->parameterSetID() << ' ' << i->releaseVersion() << ' ' << i->passID() << ' '; } std::string stringrep = oss.str(); cms::Digest md5alg(stringrep); ProcessHistoryID tmp(md5alg.digest().toString()); phid().swap(tmp); return phid(); }
void edm::ProcessHistory::initializeTransients | ( | ) | const [inline] |
Definition at line 80 of file ProcessHistory.h.
References edm::ProcessHistory::Transients::reset(), and transient_.
{transient_.reset();}
const_reference edm::ProcessHistory::operator[] | ( | size_type | i | ) | const [inline] |
ProcessHistoryID& edm::ProcessHistory::phid | ( | ) | const [inline, private] |
Definition at line 89 of file ProcessHistory.h.
References edm::ProcessHistory::Transients::phid_, and transient_.
Referenced by clear(), emplace_back(), id(), push_back(), push_front(), reduce(), and swap().
{return transient_.phid_;}
void edm::ProcessHistory::push_back | ( | const_reference | t | ) | [inline] |
Definition at line 39 of file ProcessHistory.h.
Referenced by edm::HistoryAppender::appendToProcessHistory(), and edm::DaqProvenanceHelper::daqInit().
{data_.push_back(t); phid() = ProcessHistoryID();}
void edm::ProcessHistory::push_front | ( | const_reference | t | ) | [inline] |
Definition at line 38 of file ProcessHistory.h.
References data_, phid(), and lumiQTWidget::t.
{data_.insert(data_.begin(), t); phid() = ProcessHistoryID();}
const_reverse_iterator edm::ProcessHistory::rbegin | ( | ) | const [inline] |
Definition at line 55 of file ProcessHistory.h.
References data_.
Referenced by MEtoMEComparitor::beginRun(), fwlite::DataGetterHelper::getBranchDataFor(), RawDataCollectorModule::produce(), and edm::TransientProductLookupMap::reorderIfNecessary().
{return data_.rbegin();}
void edm::ProcessHistory::reduce | ( | ) |
Definition at line 46 of file ProcessHistory.cc.
References data_, alignCSCRings::e, i, and phid().
Referenced by edm::FullHistoryToReducedHistoryMap::reduceProcessHistoryID().
const_reverse_iterator edm::ProcessHistory::rend | ( | ) | const [inline] |
Definition at line 56 of file ProcessHistory.h.
References data_.
Referenced by fwlite::DataGetterHelper::getBranchDataFor(), and edm::TransientProductLookupMap::reorderIfNecessary().
{return data_.rend();}
void edm::ProcessHistory::reserve | ( | size_type | n | ) | [inline] |
size_type edm::ProcessHistory::size | ( | void | ) | const [inline] |
Definition at line 42 of file ProcessHistory.h.
References data_.
Referenced by edm::ProvenanceAdaptor::fixProcessHistory(), edm::isAncestor(), and EcalDeadCellTriggerPrimitiveFilter::loadEventInfoForFilter().
{return data_.size();}
void edm::ProcessHistory::swap | ( | ProcessHistory & | other | ) | [inline] |
Definition at line 40 of file ProcessHistory.h.
References data_, phid(), and edm::Hash< I >::swap().
Referenced by edm::swap().
collection_type edm::ProcessHistory::data_ [private] |
Definition at line 90 of file ProcessHistory.h.
Referenced by at(), begin(), capacity(), clear(), data(), emplace_back(), empty(), end(), operator[](), push_back(), push_front(), rbegin(), reduce(), rend(), reserve(), size(), and swap().
Transients edm::ProcessHistory::transient_ [mutable, private] |
Definition at line 91 of file ProcessHistory.h.
Referenced by initializeTransients(), and phid().