PhysicsTools
ParallelAnalysis
interface
TrackAnalysisAlgorithm.h
Go to the documentation of this file.
1
#ifndef ParallelAnalysis_TrackAnalysisAlgorithm_h
2
#define ParallelAnalysis_TrackAnalysisAlgorithm_h
3
/* class examples::TrackAnalysisAlgorithm
4
*
5
* Algorithm structure siutable for both TSelector running
6
* and Framework processing
7
*
8
* \author Luca Lista, INFN
9
*
10
*/
11
12
#include "
FWCore/TFWLiteSelector/interface/TFWLiteSelector.h
"
13
class
TH1F;
14
class
TList;
15
class
TCanvas;
16
namespace
edm
{
17
class
Event
;
18
}
19
20
namespace
examples
{
21
22
struct
TrackAnalysisAlgorithm
{
24
TrackAnalysisAlgorithm
(
const
TList *, TList &);
26
void
process
(
const
edm::Event
&);
28
void
postProcess
(TList &);
30
static
void
terminate
(TList &);
31
32
private
:
34
static
void
draw
(
const
TList &, TCanvas &,
const
char
*);
36
TH1F *
h_pt
, *
h_eta
;
38
static
const
char
*
kPt
, *
kEta
;
39
};
40
41
}
// namespace examples
42
43
#endif
TFWLiteSelector.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
examples::TrackAnalysisAlgorithm::TrackAnalysisAlgorithm
TrackAnalysisAlgorithm(const TList *, TList &)
constructor
Definition:
TrackAnalysisAlgorithm.cc:18
examples::TrackAnalysisAlgorithm::terminate
static void terminate(TList &)
terminate processing
Definition:
TrackAnalysisAlgorithm.cc:40
examples::TrackAnalysisAlgorithm
Definition:
TrackAnalysisAlgorithm.h:22
Event
examples::TrackAnalysisAlgorithm::kEta
static const char * kEta
Definition:
TrackAnalysisAlgorithm.h:38
examples::TrackAnalysisAlgorithm::h_eta
TH1F * h_eta
Definition:
TrackAnalysisAlgorithm.h:36
examples::TrackAnalysisAlgorithm::h_pt
TH1F * h_pt
histograms
Definition:
TrackAnalysisAlgorithm.h:36
examples::TrackAnalysisAlgorithm::draw
static void draw(const TList &, TCanvas &, const char *)
draw an histogram
Definition:
TrackAnalysisAlgorithm.cc:47
examples::TrackAnalysisAlgorithm::postProcess
void postProcess(TList &)
post process
Definition:
TrackAnalysisAlgorithm.cc:38
examples
Definition:
TrackAnalysisAlgorithm.h:20
edm::Event
Definition:
Event.h:73
examples::TrackAnalysisAlgorithm::process
void process(const edm::Event &)
process one event
Definition:
TrackAnalysisAlgorithm.cc:24
examples::TrackAnalysisAlgorithm::kPt
static const char * kPt
histogram names
Definition:
TrackAnalysisAlgorithm.h:38
Generated for CMSSW Reference Manual by
1.8.16