ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerConversionElectrons.h
Revision: 1.4
Committed: Tue Jul 8 12:38:20 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +3 -3 lines
Log Message:
Updated Fillers to use GetProduct function in BaseFiller. This function will determine whether a product is valid and otherwise exit.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: FillerConversionElectrons.h,v 1.3 2008/07/07 16:14:01 loizides Exp $
3 bendavid 1.1 //
4     // FillerConversionElectrons
5     //
6 loizides 1.2 // Implementation of a filler creating mithep::Electron objects from the conversion finder tracks.
7 bendavid 1.1 // This filler differs significantly from the others to deal with the special way in which
8     // conversions are stored in the edm.
9     //
10 loizides 1.4 // Authors: J.Bendavid
11 bendavid 1.1 //--------------------------------------------------------------------------------------------------
12    
13     #ifndef TREEFILLER_FILLERCONVERSIONELECTRONS_H
14     #define TREEFILLER_FILLERCONVERSIONELECTRONS_H
15    
16     #include "FWCore/ParameterSet/interface/ParameterSet.h"
17     #include "MitAna/DataUtil/interface/TreeWriter.h"
18     #include "DataFormats/TrackReco/interface/TrackFwd.h"
19     #include "MitAna/DataTree/interface/Collections.h"
20     #include "MitProd/TreeFiller/interface/BaseFiller.h"
21     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
22    
23     namespace mithep
24     {
25     class FillerConversionElectrons : public BaseFiller
26     {
27     public:
28 loizides 1.2 FillerConversionElectrons(const edm::ParameterSet &cfg, bool active=1,
29     const mithep::TrackCol *convInOutTracks=0,
30     const mithep::TrackCol *convOutInTracks=0,
31     const mithep::TrackMap *convInOutTrackMap=0,
32     const mithep::TrackMap *convOutInTrackMap=0);
33 bendavid 1.1 ~FillerConversionElectrons();
34    
35 loizides 1.2 void BookDataBlock(TreeWriter &tws);
36     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
37     void FillFromTracks(const mithep::TrackCol *tracks,
38     const TrackMap *trackMap);
39 bendavid 1.1
40 loizides 1.2 const ConversionElectronMap *GetConversionElectronMap() const { return convElectronMap_; }
41 bendavid 1.1
42     private:
43     std::string mitName_;
44     mithep::ElectronArr *conversionElectrons_;
45 loizides 1.4 mithep::ConversionElectronMap *convElectronMap_;
46 loizides 1.3 const mithep::TrackCol *conversionInOutTracks_;
47     const mithep::TrackCol *conversionOutInTracks_;
48     const mithep::TrackMap *conversionInOutTrackMap_;
49     const mithep::TrackMap *conversionOutInTrackMap_;
50 bendavid 1.1 };
51     }
52     #endif