ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/ElectronCleaningMod.h
Revision: 1.5
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.4: +13 -6 lines
Log Message:
Added naming convention: SetInputName/SetOutputName etc.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: ElectronCleaningMod.h,v 1.4 2008/12/10 11:44:32 loizides Exp $
3 //
4 // ElectronCleaningMod
5 //
6 // This Module performs cleaning of electrons, ie. it removes duplicate objects and good muons
7 // from the good electrons.
8 //
9 // Authors: S.Xie
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPHYSICS_MODS_ELECTRONCLEANINGMOD_H
13 #define MITPHYSICS_MODS_ELECTRONCLEANINGMOD_H
14
15 #include "MitAna/TreeMod/interface/BaseMod.h"
16 #include "MitAna/DataTree/interface/Collections.h"
17
18 namespace mithep
19 {
20 class ElectronCleaningMod : public BaseMod
21 {
22 public:
23 ElectronCleaningMod(const char *name="ElectronCleaningMod",
24 const char *title="Electron cleaning module");
25 ~ElectronCleaningMod() {}
26
27 const char *GetCleanElectronsName() const { return fCleanElectronsName; }
28 const char *GetCleanName() const { return GetCleanElectronsName(); }
29 const char *GetCleanMuonsName() const { return fCleanMuonsName; }
30 const char *GetGoodElectronsName() const { return fGoodElectronsName; }
31 const char *GetOutputName() const { return GetCleanElectronsName(); }
32 void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; }
33 void SetCleanName(const char *name) { SetCleanElectronsName(name); }
34 void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
35 void SetGoodElectronsName(const char *name) { fGoodElectronsName = name; }
36 void SetOutputName(const char *name) { SetCleanElectronsName(name); }
37
38 protected:
39 void Process();
40
41 TString fGoodElectronsName; //name of good electrons (input)
42 TString fCleanMuonsName; //name of clean muons (input)
43 TString fCleanElectronsName; //name of clean electrons (output)
44
45 ClassDef(ElectronCleaningMod, 1) // Electron cleaning module
46 };
47 }
48 #endif