#include <DataGetterHelper.h>
Public Member Functions | |
DataGetterHelper (TTree *tree, std::shared_ptr< HistoryGetterBase > historyGetter, std::shared_ptr< BranchMapReader > branchMap=std::shared_ptr< BranchMapReader >(), std::shared_ptr< edm::EDProductGetter > getter=std::shared_ptr< edm::EDProductGetter >(), bool useCache=false) | |
virtual std::string const | getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const |
virtual bool | getByLabel (std::type_info const &, char const *, char const *, char const *, void *, Long_t) const |
edm::WrapperBase const * | getByProductID (edm::ProductID const &pid, Long_t eventEntry) const |
edm::EDProductGetter * | getter () |
edm::WrapperBase const * | getThinnedProduct (edm::ProductID const &pid, unsigned int &key, Long_t eventEntry) const |
void | getThinnedProducts (edm::ProductID const &pid, std::vector< edm::WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys, Long_t eventEntry) const |
void | setGetter (std::shared_ptr< edm::EDProductGetter > getter) |
virtual | ~DataGetterHelper () |
Private Types | |
typedef std::map < internal::DataKey, std::shared_ptr < internal::Data > > | KeyToDataMap |
Private Member Functions | |
DataGetterHelper (const DataGetterHelper &) | |
void | getBranchData (edm::EDProductGetter *, Long64_t, internal::Data &) const |
internal::Data & | getBranchDataFor (std::type_info const &, char const *, char const *, char const *) const |
bool | getByBranchDescription (edm::BranchDescription const &, Long_t eventEntry, KeyToDataMap::iterator &) const |
edm::WrapperBase const * | getByBranchID (edm::BranchID const &bid, Long_t eventEntry) const |
edm::ThinnedAssociation const * | getThinnedAssociation (edm::BranchID const &branchID, Long_t eventEntry) const |
const edm::ProcessHistory & | history () const |
const DataGetterHelper & | operator= (const DataGetterHelper &) |
edm::WrapperBase const * | wrapperBasePtr (edm::ObjectWithDict const &) const |
Private Attributes | |
std::map< edm::BranchID, std::shared_ptr < internal::Data > > | bidToData_ |
std::shared_ptr< BranchMapReader > | branchMap_ |
KeyToDataMap | data_ |
std::shared_ptr < edm::EDProductGetter > | getter_ |
std::shared_ptr < fwlite::HistoryGetterBase > | historyGetter_ |
std::map< std::pair < edm::ProductID, edm::BranchListIndex > , std::shared_ptr < internal::Data > > | idToData_ |
std::vector< char const * > | labels_ |
bool | tcTrained_ |
TTree * | tree_ |
Definition at line 52 of file DataGetterHelper.h.
|
private |
Definition at line 96 of file DataGetterHelper.h.
DataGetterHelper::DataGetterHelper | ( | TTree * | tree, |
std::shared_ptr< HistoryGetterBase > | historyGetter, | ||
std::shared_ptr< BranchMapReader > | branchMap = std::shared_ptr<BranchMapReader>() , |
||
std::shared_ptr< edm::EDProductGetter > | getter = std::shared_ptr<edm::EDProductGetter>() , |
||
bool | useCache = false |
||
) |
Definition at line 51 of file DataGetterHelper.cc.
References Exception, MainPageGenerator::tree, and tree_.
|
virtual |
Definition at line 75 of file DataGetterHelper.cc.
|
private |
|
private |
Definition at line 114 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, branchMap_, fwlite::internal::Data::lastProduct_, tcTrained_, and tree_.
Referenced by getByBranchID(), getByLabel(), and getByProductID().
|
private |
Definition at line 151 of file DataGetterHelper.cc.
References edm::ObjectWithDict::address(), fwlite::branchNotFound, edm::ObjectWithDict::byType(), data_, Exception, fwlite::findBranch(), edm::TypeID::friendlyClassName(), h, history(), fwlite::internal::DataKey::kEmpty(), relval_steps::key, labels_, fwlite::internal::DataKey::module(), mergeVDriftHistosByStation::name, edm::TypeWithDict::name(), getGTfromDQMFile::obj, fwlite::internal::DataKey::process(), fwlite::internal::DataKey::product(), edm::ProcessHistory::rbegin(), edm::ProcessHistory::rend(), cmsHarvester::sep, AlCaHLTBitMon_QueryRunRegistry::string, and tree_.
Referenced by getBranchNameFor(), and getByLabel().
|
virtual |
Definition at line 272 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, getBranchDataFor(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fwlite::Run::getBranchNameFor(), fwlite::LuminosityBlock::getBranchNameFor(), and fwlite::Event::getBranchNameFor().
|
private |
Definition at line 313 of file DataGetterHelper.cc.
References assert(), edm::BranchDescription::branchID(), edm::TypeWithDict::byName(), data_, edm::BranchDescription::fullClassName(), getByLabel(), edm::BranchID::isValid(), relval_steps::k, edm::BranchDescription::moduleLabel(), edm::BranchDescription::processName(), edm::BranchDescription::productInstanceName(), and edm::wrappedClassName().
Referenced by getByBranchID(), and getByProductID().
|
private |
Definition at line 385 of file DataGetterHelper.cc.
References bidToData_, branchMap_, getBranchData(), getByBranchDescription(), getter_, and wrapperBasePtr().
Referenced by getThinnedAssociation().
|
virtual |
Definition at line 287 of file DataGetterHelper.cc.
References edm::ObjectWithDict::address(), fwlite::internal::Data::branch_, getBranchData(), getBranchDataFor(), getter_, fwlite::internal::Data::lastProduct_, and fwlite::internal::Data::obj_.
Referenced by getByBranchDescription(), fwlite::Run::getByLabel(), fwlite::LuminosityBlock::getByLabel(), and fwlite::Event::getByLabel().
edm::WrapperBase const * DataGetterHelper::getByProductID | ( | edm::ProductID const & | pid, |
Long_t | eventEntry | ||
) | const |
Definition at line 356 of file DataGetterHelper.cc.
References branchMap_, getBranchData(), getByBranchDescription(), getter_, idToData_, edm::ProductID::processIndex(), and wrapperBasePtr().
Referenced by fwlite::Run::getByProductID(), fwlite::LuminosityBlock::getByProductID(), fwlite::Event::getByProductID(), getThinnedProduct(), and getThinnedProducts().
|
inline |
Definition at line 87 of file DataGetterHelper.h.
References getter_.
Referenced by fwlite::Event::draw(), fwlite::Event::scan(), and setGetter().
|
private |
Definition at line 532 of file DataGetterHelper.cc.
References compareJSON::const, edm::WrapperBase::dynamicTypeInfo(), Exception, getByBranchID(), edm::errors::LogicError, edm::Wrapper< T >::product(), and wrapper.
Referenced by getThinnedProduct(), and getThinnedProducts().
edm::WrapperBase const * DataGetterHelper::getThinnedProduct | ( | edm::ProductID const & | pid, |
unsigned int & | key, | ||
Long_t | eventEntry | ||
) | const |
Definition at line 420 of file DataGetterHelper.cc.
References branchMap_, getByProductID(), getThinnedAssociation(), edm::ThinnedAssociation::hasParentIndex(), edm::BranchID::isValid(), dbtoconf::parent, edm::ThinnedAssociationsHelper::parentBegin(), edm::ThinnedAssociation::parentCollectionID(), edm::ThinnedAssociationsHelper::parentEnd(), and edm::ThinnedAssociation::thinnedCollectionID().
Referenced by fwlite::Event::getThinnedProduct().
void DataGetterHelper::getThinnedProducts | ( | edm::ProductID const & | pid, |
std::vector< edm::WrapperBase const * > & | foundContainers, | ||
std::vector< unsigned int > & | keys, | ||
Long_t | eventEntry | ||
) | const |
Definition at line 466 of file DataGetterHelper.cc.
References branchMap_, getByProductID(), getThinnedAssociation(), edm::ThinnedAssociation::hasParentIndex(), edm::BranchID::isValid(), relval_steps::k, bookConverter::max, dbtoconf::parent, edm::ThinnedAssociationsHelper::parentBegin(), edm::ThinnedAssociation::parentCollectionID(), edm::ThinnedAssociationsHelper::parentEnd(), and edm::ThinnedAssociation::thinnedCollectionID().
Referenced by fwlite::Event::getThinnedProducts().
|
private |
Definition at line 550 of file DataGetterHelper.cc.
References historyGetter_.
Referenced by getBranchDataFor().
|
private |
|
inline |
Definition at line 83 of file DataGetterHelper.h.
References getter(), and getter_.
Referenced by fwlite::Event::setGetter().
|
private |
Definition at line 412 of file DataGetterHelper.cc.
References edm::ObjectWithDict::address(), compareJSON::const, edm::TypeWithDict::pointerToBaseType(), and edm::ObjectWithDict::typeOf().
Referenced by getByBranchID(), and getByProductID().
|
mutableprivate |
Definition at line 113 of file DataGetterHelper.h.
Referenced by getByBranchID().
|
mutableprivate |
Definition at line 107 of file DataGetterHelper.h.
Referenced by getBranchData(), getByBranchID(), getByProductID(), getThinnedProduct(), and getThinnedProducts().
|
mutableprivate |
Definition at line 108 of file DataGetterHelper.h.
Referenced by getBranchDataFor(), and getByBranchDescription().
|
private |
Definition at line 115 of file DataGetterHelper.h.
Referenced by getByBranchID(), getByLabel(), getByProductID(), getter(), and setGetter().
|
private |
Definition at line 114 of file DataGetterHelper.h.
Referenced by history().
|
mutableprivate |
Definition at line 112 of file DataGetterHelper.h.
Referenced by getByProductID().
|
mutableprivate |
Definition at line 109 of file DataGetterHelper.h.
Referenced by getBranchDataFor().
|
mutableprivate |
Definition at line 116 of file DataGetterHelper.h.
Referenced by getBranchData().
|
private |
Definition at line 106 of file DataGetterHelper.h.
Referenced by DataGetterHelper(), getBranchData(), and getBranchDataFor().