ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/FullExampleMod.h
Revision: 1.6
Committed: Wed Sep 10 03:33:28 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006, Mit_005, Mit_004
Changes since 1.5: +3 -3 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.6 // $Id: FullExampleMod.h,v 1.5 2008/07/25 11:34:45 bendavid Exp $
3 bendavid 1.1 //
4 loizides 1.2 // FullExampleAnaMod
5 bendavid 1.1 //
6 loizides 1.2 // 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 bendavid 1.1 //
12     // Authors: C.Loizides, J.Bendavid
13     //--------------------------------------------------------------------------------------------------
14    
15 loizides 1.6 #ifndef MITANA_TREEMOD_FULLEXAMPLEMOD_H
16     #define MITANA_TREEMOD_FULLEXAMPLEMOD_H
17 loizides 1.3
18     #include "MitAna/TreeMod/interface/BaseMod.h"
19     #include "MitAna/DataTree/interface/Collections.h"
20    
21     class TH1D;
22    
23 bendavid 1.1 namespace mithep
24     {
25 loizides 1.2 class FullExampleMod : public BaseMod
26 bendavid 1.1 {
27     public:
28     FullExampleMod(const char *name="FullExampleMod",
29 loizides 1.2 const char *title="Example analysis module with all branches");
30 bendavid 1.1 ~FullExampleMod() {}
31    
32 loizides 1.2 protected:
33 bendavid 1.5 TString fMCPartName; //name of particle collection
34 loizides 1.2 TString fTrackName; //name of track collection
35     TString fMuonName; //name of muon collection
36     TString fElectronName; //name of electron collection
37    
38 bendavid 1.5 MCParticleCol *fParticles; //!MCParticle branch
39 loizides 1.2 TrackCol *fTracks; //!Track branch
40     MuonCol *fMuons; //!Muon branch
41     ElectronCol *fElectrons; //!Electron branch
42 bendavid 1.5 TH1D *fMCPtHist; //!MCParticle pt histogram
43     TH1D *fMCEtaHist; //!MCParticle eta histogram
44 loizides 1.2 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 bendavid 1.1 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 loizides 1.2 }
60     #endif