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