42 Long64_t summedSize=0;
46 for (std::vector<std::string>::const_iterator it= iFileNames.begin(), itEnd = iFileNames.end();
49 TFile *tfilePtr = TFile::Open(it->c_str());
50 file_ = boost::shared_ptr<TFile>(tfilePtr);
51 gROOT->GetListOfFiles()->Remove(tfilePtr);
54 throw cms::Exception(
"NotEdmFile")<<
"The file "<<*it<<
" has no 'Events' TTree and therefore is not an EDM ROOT file";
56 Long64_t
nEvents = tree->GetEntries();
158 if (
event_->to(run, lumi, event))
168 std::vector<std::string>::const_iterator filesBegin =
fileNames_.begin(),
173 if (
ifile - filesBegin != thisFile)
178 if (
event_->to(run, lumi, event))
194 return to(run, 0U, event);
214 TFile *tfilePtr = TFile::Open(
fileNames_[iIndex].c_str());
215 file_ = boost::shared_ptr<TFile>(tfilePtr);
216 gROOT->GetListOfFiles()->Remove(tfilePtr);
226 char const* iInstance,
227 char const* iProcess)
const
229 return event_->getBranchNameFor(iType,iModule,iInstance,iProcess);
232 std::vector<edm::BranchDescription>
const&
235 return event_->getBranchDescriptions();
238 std::vector<std::string>
const&
241 return event_->getProcessHistory();
247 return event_->processHistory();
253 return event_->eventAuxiliary();
258 return event_->getLuminosityBlock();
269 char const* iInstance,
270 char const* iProcess,
273 return event_->getByLabel(iType, iModule, iInstance, iProcess, iValue);
279 char const* iInstance,
280 char const* iProcess,
283 return event_->getByLabel(iType, iModule, iInstance, iProcess, holder);
288 return event_->getByProductID(iID);
319 return event_->triggerNames(triggerResults);
325 event_->fillParameterSetRegistry();
330 return event_->triggerResultsByName(process);
339 char const* iInstance,
340 char const* iProcess) {
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
virtual edm::TriggerResultsByName triggerResultsByName(std::string const &process) const
unsigned int EventNumber_t
virtual edm::EventAuxiliary const & eventAuxiliary() const
void switchToFile(Long64_t)
edm::WrapperHolder getByProductID(edm::ProductID const &) const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const
edm::LuminosityBlockNumber_t luminosityBlock() const
unsigned int LuminosityBlockNumber_t
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
fwlite::LuminosityBlock const & getLuminosityBlock()
void fillParameterSetRegistry() const
std::vector< std::string > const & getProcessHistory() const
boost::shared_ptr< Event > event_
fwlite::Run const & getRun()
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
bool to(Long64_t iIndex)
Go to the event at index iIndex.
virtual bool atEnd() const
std::vector< Long64_t > accumulatedSize_
std::vector< edm::BranchDescription > const & getBranchDescriptions() const
ChainEvent const & toBegin()
ChainEvent const & operator++()
static void throwProductNotFoundException(std::type_info const &, char const *, char const *, char const *)
std::string const & eventTreeName()
virtual edm::ProcessHistory const & processHistory() const
Event const * event() const
boost::shared_ptr< TFile > file_
std::vector< std::string > fileNames_
ChainEvent(std::vector< std::string > const &iFileNames)