ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerPATElectrons.h
Revision: 1.3
Committed: Mon Nov 3 18:11:10 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre1, Mit_006b, Mit_006a, Mit_006
Changes since 1.2: +3 -3 lines
Log Message:
Changed to base class usage of reco::Track throughout and removed FillerGsfTracks

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.3 // $Id: FillerPATElectrons.h,v 1.2 2008/09/10 03:30:23 loizides Exp $
3 sixie 1.1 //
4     // FillerPATElectrons
5     //
6     // Imlementation of a filler to fill PAT electrons into our mithep::Electron data structure.
7     //
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     FillerPATElectrons(const edm::ParameterSet &cfg, bool active=1,
28 bendavid 1.3 const TrackMap* gsfTrackMap=0, const TrackMap* trackerTrackMap=0);
29 sixie 1.1 ~FillerPATElectrons();
30    
31     void BookDataBlock(TreeWriter &tws);
32     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
33    
34     private:
35     std::string edmName_;
36     std::string mitName_;
37     std::string gsfTrackMapName_; //name of imported map wrt gsf tracks
38     std::string trackerTrackMapName_; //name of imported map wrt to trk tracks
39    
40     mithep::ElectronArr *electrons_;
41 bendavid 1.3 const mithep::TrackMap *gsfTrackMap_;
42 sixie 1.1 const mithep::TrackMap *trackerTrackMap_;
43     };
44     }
45     #endif