ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerConversions.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 -4 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: FillerConversions.h,v 1.3 2008/07/07 16:14:01 loizides Exp $
3 bendavid 1.1 //
4     // FillerConversions
5     //
6 loizides 1.2 // Todo
7 bendavid 1.1 //
8 loizides 1.4 // Authors: J.Bendavid
9 bendavid 1.1 //--------------------------------------------------------------------------------------------------
10    
11     #ifndef TREEFILLER_FILLERCONVERSIONS_H
12     #define TREEFILLER_FILLERCONVERSIONS_H
13    
14     #include "FWCore/ParameterSet/interface/ParameterSet.h"
15     #include "MitAna/DataUtil/interface/TreeWriter.h"
16     #include "DataFormats/TrackReco/interface/TrackFwd.h"
17     #include "MitAna/DataTree/interface/Collections.h"
18     #include "MitProd/TreeFiller/interface/BaseFiller.h"
19     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
20    
21     namespace mithep
22     {
23     class FillerConversions : public BaseFiller
24     {
25     public:
26 loizides 1.2 FillerConversions(const edm::ParameterSet &cfg, bool active=1,
27     const ConversionElectronMap *conversionElectronMap=0);
28 bendavid 1.1 ~FillerConversions();
29    
30 loizides 1.2 void BookDataBlock(TreeWriter &tws);
31     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
32     const ConversionMap *GetConversionMap() const { return conversionMap_; }
33 bendavid 1.1
34     private:
35 loizides 1.3 std::string edmName_;
36     std::string mitName_;
37 loizides 1.4 const mithep::ConversionElectronMap *conversionElectronMap_;
38 loizides 1.3 mithep::ConversionArr *conversions_;
39     mithep::ConversionMap *conversionMap_;
40 bendavid 1.1 };
41     }
42     #endif