ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/FullExampleMod.h
Revision: 1.2
Committed: Thu Dec 4 13:52:27 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +17 -18 lines
Log Message:
Updated to use const ptr to col

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: FullExampleMod.h,v 1.1 2008/11/25 14:30:53 loizides Exp $
3 loizides 1.1 //
4     // FullExampleAnaMod
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/Collections.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     ~FullExampleMod() {}
31    
32     protected:
33 loizides 1.2 void Begin();
34     void Process();
35     void SlaveBegin();
36     void SlaveTerminate();
37     void Terminate();
38    
39     TString fMCPartName; //name of particle collection
40     TString fTrackName; //name of track collection
41     TString fMuonName; //name of muon collection
42     TString fElectronName; //name of electron collection
43     const MCParticleCol *fParticles; //!MCParticle branch
44     const TrackCol *fTracks; //!Track branch
45     const MuonCol *fMuons; //!Muon branch
46     const ElectronCol *fElectrons; //!Electron branch
47 loizides 1.1 TH1D *fMCPtHist; //!MCParticle pt histogram
48 loizides 1.2 TH1D *fMCEtaHist; //!MCParticle eta histogram
49 loizides 1.1 TH1D *fTrackPtHist; //!Track pt histogram
50     TH1D *fTrackEtaHist; //!Track eta histogram
51     TH1D *fMuonPtHist; //!Muon pt histogram
52     TH1D *fMuonEtaHist; //!Muon eta histogram
53     TH1D *fElectronPtHist; //!Electron pt histogram
54     TH1D *fElectronEtaHist; //!Electron eta histogram
55    
56 loizides 1.2 ClassDef(FullExampleMod,1) // Full example analysis module
57 loizides 1.1 };
58     }
59     #endif