ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/JetCleaningMod.h
Revision: 1.1
Committed: Wed Oct 15 06:04:59 2008 UTC (16 years, 6 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added MitPhysics.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: JetCleaningMod.h,v 1.1 2008/10/14 06:13:52 loizides 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