CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
__class__Worker Struct Reference

#include <TSelector.h>

Public Member Functions

 __class__Worker (const TList *, TList &)
 
void postProcess (TList &)
 
void process (const edm::Event &iEvent)
 
 ~__class__Worker ()
 

Public Attributes

example_track TH1F * h_pt
 

Detailed Description

Definition at line 24 of file TSelector.h.

Constructor & Destructor Documentation

__class__Worker::__class__Worker ( const TList *  fromSelector,
TList &  out 
)

Definition at line 46 of file TSelector.cc.

References h_pt, and kPt.

46  {
47  //h_a = new TH1F( kA , "a" , 100, 0, 20 );
48  //out.Add(h_a);
49 @example_track h_pt = new TH1F(kPt, "P_t",100,0,100);
50 @example_track out.Add(h_pt);
51 }
example_track example_track const char *const kPt
Definition: TSelector.cc:34
example_track TH1F * h_pt
Definition: TSelector.h:31
__class__Worker::~__class__Worker ( )

Definition at line 53 of file TSelector.cc.

54 {
55 }

Member Function Documentation

void __class__Worker::postProcess ( TList &  out)

Definition at line 83 of file TSelector.cc.

References __class__< T >::__class__(), and __class__< T >::~__class__().

84 {
85 }
void __class__Worker::process ( const edm::Event iEvent)

Definition at line 58 of file TSelector.cc.

References edm::Event::getByLabel(), h_pt, and l1t::tracks.

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

58  {
59  using namespace edm;
60 @example_track using reco::TrackCollection;
61 
62 @example_track Handle<TrackCollection> tracks;
63 @example_track iEvent.getByLabel("ctfWithMaterialTracks",tracks);
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());
68 @example_track }
69 
70 // using namespace edmtest;
71 // edm::Handle<ThingCollection> hThings;
72 // iEvent.getByLabel("Thing",hThings);
73 // for ( ThingCollection::const_iterator it = hThings->begin();
74 // it != hThings->end(); ++it ) {
75 // h_a ->Fill( it->a );
76 // }
77 
78 }
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
example_track TH1F * h_pt
Definition: TSelector.h:31
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:464
HLT enums.

Member Data Documentation

example_track TH1F* __class__Worker::h_pt

Definition at line 31 of file TSelector.h.

Referenced by __class__Worker(), and process().