ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/PhysicsMod/interface/FullExampleMod.h
Revision: 1.4
Committed: Tue May 12 18:41:39 2009 UTC (15 years, 11 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a
Changes since 1.3: +1 -2 lines
Log Message:
Save number of triggered events.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: FullExampleMod.h,v 1.3 2008/12/10 17:25:16 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    
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