49 dataHelper_(branchMap_->getRunTree(),
53 if(
nullptr == iFile) {
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(std::shared_ptr<BranchMapReader> branchMap):
112 <<
" does not contain a branch named 'RunAuxiliary'";
116 throw cms::Exception(
"OldFileVersion")<<
"The FWLite Run code des not support old file versions";
151 if(runIndex <
size())
183 return branchMap_->getRunTree()->GetEntries();
190 return runIndex!=-1 and runIndex <
size();
203 return runIndex==-1
or runIndex ==
size();
209 char const* iModuleLabel,
210 char const* iProductInstanceLabel,
211 char const* iProcessLabel)
const 218 std::type_info
const& iInfo,
219 char const* iModuleLabel,
220 char const* iProductInstanceLabel,
221 char const* iProcessLabel,
225 throw cms::Exception(
"OffEnd")<<
"You have requested data past the last run";
228 return dataHelper_.
getByLabel(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel, oData, runIndex);
242 if(
auxBranch_->GetEntryNumber() != runIndex) {
256 bool newFormat =
false;
267 if(
nullptr == meta) {
268 throw cms::Exception(
"NoMetaTree")<<
"The TFile does not appear to contain a TTree named " 275 b->SetAddress(&pPhm);
281 b->SetAddress(&pPhv);
283 for (
auto&
history : historyVector) {
330 <<
"'\n productInstance='"<<((
nullptr != iProduct)?iProduct:
"")<<
"'\n process='"<<((
nullptr != iProcess)?iProcess:
"")<<
"'\n" 331 "but no data is available for this Run";
std::vector< ProcessHistory > ProcessHistoryVector
edm::RunAuxiliary const * pAux_
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
bool atEnd() const override
void updateAux(Long_t runIndex) const
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
ProcessHistoryID setProcessHistoryID()
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::WrapperBase const * getByProductID(edm::ProductID const &pid, Long_t eventEntry) const
const Run & toBegin() override
edm::IndexIntoFile::EntryNumber_t EntryNumber_t
const edm::ProcessHistory & history() const
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::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
std::string const & metaDataTreeName()
std::string const & runTreeName()
EntryNumber_t findRun(edm::RunNumber_t const &run) const
void fillIndex(BranchMapReader &branchMap)
static EntryNumber_t const invalidEntry
std::string const & processHistoryBranchName()
edm::RunAux const * pOldAux_
bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const override
edm::WrapperBase const * getByProductID(edm::ProductID const &) const
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
void conversion(EventAux const &from, EventAuxiliary &to)
std::shared_ptr< BranchMapReader > branchMap_
fwlite::DataGetterHelper dataHelper_
ProcessHistoryID const & processHistoryID() 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_
std::string const & className() const
const Run & operator++() override
edm::RunAuxiliary const & runAuxiliary() const override
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
bool to(edm::RunNumber_t run)
Go to event by Run & Run number.