ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MergeLeptonsMod.h
Revision: 1.5
Committed: Wed Aug 14 20:22:24 2013 UTC (11 years, 8 months ago) by mdecross
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +7 -1 lines
Log Message:
Generator-level lepton info and tight muon tagging added for monojets 8TeV

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 mdecross 1.5 // $Id: MergeLeptonsMod.h,v 1.4 2009/06/15 15:00:21 loizides Exp $
3 loizides 1.1 //
4     // MergeLeptonsMod
5     //
6     // This module merges muon and electron collections. (Note if need be this can easily be
7     // generalized).
8     //
9     // Authors: C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_MERGELEPTONSMOD_H
13     #define MITPHYSICS_MODS_MERGELEPTONSMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16 loizides 1.4 #include "MitAna/DataTree/interface/ElectronFwd.h"
17     #include "MitAna/DataTree/interface/MuonFwd.h"
18     #include "MitAna/DataTree/interface/ParticleFwd.h"
19 mdecross 1.5 #include "TH1D.h"
20 loizides 1.1
21     namespace mithep
22     {
23     class MergeLeptonsMod : public BaseMod
24     {
25     public:
26     MergeLeptonsMod(const char *name="MergeLeptonsMod",
27     const char *title="Merging leptons module");
28    
29 loizides 1.2 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 loizides 1.1
38     protected:
39 mdecross 1.5 void BeginRun();
40 loizides 1.1 void Process();
41 mdecross 1.5 void SlaveBegin();
42     void SlaveTerminate();
43 loizides 1.1
44 loizides 1.2 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 mdecross 1.5 TH1D* fRecoWMuons;
51     TH1D* fRecoWElectrons;
52 loizides 1.1
53     ClassDef(MergeLeptonsMod, 1) // Merging leptons module
54     };
55     }
56     #endif