#include <DataGetterHelper.h>
Public Member Functions | |
DataGetterHelper (TTree *tree, boost::shared_ptr< HistoryGetterBase > historyGetter, boost::shared_ptr< BranchMapReader > branchMap=boost::shared_ptr< BranchMapReader >(), boost::shared_ptr< edm::EDProductGetter > getter=boost::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 |
virtual bool | getByLabel (std::type_info const &, char const *, char const *, char const *, edm::WrapperHolder &, Long_t) const |
edm::WrapperHolder | getByProductID (edm::ProductID const &, Long_t) const |
edm::EDProductGetter * | getter () |
void | setGetter (boost::shared_ptr< edm::EDProductGetter > getter) |
virtual | ~DataGetterHelper () |
Static Public Member Functions | |
static void | throwProductNotFoundException (std::type_info const &, char const *, char const *, char const *) |
Private Types | |
typedef std::map < internal::DataKey, boost::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 |
const edm::ProcessHistory & | history () const |
const DataGetterHelper & | operator= (const DataGetterHelper &) |
Private Attributes | |
boost::shared_ptr < BranchMapReader > | branchMap_ |
KeyToDataMap | data_ |
boost::shared_ptr < edm::EDProductGetter > | getter_ |
boost::shared_ptr < fwlite::HistoryGetterBase > | historyGetter_ |
std::map< std::pair < edm::ProductID, edm::BranchListIndexes > , boost::shared_ptr < internal::Data > > | idToData_ |
std::vector< char const * > | labels_ |
std::auto_ptr< TTreeCache > | tcache_ |
bool | tcTrained_ |
TTree * | tree_ |
Definition at line 43 of file DataGetterHelper.h.
|
private |
Definition at line 88 of file DataGetterHelper.h.
DataGetterHelper::DataGetterHelper | ( | TTree * | tree, |
boost::shared_ptr< HistoryGetterBase > | historyGetter, | ||
boost::shared_ptr< BranchMapReader > | branchMap = boost::shared_ptr<BranchMapReader>() , |
||
boost::shared_ptr< edm::EDProductGetter > | getter = boost::shared_ptr<edm::EDProductGetter>() , |
||
bool | useCache = false |
||
) |
Definition at line 62 of file DataGetterHelper.cc.
References branchMap_, edm::hlt::Exception, tcache_, MainPageGenerator::tree, tree_, and TTCACHE_SIZE.
|
virtual |
Definition at line 91 of file DataGetterHelper.cc.
|
private |
|
private |
Definition at line 130 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, branchMap_, getHLTprescales::index, fwlite::internal::Data::lastProduct_, getGTfromDQMFile::obj, fwlite::internal::Data::obj_, fwlite::internal::Data::pObj_, fwlite::internal::Data::pProd_, tcache_, tcTrained_, and tree_.
Referenced by getByLabel(), and getByProductID().
|
private |
Definition at line 167 of file DataGetterHelper.cc.
References fwlite::branchNotFound, data_, edm::hlt::Exception, fwlite::findBranch(), edm::TypeID::friendlyClassName(), h, history(), fwlite::internal::DataKey::kEmpty(), combine::key, labels_, fwlite::internal::DataKey::module(), mergeVDriftHistosByStation::name, getGTfromDQMFile::obj, fwlite::internal::DataKey::process(), fwlite::internal::DataKey::product(), edm::ProcessHistory::rbegin(), edm::ProcessHistory::rend(), and tree_.
Referenced by getBranchNameFor(), and getByLabel().
|
virtual |
Definition at line 290 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, and getBranchDataFor().
Referenced by fwlite::Run::getBranchNameFor(), fwlite::LuminosityBlock::getBranchNameFor(), and fwlite::Event::getBranchNameFor().
|
virtual |
Definition at line 305 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, getBranchData(), getBranchDataFor(), getter_, getHLTprescales::index, fwlite::internal::Data::lastProduct_, and fwlite::internal::Data::obj_.
Referenced by fwlite::Run::getByLabel(), fwlite::LuminosityBlock::getByLabel(), fwlite::Event::getByLabel(), and getByProductID().
|
virtual |
Definition at line 331 of file DataGetterHelper.cc.
References fwlite::internal::Data::branch_, getBranchData(), getBranchDataFor(), getter_, getHLTprescales::index, fwlite::internal::Data::interface_, edm::WrapperHolder::isValid(), fwlite::internal::Data::lastProduct_, and fwlite::internal::Data::obj_.
edm::WrapperHolder DataGetterHelper::getByProductID | ( | edm::ProductID const & | iID, |
Long_t | index | ||
) | const |
Definition at line 354 of file DataGetterHelper.cc.
References edm::BranchDescription::branchID(), branchMap_, data_, edm::BranchDescription::fullClassName(), getBranchData(), getByLabel(), getter_, idToData_, getHLTprescales::index, edm::BranchID::isValid(), edm::WrapperHolder::isValid(), gen::k, edm::BranchDescription::moduleLabel(), edm::BranchDescription::processName(), edm::BranchDescription::productInstanceName(), edm::wrappedClassName(), and edm::WrapperHolder::wrapper().
Referenced by fwlite::Run::getByProductID(), fwlite::LuminosityBlock::getByProductID(), and fwlite::Event::getByProductID().
|
inline |
Definition at line 74 of file DataGetterHelper.h.
References getter_.
Referenced by fwlite::Event::draw(), fwlite::Event::scan(), and setGetter().
|
private |
Definition at line 414 of file DataGetterHelper.cc.
References historyGetter_.
Referenced by getBranchDataFor().
|
private |
|
inline |
Definition at line 70 of file DataGetterHelper.h.
References getter(), and getter_.
Referenced by fwlite::Event::setGetter().
|
static |
Definition at line 423 of file DataGetterHelper.cc.
References edm::TypeID::className(), edm::hlt::Exception, and edm::errors::ProductNotFound.
|
mutableprivate |
Definition at line 87 of file DataGetterHelper.h.
Referenced by DataGetterHelper(), getBranchData(), and getByProductID().
|
mutableprivate |
Definition at line 89 of file DataGetterHelper.h.
Referenced by getBranchDataFor(), and getByProductID().
|
private |
Definition at line 95 of file DataGetterHelper.h.
Referenced by getByLabel(), getByProductID(), getter(), and setGetter().
|
private |
Definition at line 94 of file DataGetterHelper.h.
Referenced by history().
|
mutableprivate |
Definition at line 93 of file DataGetterHelper.h.
Referenced by getByProductID().
|
mutableprivate |
Definition at line 90 of file DataGetterHelper.h.
Referenced by getBranchDataFor().
|
mutableprivate |
Definition at line 96 of file DataGetterHelper.h.
Referenced by DataGetterHelper(), and getBranchData().
|
mutableprivate |
Definition at line 97 of file DataGetterHelper.h.
Referenced by getBranchData().
|
private |
Definition at line 86 of file DataGetterHelper.h.
Referenced by DataGetterHelper(), getBranchData(), and getBranchDataFor().