ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerPATElectrons.h
Revision: 1.4
Committed: Sun Mar 15 11:20:40 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Changes since 1.3: +10 -12 lines
Log Message:
Introduced BranchTable plus general cleanup.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: FillerPATElectrons.h,v 1.3 2008/11/03 18:11:10 bendavid Exp $
3 sixie 1.1 //
4     // FillerPATElectrons
5     //
6 loizides 1.4 // Implementation of a filler to fill PAT electrons into our mithep::Electron data structure.
7 sixie 1.1 //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.2 #ifndef MITPROD_TREEFILLER_FILLERPATELECTRONS_H
12     #define MITPROD_TREEFILLER_FILLERPATELECTRONS_H
13 sixie 1.1
14     #include "FWCore/ParameterSet/interface/ParameterSet.h"
15     #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
16     #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
17     #include "MitAna/DataUtil/interface/TreeWriter.h"
18     #include "MitAna/DataTree/interface/Collections.h"
19     #include "MitProd/TreeFiller/interface/BaseFiller.h"
20     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
21    
22     namespace mithep
23     {
24     class FillerPATElectrons : public BaseFiller
25     {
26     public:
27 loizides 1.4 FillerPATElectrons(const edm::ParameterSet &cfg, const char *name, bool active=1);
28 sixie 1.1 ~FillerPATElectrons();
29    
30     void BookDataBlock(TreeWriter &tws);
31     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
32    
33     private:
34 loizides 1.4 std::string edmName_; //edm name of electron collection
35     std::string mitName_; //mit name of electron collection
36     std::string gsfTrackMapName_; //name of imported map wrt gsf tracks
37     std::string trackerTrackMapName_; //name of imported map wrt to trk tracks
38     mithep::ElectronArr *electrons_; //electron array
39     const mithep::TrackMap *gsfTrackMap_; //imported gsf track map
40     const mithep::TrackMap *trackerTrackMap_; //imported track track map
41 sixie 1.1 };
42     }
43     #endif