ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerElectrons.h
Revision: 1.5
Committed: Fri Aug 8 11:21:08 2008 UTC (16 years, 8 months ago) by sixie
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Changes since 1.4: +16 -8 lines
Log Message:
Add SuperCluster links to electron Filler. Add basic cluster and supercluster association maps. Add new electron and Muon ID variables. Add correct default names to the config file. BuildFile had to be modified to include Egamma objects for the electron Fillers.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 sixie 1.5 // $Id: FillerElectrons.h,v 1.4 2008/07/31 12:34:04 loizides Exp $
3 loizides 1.1 //
4     // FillerElectrons
5     //
6     // Imlementation of a filler to fill EDM electrons into our mithep::Electron data structure.
7     //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef TREEFILLER_FILLERELECTRONS_H
12     #define TREEFILLER_FILLERELECTRONS_H
13    
14     #include "FWCore/ParameterSet/interface/ParameterSet.h"
15     #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
16     #include "DataFormats/EgammaCandidates/interface/PixelMatchGsfElectronFwd.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 FillerElectrons : public BaseFiller
25     {
26     public:
27 sixie 1.5
28     /* FillerElectrons(const edm::ParameterSet &cfg, bool active=1, */
29     /* const GsfTrackMap* gsfTrackMap=0, const TrackMap* trackerTrackMap=0, const SuperClusterMap* superClusterMap=0); */
30    
31 loizides 1.4 FillerElectrons(const edm::ParameterSet &cfg, bool active=1);
32 loizides 1.1 ~FillerElectrons();
33    
34     void BookDataBlock(TreeWriter &tws);
35     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
36    
37     private:
38 sixie 1.5
39     std::string edmName_; //edm name of electrons collection
40     std::string mitName_; //name of Electrons in OAK
41     std::string gsfTrackMapName_; //name of imported map wrt gsf tracks
42     std::string trackerTrackMapName_; //name of imported map wrt to trk tracks
43     std::string superClusterMapName_; //name of imported map wrt to super clusters
44     mithep::ElectronArr *electrons_; //array of Electrons
45     const mithep::GsfTrackMap *gsfTrackMap_; //map wrt gsf tracks
46     const mithep::TrackMap *trackerTrackMap_; //map wrt tracker tracks
47     const mithep::SuperClusterMap *superClusterMap_; //map wrt super clusters
48    
49 loizides 1.1 };
50     }
51     #endif
52 loizides 1.4