ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonCleaningMod.h
Revision: 1.5
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_009a, Mit_009, Mit_008
Changes since 1.4: +2 -3 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: PhotonCleaningMod.h,v 1.4 2008/12/10 17:28:22 loizides Exp $
3 sixie 1.1 //
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 loizides 1.5 const char *title="Photon cleaning module");
25 sixie 1.1
26 loizides 1.4 const char *GetCleanElectronsName() const { return fCleanElectronsName; }
27     const char *GetCleanName() const { return GetCleanPhotonsName(); }
28     const char *GetCleanPhotonsName() const { return fCleanPhotonsName; }
29     const char *GetGoodPhotonsName() const { return fGoodPhotonsName; }
30     Double_t GetMinDeltaRToElectron() const { return fMinDeltaRToElectron; }
31     const char *GetOutputName() const { return GetCleanPhotonsName(); }
32     void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; }
33     void SetCleanName(const char *name) { SetCleanPhotonsName(name); }
34     void SetCleanPhotonsName(const char *name) { fCleanPhotonsName = name; }
35     void SetGoodPhotonsName(const char *name) { fGoodPhotonsName = name; }
36     void SetMinDeltaRToElectron(Double_t dr) { fMinDeltaRToElectron = dr; }
37     void SetOutputName(const char *name) { SetCleanPhotonsName(name); }
38 sixie 1.1
39     protected:
40 loizides 1.3 void Process();
41    
42 loizides 1.2 TString fCleanElectronsName; //name of clean electrons (input)
43     TString fGoodPhotonsName; //name of good jets (input)
44     TString fCleanPhotonsName; //name of clean jets (output)
45     Double_t fMinDeltaRToElectron; //delta R threshold for separating electrons/photons
46 sixie 1.1
47 loizides 1.4 ClassDef(PhotonCleaningMod, 1) // Photon cleaning module
48 sixie 1.1 };
49     }
50     #endif