29 using namespace fwlite;
73 using std::placeholders::_1;
86 TObject*
obj =
m_file->Get(realName.c_str());
90 TTree*
tree =
dynamic_cast<TTree*
>(
obj);
101 TObject*
obj =
m_file->Get(treeName.c_str());
103 throw cms::Exception(
"UnknownRecord")<<
"The TTree for the record "<<iRecordName<<
" does not exist "<<
m_file->GetName();
105 TTree*
tree =
dynamic_cast<TTree*
>(
obj);
107 throw cms::Exception(
"UnknownRecord")<<
"The object corresponding to "<<iRecordName<<
" in file "<<
m_file->GetName()<<
" is not a TTree and therefore is not a Record";
110 throw cms::Exception(
"UnknownRecord")<<
"The TTree corresponding to "<<iRecordName<<
" in file "<<
m_file->GetName()<<
" does not have the proper structure to be a Record";
114 for(std::vector<Record*>::iterator it =
m_records.begin(), itEnd=
m_records.end(); it!=itEnd;++it){
115 if((*it)->name()==
name) {
133 std::vector<std::string>
136 std::vector<std::string> returnValue;
141 while(TObject*
obj =
next() ) {
142 TKey*
key =
static_cast<TKey*
> (
obj);
143 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 &)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
bool exists(const char *iRecordName) const
const Record & get(const RecordID &) const