1 #ifndef DataFormats_FWLite_MultiChainEvent_h
2 #define DataFormats_FWLite_MultiChainEvent_h
20 #if !defined(__CINT__) && !defined(__MAKECINT__)
34 class ProductRegistry;
36 class BranchDescription;
47 class MultiProductGetter;
60 std::vector<std::string>
const& iFileNames2,
61 bool useSecFileMapSorted =
false);
67 bool to(Long64_t iIndex);
87 virtual bool getByLabel(std::type_info
const&,
char const*,
char const*,
char const*,
void*)
const;
91 operator bool()
const;
94 Long64_t
size()
const;
112 return event1_->getLuminosityBlock();
121 {
return event1_->eventIndex(); }
123 {
return event2_->eventIndex(); }
142 std::vector<edm::WrapperBase const*>& foundContainers,
143 std::vector<unsigned int>&
keys)
const;
152 bool toSec(Long64_t iIndex);
164 std::shared_ptr<internal::MultiProductGetter>
getter_;
TFile * getTFileSec() const
std::vector< edm::BranchDescription > const & getBranchDescriptions() const
Long64_t eventIndexSec() const
ChainEvent const * secondary() const
virtual ~MultiChainEvent()
unsigned long long EventNumber_t
const MultiChainEvent & operator++()
fwlite::Run const & getRun()
ChainEvent const * primary() const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
unsigned int LuminosityBlockNumber_t
bool to(Long64_t iIndex)
Go to the event at index iIndex.
virtual Long64_t secondaryFileIndex() const
const MultiChainEvent & toBegin()
bool toSec(Long64_t iIndex)
Go to the event from secondary files at index iIndex.
virtual edm::WrapperBase const * getByProductID(edm::ProductID const &) const
edm::WrapperBase const * getThinnedProduct(edm::ProductID const &pid, unsigned int &key) const
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
std::shared_ptr< internal::MultiProductGetter > getter_
edm::ProcessHistory const & processHistory() const
bool useSecFileMapSorted_
std::map< edm::EventID, Long64_t > sec_file_index_map
std::vector< std::string > const & getProcessHistory() const
virtual Long64_t fileIndex() const
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
static std::string const triggerResults
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::map< event_id_range, Long64_t > sec_file_range_index_map
sec_file_range_index_map secFileMapSorted_
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
void getThinnedProducts(edm::ProductID const &pid, std::vector< edm::WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const
virtual edm::EventAuxiliary const & eventAuxiliary() const
MultiChainEvent(std::vector< std::string > const &iFileNames1, std::vector< std::string > const &iFileNames2, bool useSecFileMapSorted=false)
std::pair< edm::EventID, edm::EventID > event_id_range
virtual edm::TriggerResultsByName triggerResultsByName(std::string const &process) const
const MultiChainEvent & operator=(Event const &)
std::shared_ptr< ChainEvent > event2_
Long64_t eventIndex() const
fwlite::LuminosityBlock const & getLuminosityBlock()
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const
std::shared_ptr< ChainEvent > event1_