#include <FWCore/Skeletons/scripts/mkTemplates/TSelector/tselector.h>
Public Member Functions | |
void | postProcess (TList &) |
void | process (const edm::Event &iEvent) |
tselnameWorker (const TList *, TList &) | |
~tselnameWorker () | |
Public Attributes | |
example_track TH1F * | h_pt |
Definition at line 25 of file tselector.h.
tselnameWorker::tselnameWorker | ( | const TList * | fromSelector, | |
TList & | out | |||
) |
tselnameWorker::~tselnameWorker | ( | ) |
void tselnameWorker::postProcess | ( | TList & | out | ) |
void tselnameWorker::process | ( | const edm::Event & | iEvent | ) |
Definition at line 59 of file tselector.cc.
References edm::Event::getByLabel(), h_pt, and tracks.
00059 { 00060 using namespace edm; 00061 @example_track using reco::TrackCollection; 00062 00063 @example_track Handle<TrackCollection> tracks; 00064 @example_track iEvent.getByLabel("ctfWithMaterialTracks",tracks); 00065 @example_track for(TrackCollection::const_iterator itTrack = tracks->begin(); 00066 @example_track itTrack != tracks->end(); 00067 @example_track ++itTrack) { 00068 @example_track h_pt->Fill(itTrack->pt()); 00069 @example_track } 00070 00071 // using namespace edmtest; 00072 // edm::Handle<ThingCollection> hThings; 00073 // iEvent.getByLabel("Thing",hThings); 00074 // for ( ThingCollection::const_iterator it = hThings->begin(); 00075 // it != hThings->end(); ++it ) { 00076 // h_a ->Fill( it->a ); 00077 // } 00078 00079 }
example_track TH1F* tselnameWorker::h_pt |