ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MergeLeptonsMod.h
Revision: 1.1
Committed: Wed Dec 10 11:44:33 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added sort.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MergeLeptonsMod.h,v 1.3 2008/12/09 10:18:33 loizides Exp $
3 //
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 #include "MitAna/DataTree/interface/Collections.h"
17
18 namespace mithep
19 {
20 class MergeLeptonsMod : public BaseMod
21 {
22 public:
23 MergeLeptonsMod(const char *name="MergeLeptonsMod",
24 const char *title="Merging leptons module");
25 ~MergeLeptonsMod() {}
26
27 const char *GetElectronsName() const { return fElName; }
28 const char *GetMergedName() const { return fMergedName; }
29 const char *GetMuonsName() const { return fMuName; }
30 void SetElectronsName(const char *n) { fElName=n; }
31 void SetMergedName(const char *n) { fMergedName=n; }
32 void SetMuonsName(const char *n) { fMuName=n; }
33
34 protected:
35 void Process();
36
37 TString fElName; //name of electrons collection
38 TString fMuName; //name of muons collection
39 TString fMergedName; //name of merged collection
40 const ElectronCol *fElIn; //!pointer to electron collection (in)
41 const MuonCol *fMuIn; //!pointer to muon collection (in)
42 ParticleOArr *fColOut; //!pointer to merged collection (out)
43
44 ClassDef(MergeLeptonsMod, 1) // Merging leptons module
45 };
46 }
47 #endif