ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/JetCleaningMod.h
Revision: 1.2
Committed: Tue Oct 14 05:11:55 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
State: FILE REMOVED
Log Message:
Moved to MitPhysics/Mods

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: JetCleaningMod.h,v 1.1 2008/09/30 16:37:16 sixie Exp $
3 //
4 // JetCleaningMod
5 //
6 // This Module performs cleaning of jets. Removes jets which point
7 // in the same direction as a clean isolated electron
8 //
9 // Authors: S.Xie
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITANA_TREEMOD_JETCLEANINGMOD_H
13 #define MITANA_TREEMOD_JETCLEANINGMOD_H
14
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 const char *title="Example analysis module with all branches");
25 ~JetCleaningMod() {}
26 void SetPrintDebug(bool b) { fPrintDebug = b; }
27 void SetCleanElectronsName(TString s) { fCleanElectronsName = s; }
28 void SetGoodJetsName(TString s) { fGoodJetsName = s; }
29 void SetCleanJetsName(TString s) { fCleanJetsName = s; }
30
31 protected:
32 bool fPrintDebug;
33 TString fCleanElectronsName ;
34 TString fGoodJetsName;
35 TString fCleanJetsName;
36
37 ElectronCol *fElectrons; //!Electron branch
38 JetCol *fJets; //!IC5 Jet branch
39
40 int fNEventsProcessed; // Number of events processed
41
42 void Begin();
43 void Process();
44 void SlaveBegin();
45 void SlaveTerminate();
46 void Terminate();
47
48 ClassDef(JetCleaningMod,1) // TAM example analysis module
49 };
50 }
51 #endif