ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonCleaningMod.h
Revision: 1.1
Committed: Sat Nov 29 18:43:42 2008 UTC (16 years, 5 months ago) by sixie
Content type: text/plain
Branch: MAIN
Log Message:
Add Photon Cleaning module

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: PhotonCleaningMod.h,v 1.3 2008/11/28 09:13:50 loizides Exp $
3     //
4     // PhotonCleaningMod
5     //
6     // This Module performs cleaning of jets, ie it removes jets which point
7     // in the same direction as a clean isolated electrons.
8     //
9     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_PHOTONCLEANINGMOD_H
13     #define MITPHYSICS_MODS_PHOTONCLEANINGMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     namespace mithep
19     {
20     class PhotonCleaningMod : public BaseMod
21     {
22     public:
23     PhotonCleaningMod(const char *name="PhotonCleaningMod",
24     const char *title="Photon cleaning module");
25     ~PhotonCleaningMod() {}
26    
27     void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; }
28     void SetGoodPhotonsName(const char *name) { fGoodPhotonsName = name; }
29     void SetCleanPhotonsName(const char *name) { fCleanPhotonsName = name; }
30     void SetMinDeltaRToElectron(const Double_t x) { fMinDeltaRToElectron = x; }
31    
32     protected:
33     TString fCleanElectronsName; //name of clean electrons (input)
34     TString fGoodPhotonsName; //name of good jets (input)
35     TString fCleanPhotonsName; //name of clean jets (output)
36     Double_t fMinDeltaRToElectron; //delta R threshold for separating
37     //electrons from photons
38    
39     void Process();
40    
41     ClassDef(PhotonCleaningMod,1) // Photon cleaning module
42     };
43     }
44     #endif