1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: JetCleaningMod.h,v 1.1 2008/10/15 06:04:59 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 MITPHYSICS_MODS_JETCLEANINGMOD_H
|
13 |
#define MITPHYSICS_MODS_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
|