49 dataHelper_(branchMap_->getRunTree(),
54 throw cms::Exception(
"NoFile")<<
"The TFile pointer passed to the constructor was null";
71 <<
" does not contain a branch named 'RunAuxiliary'";
75 throw cms::Exception(
"OldFileVersion")<<
"The FWLite Run code des not support old file versions";
90 Run::Run(boost::shared_ptr<BranchMapReader> branchMap):
91 branchMap_(branchMap),
95 dataHelper_(branchMap_->getRunTree(),
112 <<
" does not contain a branch named 'RunAuxiliary'";
116 throw cms::Exception(
"OldFileVersion")<<
"The FWLite Run code des not support old file versions";
137 for(std::vector<char const*>::iterator it =
labels_.begin(), itEnd=
labels_.end();
153 if(runIndex <
size())
185 return branchMap_->getRunTree()->GetEntries();
192 return runIndex!=-1 and runIndex <
size();
205 return runIndex==-1
or runIndex ==
size();
211 char const* iModuleLabel,
212 char const* iProductInstanceLabel,
213 char const* iProcessLabel)
const
220 std::type_info
const& iInfo,
221 char const* iModuleLabel,
222 char const* iProductInstanceLabel,
223 char const* iProcessLabel,
227 throw cms::Exception(
"OffEnd")<<
"You have requested data past the last run";
230 return dataHelper_.
getByLabel(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel, oData, runIndex);
235 char const* iModuleLabel,
236 char const* iProductInstanceLabel,
237 char const* iProcessLabel,
240 throw cms::Exception(
"OffEnd") <<
"You have requested data past the last run";
243 return dataHelper_.
getByLabel(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel, holder, runIndex);
257 if(
auxBranch_->GetEntryNumber() != runIndex) {
271 bool newFormat =
false;
283 throw cms::Exception(
"NoMetaTree")<<
"The TFile does not appear to contain a TTree named "
290 b->SetAddress(&pPhm);
296 b->SetAddress(&pPhv);
298 for (edm::ProcessHistoryVector::const_iterator
i = historyVector.begin(),
e = historyVector.end();
346 <<
"'\n productInstance='"<<((0!=iProduct)?iProduct:
"")<<
"'\n process='"<<((0!=iProcess)?iProcess:
"")<<
"'\n"
347 "but no data is available for this Run";
edm::RunAuxiliary * pAux_
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void updateAux(Long_t runIndex) const
edm::WrapperHolder getByProductID(edm::ProductID const &) const
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
ProcessHistoryRegistry::collection_type ProcessHistoryMap
virtual edm::RunAuxiliary const & runAuxiliary() const
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
std::string const & processHistoryMapBranchName()
std::vector< std::string > procHistoryNames_
edm::IndexIntoFile::EntryNumber_t EntryNumber_t
const edm::ProcessHistory & history() const
std::pair< std::string, MonitorElement * > entry
ProcessHistoryRegistry::vector_type ProcessHistoryVector
void fillIndex(BranchMapReader const &branchMap)
std::string const & metaDataTreeName()
std::string const & runTreeName()
EntryNumber_t findRun(edm::RunNumber_t const &run) const
std::string className() const
static EntryNumber_t const invalidEntry
std::string const & processHistoryBranchName()
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
void conversion(EventAux const &from, EventAuxiliary &to)
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const
fwlite::DataGetterHelper dataHelper_
ProcessHistoryID const & processHistoryID() const
virtual bool atEnd() const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *, Long_t) const
edm::ProcessHistoryMap historyMap_
std::vector< char const * > labels_
boost::shared_ptr< BranchMapReader > branchMap_
edm::WrapperHolder getByProductID(edm::ProductID const &, Long_t) const
bool to(edm::RunNumber_t run)
Go to event by Run & Run number.