1 #ifndef DataFormats_FWLite_MultiChainEvent_h
2 #define DataFormats_FWLite_MultiChainEvent_h
20 #if !defined(__CINT__) && !defined(__MAKECINT__)
25 #include "boost/shared_ptr.hpp"
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);
85 virtual bool getByLabel(std::type_info
const&,
char const*,
char const*,
char const*,
void*)
const;
90 operator bool()
const;
93 Long64_t
size()
const;
111 return event1_->getLuminosityBlock();
120 {
return event1_->eventIndex(); }
122 {
return event2_->eventIndex(); }
146 bool toSec(Long64_t iIndex);
158 boost::shared_ptr<internal::MultiProductGetter>
getter_;
TFile * getTFileSec() const
edm::WrapperHolder getByProductID(edm::ProductID const &) const
std::vector< edm::BranchDescription > const & getBranchDescriptions() const
Long64_t eventIndexSec() const
unsigned int EventNumber_t
boost::shared_ptr< ChainEvent > event2_
ChainEvent const * secondary() const
virtual ~MultiChainEvent()
const MultiChainEvent & operator++()
fwlite::Run const & getRun()
ChainEvent const * primary() const
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::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
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
boost::shared_ptr< ChainEvent > event1_
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
boost::shared_ptr< internal::MultiProductGetter > getter_
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
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 &)
Long64_t eventIndex() const
fwlite::LuminosityBlock const & getLuminosityBlock()
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const