FWCore
Skeletons
mkTemplates
TSelector
TSelector.h
Go to the documentation of this file.
1
#ifndef __subsys_____pkgname_____class___h
2
#define __subsys_____pkgname_____class___h
3
// -*- C++ -*-
4
//
5
// Package: __subsys__/__pkgname__
6
// Class: __class__
7
//
15
//
16
// Original Author: __author__
17
// Created: __date__
18
//
19
//
20
#include <TH1.h>
21
#include "
FWCore/TFWLiteSelector/interface/TFWLiteSelector.h
"
22
23
//A worker processes the events. When using PROOF there is one Worker per PROOF CPU Node.
24
struct
__class__Worker
{
25
__class__Worker
(
const
TList*, TList&);
26
~__class__Worker
();
27
void
process
(
const
edm::Event
&
iEvent
);
28
void
postProcess
(TList&);
29
//Place histograms, etc that you want to fill here
30
//TH1F* h_a;
31
@example_track TH1F*
h_pt
;
32
};
33
34
//Only one Selector is made per job. It gets all the results from each worker.
35
class
__class__
:
public
TFWLiteSelector
<__class__Worker> {
36
public
:
37
__class__
();
38
~__class__
();
39
void
begin
(TList*&);
40
void
terminate
(TList&);
41
42
private
:
43
__class__
(
__class__
const
&);
44
__class__
operator=
(
__class__
const
&);
45
46
ClassDef(
__class__
, 2)
47
};
48
#endif
TFWLiteSelector.h
__class__::__class__
__class__()
Definition:
Skeleton.cc:29
__class__Worker
Definition:
TSelector.h:24
__class__::operator=
const __class__ & operator=(const __class__ &rhs)
__class__::terminate
void terminate(TList &)
Definition:
TSelector.cc:93
__class__
Definition:
c++11.h:13
__class__::begin
void begin(TList *&)
Definition:
TSelector.cc:88
__class__Worker::postProcess
void postProcess(TList &)
Definition:
TSelector.cc:75
iEvent
int iEvent
Definition:
GenABIO.cc:224
__class__Worker::~__class__Worker
~__class__Worker()
Definition:
TSelector.cc:52
__class__::~__class__
virtual ~__class__()
Definition:
DQMEDAnalyzer.cc:85
__class__Worker::__class__Worker
__class__Worker(const TList *, TList &)
Definition:
TSelector.cc:45
TFWLiteSelector
Definition:
TFWLiteSelector.h:57
__class__Worker::h_pt
example_track TH1F * h_pt
Definition:
TSelector.h:31
edm::Event
Definition:
Event.h:73
__class__Worker::process
void process(const edm::Event &iEvent)
Definition:
TSelector.cc:55
Generated for CMSSW Reference Manual by
1.8.16