13 |
|
#define MITPHYSICS_MODS_MERGELEPTONSMOD_H |
14 |
|
|
15 |
|
#include "MitAna/TreeMod/interface/BaseMod.h" |
16 |
< |
#include "MitAna/DataTree/interface/Collections.h" |
16 |
> |
#include "MitAna/DataTree/interface/ElectronFwd.h" |
17 |
> |
#include "MitAna/DataTree/interface/MuonFwd.h" |
18 |
> |
#include "MitAna/DataTree/interface/ParticleFwd.h" |
19 |
> |
#include "TH1D.h" |
20 |
|
|
21 |
|
namespace mithep |
22 |
|
{ |
25 |
|
public: |
26 |
|
MergeLeptonsMod(const char *name="MergeLeptonsMod", |
27 |
|
const char *title="Merging leptons module"); |
25 |
– |
~MergeLeptonsMod() {} |
28 |
|
|
29 |
< |
const char *GetElectronsName() const { return fElName; } |
30 |
< |
const char *GetMergedName() const { return fMergedName; } |
31 |
< |
const char *GetMuonsName() const { return fMuName; } |
32 |
< |
void SetElectronsName(const char *n) { fElName=n; } |
33 |
< |
void SetMergedName(const char *n) { fMergedName=n; } |
34 |
< |
void SetMuonsName(const char *n) { fMuName=n; } |
29 |
> |
const char *GetElectronsName() const { return fElName; } |
30 |
> |
const char *GetMergedName() const { return fMergedName; } |
31 |
> |
const char *GetMuonsName() const { return fMuName; } |
32 |
> |
const char *GetOutputName() const { return GetMergedName(); } |
33 |
> |
void SetElectronsName(const char *n) { fElName=n; } |
34 |
> |
void SetMergedName(const char *n) { fMergedName=n; } |
35 |
> |
void SetMuonsName(const char *n) { fMuName=n; } |
36 |
> |
void SetOutputName(const char *n) { SetMergedName(n); } |
37 |
|
|
38 |
|
protected: |
39 |
+ |
void BeginRun(); |
40 |
|
void Process(); |
41 |
+ |
void SlaveBegin(); |
42 |
+ |
void SlaveTerminate(); |
43 |
|
|
44 |
< |
TString fElName; //name of electrons collection |
45 |
< |
TString fMuName; //name of muons collection |
46 |
< |
TString fMergedName; //name of merged collection |
47 |
< |
const ElectronCol *fElIn; //!pointer to electron collection (in) |
48 |
< |
const MuonCol *fMuIn; //!pointer to muon collection (in) |
49 |
< |
ParticleOArr *fColOut; //!pointer to merged collection (out) |
44 |
> |
TString fElName; //name of electrons collection (input) |
45 |
> |
TString fMuName; //name of muons collection (input) |
46 |
> |
TString fMergedName; //name of merged collection (output) |
47 |
> |
const ElectronCol *fElIn; //!pointer to electron collection |
48 |
> |
const MuonCol *fMuIn; //!pointer to muon collection |
49 |
> |
ParticleOArr *fColOut; //!pointer to merged collection |
50 |
> |
TH1D* fRecoWMuons; |
51 |
> |
TH1D* fRecoWElectrons; |
52 |
|
|
53 |
|
ClassDef(MergeLeptonsMod, 1) // Merging leptons module |
54 |
|
}; |