25 #include "__subsys__/__pkgname__/interface/__class__.h" 29 @example_track#
include "DataFormats/TrackReco/interface/Track.h" 30 @example_track#
include "DataFormats/TrackReco/interface/TrackFwd.h" 34 @example_trackconst
char*
const kPt =
"pt";
49 @example_track
h_pt =
new TH1F(
kPt,
"P_t", 100, 0, 100);
61 @example_track
iEvent.getByLabel(
"ctfWithMaterialTracks",
tracks);
92 auto canvas = std::make_unique<TCanvas>();
104 @example_track TObject*
hist = fromWorkers.FindObject(
kPt);
105 @example_track
if (
nullptr !=
hist) {
106 @example_track
hist->Draw();
107 @example_track
canvas->SaveAs(
"pt.jpg");
108 @example_track }
else {
109 @example_track
cout <<
"no '" <<
kPt <<
"' histogram" << endl;
void process(const edm::Event &iEvent)
std::vector< Track > TrackCollection
collection of Tracks
example_track example_track example_trackconst char *const kPt
example_track TH1F * h_pt
void begin(TList *&) override
void postProcess(TList &)
auto const & tracks
cannot be loose
bool include(const CollT &coll, const ItemT &item)
void terminate(TList &) override
__class__Worker(const TList *, TList &)