ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/FullExampleMod.h
Revision: 1.1
Committed: Tue Nov 25 14:30:53 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added examples here.

File Contents

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