ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerConversions.h
Revision: 1.1
Committed: Wed Jul 2 19:41:02 2008 UTC (16 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
added fillers for photons and conversions

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: FillerGlobalMuons.h,v 1.3 2008/06/18 19:17:21 loizides Exp $
3     //
4     // FillerConversions
5     //
6     // Imlementation of a filler to fill tracks into our data structure.
7     //
8     // Authors: J. Bendavid
9     //--------------------------------------------------------------------------------------------------
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/Common/interface/Handle.h"
17     #include "MitAna/DataTree/interface/Track.h"
18     #include "DataFormats/TrackReco/interface/Track.h"
19     #include "DataFormats/TrackReco/interface/TrackFwd.h"
20     #include "MitAna/DataTree/interface/Collections.h"
21     #include "MitAna/DataTree/interface/Array.h"
22     #include "MitProd/TreeService/interface/TreeService.h"
23     #include "MitProd/TreeFiller/interface/BaseFiller.h"
24     #include "MitProd/TreeFiller/interface/AssociationMap.h"
25     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
26    
27     using namespace std;
28     using namespace mithep;
29    
30    
31    
32     namespace mithep
33     {
34     class FillerConversions : public BaseFiller
35     {
36     public:
37     FillerConversions(const edm::ParameterSet&, bool active, const ConversionElectronMap* conversionElectronMap=0);
38     ~FillerConversions();
39    
40     void BookDataBlock(TreeWriter &tws);
41     void FillDataBlock(const edm::Event&, const edm::EventSetup&);
42     const ConversionMap* GetConversionMap() { return conversionMap_; }
43    
44     private:
45     std::string edmName_;
46     std::string edmDataName_;
47     std::string mitName_;
48     const mithep::ConversionElectronMap* conversionElectronMap_;
49     mithep::ConversionArr *conversions_;
50     mithep::ConversionMap* conversionMap_;
51     edm::Handle<reco::ConversionCollection> conversionProduct_;
52     };
53     }
54     #endif