ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MergeLeptonsMod.h
Revision: 1.3
Committed: Mon Mar 23 14:23:06 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a, Mit_009, Mit_008
Changes since 1.2: +1 -2 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: MergeLeptonsMod.h,v 1.2 2008/12/10 17:28:22 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     #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    
26 loizides 1.2 const char *GetElectronsName() const { return fElName; }
27     const char *GetMergedName() const { return fMergedName; }
28     const char *GetMuonsName() const { return fMuName; }
29     const char *GetOutputName() const { return GetMergedName(); }
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     void SetOutputName(const char *n) { SetMergedName(n); }
34 loizides 1.1
35     protected:
36     void Process();
37    
38 loizides 1.2 TString fElName; //name of electrons collection (input)
39     TString fMuName; //name of muons collection (input)
40     TString fMergedName; //name of merged collection (output)
41     const ElectronCol *fElIn; //!pointer to electron collection
42     const MuonCol *fMuIn; //!pointer to muon collection
43     ParticleOArr *fColOut; //!pointer to merged collection
44 loizides 1.1
45     ClassDef(MergeLeptonsMod, 1) // Merging leptons module
46     };
47     }
48     #endif