ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonCleaningMod.h
Revision: 1.4
Committed: Wed Dec 10 17:28:22 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a
Changes since 1.3: +14 -6 lines
Log Message:
Added naming convention: SetInputName/SetOutputName etc.

File Contents

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