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 const char* iInstance,
227 const char* iProcess)
const
229 return event_->getBranchNameFor(iType,iModule,iInstance,iProcess);
232 const std::vector<edm::BranchDescription>&
235 return event_->getBranchDescriptions();
238 const std::vector<std::string>&
241 return event_->getProcessHistory();
247 return event_->processHistory();
253 return event_->eventAuxiliary();
258 return event_->getLuminosityBlock();
270 const char* iInstance,
271 const char* iProcess,
274 return event_->getByLabel(iType,iModule,iInstance,iProcess,iValue);
279 return event_->getByProductID( iID );
310 return event_->triggerNames(triggerResults);
316 event_->fillParameterSetRegistry();
321 return event_->triggerResultsByName(process);
330 const char* iInstance,
331 const char* iProcess) {
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
virtual edm::TriggerResultsByName triggerResultsByName(std::string const &process) const
static void throwProductNotFoundException(const std::type_info &, const char *, const char *, const char *)
unsigned int EventNumber_t
virtual edm::EventAuxiliary const & eventAuxiliary() const
void switchToFile(Long64_t)
edm::LuminosityBlockNumber_t luminosityBlock() const
edm::EDProduct const * getByProductID(edm::ProductID const &) const
virtual bool getByLabel(const std::type_info &, const char *, const char *, const char *, void *) const
unsigned int LuminosityBlockNumber_t
const std::vector< edm::BranchDescription > & getBranchDescriptions() const
const ChainEvent & operator++()
ChainEvent(const std::vector< std::string > &iFileNames)
fwlite::LuminosityBlock const & getLuminosityBlock()
const ChainEvent & toBegin()
void fillParameterSetRegistry() 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
const std::vector< std::string > & getProcessHistory() const
std::vector< Long64_t > accumulatedSize_
virtual const std::string getBranchNameFor(const std::type_info &, const char *, const char *, const char *) const
static void throwProductNotFoundException(const std::type_info &, const char *, const char *, const char *)
std::string const & eventTreeName()
edm::ProcessHistory const & processHistory() const
Event const * event() const
boost::shared_ptr< TFile > file_
std::vector< std::string > fileNames_