CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Event Class Reference

#include <FWCore/Framework/interface/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 CINT 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);
}

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"