CMS 3D CMS Logo

Event Class Reference

#include "Event.h"

Detailed Description

Description: Provide event data access in FWLite

Usage: This class is meant to allow one to loop over all events in a TFile and then read the data in an Event in a manner analogous to how data is read in the full framework. A typical use would be

TFile f("foo.root");
for(ev.toBeing(); ! ev.atEnd(); ++ev) {
foos.getByLabel(ev, "myFoos");
}

The above example will work for both ROOT and compiled code. However, it is possible to exactly match the full framework if you only intend to compile your code. In that case the access would look like

TFile f("foo.root");
edm::InputTag fooTag("myFoos");
for(ev.toBeing(); ! ev.atEnd(); ++ev) {
ev.getByLabel(fooTag, foos);
}

NOTE: This class is not safe to use across threads.

Description: This is the primary interface for accessing EDProducts from a single collision and inserting new derived products.

For its usage, see "FWCore/Framework/interface/PrincipalGetAdapter.h"

Description: [one line class summary]

Usage: <usage>

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::Handle
Definition: AssociativeIterator.h:50
fwlite::Handle
Definition: Handle.h:39
fwlite::Handle::getByLabel
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=nullptr, const char *iProcessLabel=nullptr)
Definition: Handle.h:100
fwlite::Event
Definition: Event.h:87
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
edm::InputTag
Definition: InputTag.h:15