ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.3
Committed: Wed Nov 5 14:06:06 2008 UTC (16 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.2: +27 -25 lines
Log Message:
adding one more name

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.3 // $Id: MuonIDMod.h,v 1.2 2008/10/23 12:23:31 ceballos Exp $
3 loizides 1.1 //
4     // MuonIDMod
5     //
6 ceballos 1.3 // This Module applies Muon ID criteria and exports a pointer to a collection
7     // of Good Muons according to some specified ID scheme
8 loizides 1.1 //
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 ceballos 1.3 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 SetMuonPtMin(double p) { fMuonPtMin = p; }
34     void SetCleanMuonsName(TString s) { fCleanMuonsName = s; }
35 loizides 1.1 protected:
36 ceballos 1.3 bool fPrintDebug; //flag for printing debug output
37     TString fMuonName; //name of muon collection
38     TString fCleanMuonsName ; //name of good muons collection
39     TString fMuonIDType; //Type of Muon ID we impose
40     TString fMuonIsoType; //Type of Muon Isolation we impose
41     MuonCol *fMuons; //!Muon branch
42    
43     double fTrackIsolationCut; //Cut value for track isolation
44     double fCaloIsolationCut; //Cut value for calo isolation
45     double fMuonPtMin; //min Pt requirement
46    
47     int fNEventsProcessed; // Number of events processed
48    
49     void Begin();
50     void Process();
51     void SlaveBegin();
52     void SlaveTerminate();
53     void Terminate();
54 loizides 1.1
55    
56     ClassDef(MuonIDMod,1) // TAM example analysis module
57     };
58     }
59     #endif