1 #ifndef DataFormats_FWLite_ChainEvent_h 2 #define DataFormats_FWLite_ChainEvent_h 34 class ProductRegistry;
36 class BranchDescription;
51 ChainEvent(std::vector<std::string>
const& iFileNames);
57 bool to(Long64_t iIndex);
69 std::string const getBranchNameFor(std::type_info
const&,
72 char const*)
const override;
77 bool getByLabel(std::type_info
const&,
char const*,
char const*,
char const*,
void*)
const override;
81 operator bool()
const;
82 bool atEnd()
const override;
84 Long64_t
size()
const;
88 std::vector<edm::BranchDescription>
const& getBranchDescriptions()
const;
89 std::vector<std::string>
const& getProcessHistory()
const;
102 Long64_t
fileIndex()
const override {
return eventIndex_; }
104 void setGetter(std::shared_ptr<edm::EDProductGetter const> getter){
105 event_->setGetter(getter);
111 void fillParameterSetRegistry()
const ;
125 std::vector<edm::WrapperBase const*>& foundContainers,
126 std::vector<unsigned int>&
keys)
const;
140 void switchToFile(Long64_t);
edm::propagate_const< std::shared_ptr< Event > > event_
unsigned long long EventNumber_t
unsigned int LuminosityBlockNumber_t
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
T const * getThinnedProduct(RefCore const &ref, unsigned int &thinnedKey, EDProductGetter const *prodGetter)
std::vector< Long64_t > accumulatedSize_
static std::string const triggerResults("TriggerResults")
edm::propagate_const< std::shared_ptr< TFile > > file_
edm::propagate_const< std::shared_ptr< edm::EDProductGetter > > getter_
Long64_t fileIndex() const override
Long64_t eventIndex() const
static void throwProductNotFoundException(char const *where, errors::ErrorCodes error, BranchID const &bid)
Event const * event() const
std::vector< std::string > fileNames_
ParameterSet const & parameterSet(Provenance const &provenance)
void setGetter(std::shared_ptr< edm::EDProductGetter const > getter)