ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetCleaningMod.h
Revision: 1.8
Committed: Mon Mar 23 14:23:06 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008
Changes since 1.7: +1 -2 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.8 // $Id: JetCleaningMod.h,v 1.7 2008/12/10 17:28:22 loizides Exp $
3 loizides 1.1 //
4     // JetCleaningMod
5     //
6 loizides 1.3 // This Module performs cleaning of jets, ie it removes jets which point
7     // in the same direction as a clean isolated electrons.
8 loizides 1.1 //
9     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.2 #ifndef MITPHYSICS_MODS_JETCLEANINGMOD_H
13     #define MITPHYSICS_MODS_JETCLEANINGMOD_H
14 loizides 1.1
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     namespace mithep
19     {
20     class JetCleaningMod : public BaseMod
21     {
22     public:
23     JetCleaningMod(const char *name="JetCleaningMod",
24 loizides 1.3 const char *title="Jet cleaning module");
25    
26 loizides 1.7 const char *GetCleanElectronsName() const { return fCleanElectronsName; }
27     const char *GetCleanJetsName() const { return fCleanJetsName; }
28     const char *GetCleanName() const { return GetCleanJetsName(); }
29     const char *GetCleanPhotonsName() const { return fCleanPhotonsName; }
30     const char *GetGoodJetsName() const { return fGoodJetsName; }
31     Double_t GetMinDeltaRToElectron() const { return fMinDeltaRToElectron; }
32     Double_t GetMinDeltaRToPhoton() const { return fMinDeltaRToPhoton; }
33     const char *GetOutputName() const { return GetCleanJetsName(); }
34     void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; }
35     void SetCleanJetsName(const char *name) { fCleanJetsName = name; }
36     void SetCleanName(const char *name) { SetCleanJetsName(name); }
37     void SetCleanPhotonsName(const char *name) { fCleanPhotonsName = name; }
38     void SetGoodJetsName(const char *name) { fGoodJetsName = name; }
39     void SetMinDeltaRToElectron(Double_t dr) { fMinDeltaRToElectron = dr; }
40     void SetMinDeltaRToPhoton(Double_t dr) { fMinDeltaRToPhoton = dr; }
41     void SetOutputName(const char *name) { SetCleanJetsName(name); }
42 sixie 1.4
43 loizides 1.1 protected:
44 loizides 1.6 void Process();
45    
46 sixie 1.4 TString fCleanElectronsName; //name of clean electrons (input)
47     TString fCleanPhotonsName; //name of clean photons (input)
48     TString fGoodJetsName; //name of good jets (input)
49     TString fCleanJetsName; //name of clean jets (output)
50 loizides 1.5 Double_t fMinDeltaRToElectron; //delta R for separating electrons from jets
51     Double_t fMinDeltaRToPhoton; //delta R for separating photons from jets
52 loizides 1.1
53 loizides 1.7 ClassDef(JetCleaningMod, 1) // Jet cleaning module
54 loizides 1.1 };
55     }
56     #endif