ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/LeptonPlusIsoTrackSelMod.h
Revision: 1.2
Committed: Mon Mar 23 22:17:04 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a, Mit_009, Mit_008
Changes since 1.1: +1 -2 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: LeptonPlusIsoTrackSelMod.h,v 1.1 2009/03/22 09:04:13 loizides Exp $
3 loizides 1.1 //
4     // LeptonPlusIsoTrackSelMod
5     //
6     // This module selects events containing one lepton and one isolated track
7     // Both gsfTracks and tracker tracks are considered.
8     //
9     // Authors: S. Xie
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_SELMODS_LEPTONPLUSISOTRACKSELMOD_H
13     #define MITPHYSICS_SELMODS_LEPTONPLUSISOTRACKSELMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseSelMod.h"
16     #include <TH1D.h>
17    
18     namespace mithep
19     {
20     class LeptonPlusIsoTrackSelMod : public BaseSelMod
21     {
22     public:
23     LeptonPlusIsoTrackSelMod(const char *name="LeptonPlusIsoTrackSelMod",
24     const char *title="Lepton plus isolated track selection module");
25    
26     const char *GetLeptonColName() const { return fLeptonColName; }
27     const char *GetTrackerTrackColName() const { return fTrackerTrackColName; }
28     const char *GetGsfTrackColName() const { return fGsfTrackColName; }
29     Double_t GetLeptonEtaMin() const { return fLeptonEtaMin; }
30     Double_t GetLeptonEtaMax() const { return fLeptonEtaMax; }
31     Double_t GetLeptonPtMin() const { return fLeptonPtMin; }
32     Double_t GetLeptonPtMax() const { return fLeptonPtMax; }
33     Double_t GetTrackEtaMin() const { return fTrackEtaMin; }
34     Double_t GetTrackEtaMax() const { return fTrackEtaMax; }
35     Double_t GetTrackPtMin() const { return fTrackPtMin; }
36     Double_t GetTrackPtMax() const { return fTrackPtMax; }
37     void SetLeptonColName(const char *n) { fLeptonColName=n; }
38     void SetTrackerTrackColName(const char *n) { fTrackerTrackColName=n; }
39     void SetGsfTrackColName(const char *n) { fGsfTrackColName=n; }
40     void SetLeptonEtaMin(Double_t e) { fLeptonEtaMin = e; }
41     void SetLeptonEtaMax(Double_t e) { fLeptonEtaMax = e; }
42     void SetLeptonPtMin(Double_t pt) { fLeptonPtMin = pt; }
43     void SetLeptonPtMax(Double_t pt) { fLeptonPtMax = pt; }
44     void SetTrackEtaMin(Double_t e) { fTrackEtaMin = e; }
45     void SetTrackEtaMax(Double_t e) { fTrackEtaMax = e; }
46     void SetTrackPtMin(Double_t pt) { fTrackPtMin = pt; }
47     void SetTrackPtMax(Double_t pt) { fTrackPtMax = pt; }
48    
49     protected:
50     void Process();
51     void SlaveBegin();
52    
53     TString fLeptonColName; //name of input lepton collection
54     TString fTrackerTrackColName; //name of input lepton collection
55     TString fGsfTrackColName; //name of input lepton collection
56     Double_t fLeptonPtMin; //minimum pt required (def = 0 GeV)
57     Double_t fLeptonPtMax; //maximum pt required (def = 5000 GeV)
58     Double_t fLeptonEtaMin; //minimum eta required (def = -10)
59     Double_t fLeptonEtaMax; //maximum eta required (def = +10)
60     Double_t fTrackPtMin; //minimum pt required (def = 0 GeV)
61     Double_t fTrackPtMax; //maximum pt required (def = 5000 GeV)
62     Double_t fTrackEtaMin; //minimum eta required (def = -10)
63     Double_t fTrackEtaMax; //maximum eta required (def = +10)
64     const ParticleCol *fLeptonCol; //!pointer to collection
65     const TrackCol *fTrackerTrackCol; //!pointer to collection
66     const TrackCol *fGsfTrackCol; //!pointer to collection
67     TH1D *fNAccCounters; //!acceptance histogram
68    
69     ClassDef(LeptonPlusIsoTrackSelMod,1) // Lepton plus isolated track selection module
70     };
71     }
72     #endif