26 #include "__subsys__/__pkgname__/plugins/__class__.h"
30 @example_track #
include "DataFormats/TrackReco/interface/Track.h"
34 @example_track
const char*
const kPt =
"pt";
49 @example_track
h_pt =
new TH1F(
kPt,
"P_t",100,0,100);
50 @example_track out.Add(h_pt);
64 @example_track
for(TrackCollection::const_iterator itTrack =
tracks->begin();
65 @example_track itTrack !=
tracks->end();
66 @example_track ++itTrack) {
67 @example_track
h_pt->Fill(itTrack->pt());
108 std::auto_ptr<TCanvas>
canvas(
new TCanvas() );
120 @example_track TObject*
hist = fromWorkers.FindObject(
kPt);
121 @example_track
if(0!=hist) {
122 @example_track hist->Draw();
123 @example_track canvas->SaveAs(
"pt.jpg" );
124 @example_track }
else {
125 @example_track
cout <<
"no '"<<
kPt<<
"' histogram"<<endl;
void process(const edm::Event &iEvent)
example_track example_track const char *const kPt
std::vector< Track > TrackCollection
collection of Tracks
example_track TH1F * h_pt
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void postProcess(TList &)
bool include(const CollT &coll, const ItemT &item)
__class__Worker(const TList *, TList &)