Main Page
Namespaces
Classes
Package Documentation
FWCore
Skeletons
scripts
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
44
__class__
(
__class__
const
&);
45
__class__
operator=(
__class__
const
&);
46
47
ClassDef(
__class__
,2)
48
};
49
#endif
__class__Worker::process
void process(const edm::Event &iEvent)
Definition:
TSelector.cc:58
__class__Worker::h_pt
example_track TH1F * h_pt
Definition:
TSelector.h:31
__class__
Definition:
c++11.h:13
iEvent
int iEvent
Definition:
GenABIO.cc:230
__class__Worker::postProcess
void postProcess(TList &)
Definition:
TSelector.cc:83
__class__Worker
Definition:
TSelector.h:24
TFWLiteSelector.h
__class__Worker::~__class__Worker
~__class__Worker()
Definition:
TSelector.cc:53
TFWLiteSelector
Definition:
TFWLiteSelector.h:57
begin
#define begin
Definition:
vmac.h:30
__class__Worker::__class__Worker
__class__Worker(const TList *, TList &)
Definition:
TSelector.cc:46
edm::Event
Definition:
Event.h:69
Generated for CMSSW Reference Manual by
1.8.11