CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
tuple out
Definition: dbtoconf.py:99
__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.

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 testEve_cfg::tracks.

Referenced by ConfigBuilder.ConfigBuilder::__init__(), ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::anyOf(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HARVESTING(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), 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:13
example_track TH1F * h_pt
Definition: TSelector.h:31
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:402
tuple tracks
Definition: testEve_cfg.py:39

Member Data Documentation

example_track TH1F* __class__Worker::h_pt

Definition at line 31 of file TSelector.h.

Referenced by __class__Worker(), and process().