1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: FullExampleMod.h,v 1.5 2009/06/15 15:00:16 loizides Exp $
|
3 |
//
|
4 |
// FullExampleMod
|
5 |
//
|
6 |
// This TAM module shows how to use TAM. It takes a couple of branches
|
7 |
// and produces a pt and eta distribution.
|
8 |
//
|
9 |
// More information about TAM in general can be found at
|
10 |
// http://www.cmsaf.mit.edu/twiki/bin/view/Software/TAM
|
11 |
//
|
12 |
// Authors: C.Loizides, J.Bendavid
|
13 |
//--------------------------------------------------------------------------------------------------
|
14 |
|
15 |
#ifndef MITANA_PHYSICSMOD_FULLEXAMPLEMOD_H
|
16 |
#define MITANA_PHYSICSMOD_FULLEXAMPLEMOD_H
|
17 |
|
18 |
#include "MitAna/TreeMod/interface/BaseMod.h"
|
19 |
#include "MitAna/DataTree/interface/CollectionsFwd.h"
|
20 |
|
21 |
class TH1D;
|
22 |
|
23 |
namespace mithep
|
24 |
{
|
25 |
class FullExampleMod : public BaseMod
|
26 |
{
|
27 |
public:
|
28 |
FullExampleMod(const char *name="FullExampleMod",
|
29 |
const char *title="Example analysis module with all branches");
|
30 |
|
31 |
protected:
|
32 |
void Begin();
|
33 |
void Process();
|
34 |
void SlaveBegin();
|
35 |
void SlaveTerminate();
|
36 |
void Terminate();
|
37 |
|
38 |
TString fMCPartName; //name of particle collection
|
39 |
TString fTrackName; //name of track collection
|
40 |
TString fMuonName; //name of muon collection
|
41 |
TString fElectronName; //name of electron collection
|
42 |
const MCParticleCol *fParticles; //!MCParticle branch
|
43 |
const TrackCol *fTracks; //!Track branch
|
44 |
const MuonCol *fMuons; //!Muon branch
|
45 |
const ElectronCol *fElectrons; //!Electron branch
|
46 |
TH1D *fMCPtHist; //!MCParticle pt histogram
|
47 |
TH1D *fMCEtaHist; //!MCParticle eta histogram
|
48 |
TH1D *fTrackPtHist; //!Track pt histogram
|
49 |
TH1D *fTrackEtaHist; //!Track eta histogram
|
50 |
TH1D *fMuonPtHist; //!Muon pt histogram
|
51 |
TH1D *fMuonEtaHist; //!Muon eta histogram
|
52 |
TH1D *fElectronPtHist; //!Electron pt histogram
|
53 |
TH1D *fElectronEtaHist; //!Electron eta histogram
|
54 |
|
55 |
ClassDef(FullExampleMod, 1) // Full example analysis module
|
56 |
};
|
57 |
}
|
58 |
#endif
|