Definition at line 64 of file TFWLiteSelectorBasic.cc.
edm::root::FWLiteDelayedReader::FWLiteDelayedReader |
( |
| ) |
|
|
inline |
std::unique_ptr< WrapperBase > edm::root::FWLiteDelayedReader::getTheProduct |
( |
BranchID const & |
k | ) |
const |
|
private |
Definition at line 97 of file TFWLiteSelectorBasic.cc.
References edm::ObjectWithDict::address(), bidToDesc_, MicroEventContent_cff::branch, edm::BranchDescription::branchName(), edm::TypeWithDict::byName(), edm::ObjectWithDict::castObject(), edm::BranchDescription::className(), entry_, eventTree_, Exception, edm::BranchID::id(), gen::k, parseEventContent::prod, edm::errors::ProductNotFound, AlCaHLTBitMon_QueryRunRegistry::string, and edm::wrappedClassName().
Referenced by getProduct_(), and set().
102 BranchDescription
const& bDesc = *(itFind->second);
105 if(
nullptr == branch) {
107 <<
"could not find branch named '" << bDesc.branchName() <<
"'" 108 <<
"\n Perhaps the data being requested was not saved in this file?";
113 if(!
bool(classType)) {
115 <<
"could not find dictionary for type '" << fullName <<
"'" 116 <<
"\n Please make sure all the necessary libraries are available.";
120 ObjectWithDict wrapperObj = classType.construct();
121 if(
nullptr == wrapperObj.address()) {
122 throw cms::Exception(
"FailedToCreate") <<
"could not create an instance of '" << fullName <<
"'";
124 void* address = wrapperObj.address();
125 branch->SetAddress(&address);
128 WrapperBase*
prod =
reinterpret_cast<WrapperBase*
>(edProdObj.address());
130 if(
nullptr == prod) {
132 <<
"failed to convert a '" << fullName
133 <<
"' to a edm::WrapperBase." 134 <<
"Please contact developers since something is very wrong.";
137 return std::unique_ptr<WrapperBase>(
prod);
std::shared_ptr< std::unordered_map< unsigned int, BranchDescription const * > > bidToDesc_
static TypeWithDict byName(std::string const &name)
std::string wrappedClassName(std::string const &iFullName)
void edm::root::FWLiteDelayedReader::mergeReaders_ |
( |
DelayedReader * |
| ) |
|
|
inlineoverrideprivatevirtual |
|
inlineoverrideprivatevirtual |
|
inlineoverrideprivatevirtual |
void edm::root::FWLiteDelayedReader::reset_ |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
void edm::root::FWLiteDelayedReader::set |
( |
std::shared_ptr< std::unordered_map< unsigned int, BranchDescription const * >> |
iMap | ) |
|
|
inline |
void edm::root::FWLiteDelayedReader::setEntry |
( |
Long64_t |
iEntry | ) |
|
|
inline |
void edm::root::FWLiteDelayedReader::setTree |
( |
TTree * |
iTree | ) |
|
|
inline |
std::shared_ptr<std::unordered_map<unsigned int, BranchDescription const*> > edm::root::FWLiteDelayedReader::bidToDesc_ |
|
private |
Long64_t edm::root::FWLiteDelayedReader::entry_ |
|
private |
TTree* edm::root::FWLiteDelayedReader::eventTree_ |
|
private |