41 Long64_t summedSize=0;
45 for (std::vector<std::string>::const_iterator it= iFileNames.begin(), itEnd = iFileNames.end();
48 TFile *tfilePtr = TFile::Open(it->c_str());
49 file_ = boost::shared_ptr<TFile>(tfilePtr);
50 gROOT->GetListOfFiles()->Remove(tfilePtr);
53 throw cms::Exception(
"NotEdmFile")<<
"The file "<<*it<<
" has no 'Events' TTree and therefore is not an EDM ROOT file";
55 Long64_t
nEvents = tree->GetEntries();
157 if (
event_->to( run, lumi, event ) )
167 std::vector<std::string>::const_iterator filesBegin =
fileNames_.begin(),
172 if (
ifile - filesBegin != thisFile )
177 if (
event_->to( run, lumi, event ) )
193 return to(run, 0U, event);
213 TFile *tfilePtr = TFile::Open(
fileNames_[iIndex].c_str());
214 file_ = boost::shared_ptr<TFile>(tfilePtr);
215 gROOT->GetListOfFiles()->Remove(tfilePtr);
225 const char* iInstance,
226 const char* iProcess)
const
228 return event_->getBranchNameFor(iType,iModule,iInstance,iProcess);
231 const std::vector<edm::BranchDescription>&
234 return event_->getBranchDescriptions();
237 const std::vector<std::string>&
240 return event_->getProcessHistory();
246 return event_->eventAuxiliary();
251 return event_->getLuminosityBlock();
263 const char* iInstance,
264 const char* iProcess,
267 return event_->getByLabel(iType,iModule,iInstance,iProcess,iValue);
272 return event_->getByProductID( iID );
303 return event_->triggerNames(triggerResults);
309 event_->fillParameterSetRegistry();
314 return event_->triggerResultsByName(process);
323 const char* iInstance,
324 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()
Event const * event() const
boost::shared_ptr< TFile > file_
std::vector< std::string > fileNames_