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 |
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 MITANA_TREEMOD_JETCLEANINGMOD_H |
13 |
< |
#define MITANA_TREEMOD_JETCLEANINGMOD_H |
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" |
21 |
|
{ |
22 |
|
public: |
23 |
|
JetCleaningMod(const char *name="JetCleaningMod", |
24 |
< |
const char *title="Example analysis module with all branches"); |
24 |
> |
const char *title="Jet cleaning module"); |
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 |
26 |
|
|
27 |
< |
int fNEventsProcessed; // Number of events processed |
27 |
> |
void SetCleanElectronsName(const char *name) { fCleanElectronsName = name; } |
28 |
> |
void SetCleanPhotonsName(const char *name) { fCleanPhotonsName = name; } |
29 |
> |
void SetGoodJetsName(const char *name) { fGoodJetsName = name; } |
30 |
> |
void SetCleanJetsName(const char *name) { fCleanJetsName = name; } |
31 |
> |
void SetMinDeltaRToElectron(const Double_t x) { fMinDeltaRToElectron = x; } |
32 |
> |
void SetMinDeltaRToPhoton(const Double_t x) { fMinDeltaRToPhoton = x; } |
33 |
|
|
34 |
< |
void Begin(); |
34 |
> |
protected: |
35 |
|
void Process(); |
36 |
< |
void SlaveBegin(); |
37 |
< |
void SlaveTerminate(); |
38 |
< |
void Terminate(); |
36 |
> |
|
37 |
> |
TString fCleanElectronsName; //name of clean electrons (input) |
38 |
> |
TString fCleanPhotonsName; //name of clean photons (input) |
39 |
> |
TString fGoodJetsName; //name of good jets (input) |
40 |
> |
TString fCleanJetsName; //name of clean jets (output) |
41 |
> |
Double_t fMinDeltaRToElectron; //delta R for separating electrons from jets |
42 |
> |
Double_t fMinDeltaRToPhoton; //delta R for separating photons from jets |
43 |
|
|
44 |
< |
ClassDef(JetCleaningMod,1) // TAM example analysis module |
44 |
> |
ClassDef(JetCleaningMod,1) // Jet cleaning module |
45 |
|
}; |
46 |
|
} |
47 |
|
#endif |