ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/FullExampleMod.h
Revision: 1.5
Committed: Mon Jun 15 15:00:16 2009 UTC (15 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b
Changes since 1.4: +2 -2 lines
Log Message:
Added proper fwd defs plus split up complilation of MitAna/DataTree LinkDefs.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: FullExampleMod.h,v 1.4 2009/05/12 18:41:39 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 loizides 1.5 #include "MitAna/DataTree/interface/CollectionsFwd.h"
20 loizides 1.1
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 loizides 1.2 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 loizides 1.1 TH1D *fMCPtHist; //!MCParticle pt histogram
47 loizides 1.2 TH1D *fMCEtaHist; //!MCParticle eta histogram
48 loizides 1.1 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 loizides 1.3 ClassDef(FullExampleMod, 1) // Full example analysis module
56 loizides 1.1 };
57     }
58     #endif