72 using std::placeholders::_1;
85 TObject*
obj =
m_file->Get(realName.c_str());
89 TTree*
tree =
dynamic_cast<TTree*
>(
obj);
100 TObject*
obj =
m_file->Get(treeName.c_str());
102 throw cms::Exception(
"UnknownRecord")<<
"The TTree for the record "<<iRecordName<<
" does not exist "<<
m_file->GetName();
104 TTree*
tree =
dynamic_cast<TTree*
>(
obj);
105 if(
nullptr == tree) {
106 throw cms::Exception(
"UnknownRecord")<<
"The object corresponding to "<<iRecordName<<
" in file "<<
m_file->GetName()<<
" is not a TTree and therefore is not a Record";
109 throw cms::Exception(
"UnknownRecord")<<
"The TTree corresponding to "<<iRecordName<<
" in file "<<
m_file->GetName()<<
" does not have the proper structure to be a Record";
113 for(std::vector<Record*>::const_iterator it =
m_records.begin(), itEnd=
m_records.end(); it!=itEnd;++it){
114 if((*it)->name()==
name) {
132 std::vector<std::string>
135 std::vector<std::string> returnValue;
140 while(TObject*
obj =
next() ) {
141 TKey*
key =
static_cast<TKey*
> (
obj);
142 if(0==strcmp(key->GetClassName(),
"TTree")) {
void syncTo(const edm::EventID &, const edm::Timestamp &)
std::vector< std::string > namesOfAvailableRecords() const
std::vector< Record * > m_records
RecordID recordID(const char *iRecordName) const
std::string unformat_mangled_to_type(const std::string &)
given a mangled name return the C++ class name
std::string format_type_to_mangled(const std::string &)
given a C++ class name returned a mangled name
void syncTo(const edm::EventID &, const edm::Timestamp &)
bool exists(const char *iRecordName) const
const Record & get(const RecordID &) const