Definition at line 58 of file TFWLiteSelectorBasic.cc.
edm::root::FWLiteDelayedReader::FWLiteDelayedReader |
( |
| ) |
|
|
inline |
std::unique_ptr< WrapperBase > edm::root::FWLiteDelayedReader::getTheProduct |
( |
BranchKey const & |
k | ) |
const |
|
private |
Definition at line 83 of file TFWLiteSelectorBasic.cc.
References edm::BranchDescription::branchName(), edm::BranchDescription::className(), entry_, eventTree_, edm::hlt::Exception, newFWLiteAna::fullName, roll_playback::k, parseEventContent::prod, edm::errors::ProductNotFound, AlCaHLTBitMon_QueryRunRegistry::string, and edm::wrappedClassName().
Referenced by getProduct_().
84 ProductRegistry::ProductList::const_iterator itFind= reg_->productList().find(
k);
85 if(itFind == reg_->productList().end()) {
88 BranchDescription
const& bDesc = itFind->second;
90 TBranch* branch=
eventTree_->GetBranch(bDesc.branchName().c_str());
91 if(
nullptr == branch) {
93 <<
"could not find branch named '" << bDesc.branchName() <<
"'"
94 <<
"\n Perhaps the data being requested was not saved in this file?";
101 <<
"could not find dictionary for type '" << fullName <<
"'"
102 <<
"\n Please make sure all the necessary libraries are available.";
106 Reflex::Object wrapperObj = classType.Construct();
107 if(
nullptr == wrapperObj.Address()) {
108 throw cms::Exception(
"FailedToCreate") <<
"could not create an instance of '" << fullName <<
"'";
110 void* address = wrapperObj.Address();
111 branch->SetAddress(&address);
112 Reflex::Object edProdObj = wrapperObj.CastObject(Reflex::Type::ByName(
"edm::WrapperBase"));
114 WrapperBase*
prod =
reinterpret_cast<WrapperBase*
>(edProdObj.Address());
116 if(
nullptr == prod) {
118 <<
"failed to convert a '" << fullName
119 <<
"' to a edm::WrapperBase."
120 <<
"Please contact developers since something is very wrong.";
123 return std::unique_ptr<WrapperBase>(
prod);
std::string wrappedClassName(std::string const &iFullName)
virtual void edm::root::FWLiteDelayedReader::mergeReaders_ |
( |
DelayedReader * |
| ) |
|
|
inlineoverrideprivatevirtual |
virtual void edm::root::FWLiteDelayedReader::reset_ |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
void edm::root::FWLiteDelayedReader::set |
( |
std::shared_ptr< ProductRegistry const > |
iReg | ) |
|
|
inline |
void edm::root::FWLiteDelayedReader::setEntry |
( |
Long64_t |
iEntry | ) |
|
|
inline |
void edm::root::FWLiteDelayedReader::setTree |
( |
TTree * |
iTree | ) |
|
|
inline |
edm::root::FWLiteDelayedReader::std::shared_ptr |
( |
reg_ |
| ) |
|
|
private |
Long64_t edm::root::FWLiteDelayedReader::entry_ |
|
private |
TTree* edm::root::FWLiteDelayedReader::eventTree_ |
|
private |