ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.2
Committed: Thu Oct 23 12:23:31 2008 UTC (16 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.1: +3 -2 lines
Log Message:
changes after new life

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.2 // $Id: MuonIDMod.h,v 1.1 2008/10/15 06:04:59 loizides Exp $
3 loizides 1.1 //
4     // MuonIDMod
5     //
6     // This Module applies electron ID criteria and exports a pointer to a collection
7     // of Good Electrons according to some specified ID scheme
8     //
9     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_TREEMOD_MUONIDMOD_H
13     #define MITANA_TREEMOD_MUONIDMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     class TH1D;
19     class TH2D;
20    
21     namespace mithep
22     {
23     class MuonIDMod : public BaseMod
24     {
25     public:
26     MuonIDMod(const char *name="MuonIDMod",
27     const char *title="Example analysis module with all branches");
28     ~MuonIDMod() {}
29     void SetPrintDebug(bool b) { fPrintDebug = b; }
30     void SetMuonIDType(TString type) { fMuonIDType = type; }
31     void SetTrackIsolationCut(Double_t cut) { fTrackIsolationCut = cut; }
32     void SetCaloIsolationCut(Double_t cut) { fCaloIsolationCut = cut; }
33     void SetCleanMuonsName(TString s) { fCleanMuonsName = s; }
34     protected:
35     bool fPrintDebug; //flag for printing debug output
36     TString fMuonName; //name of muon collection
37     TString fCleanMuonsName ; //name of good muons collection
38     TString fMuonIDType; //Type of electron ID we impose
39     TString fMuonIsoType; //Type of electron Isolation we impose
40     MuonCol *fMuons; //!Muon branch
41    
42     double fTrackIsolationCut; //Cut value for track isolation
43     double fCaloIsolationCut; //Cut value for calo isolation
44    
45 ceballos 1.2 int fNEventsProcessed; // Number of events processed
46    
47 loizides 1.1 void Begin();
48     void Process();
49     void SlaveBegin();
50     void SlaveTerminate();
51     void Terminate();
52    
53    
54     ClassDef(MuonIDMod,1) // TAM example analysis module
55     };
56     }
57     #endif