ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerConversions.h
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/interface/FillerConversions.h (file contents):
Revision 1.4 by loizides, Tue Jul 8 12:38:20 2008 UTC vs.
Revision 1.14 by bendavid, Thu Mar 18 20:21:00 2010 UTC

# Line 3 | Line 3
3   //
4   // FillerConversions
5   //
6 < // Todo
6 > // Implementation of a filler creating mithep::Conversion objects from the reconstructed
7 > // conversion electrons.
8   //
9   // Authors: J.Bendavid
10   //--------------------------------------------------------------------------------------------------
11  
12 < #ifndef TREEFILLER_FILLERCONVERSIONS_H
13 < #define TREEFILLER_FILLERCONVERSIONS_H
12 > #ifndef MITPROD_TREEFILLER_FILLERCONVERSIONS_H
13 > #define MITPROD_TREEFILLER_FILLERCONVERSIONS_H
14  
15 < #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"
15 > #include "MitAna/DataTree/interface/ConversionFwd.h"
16   #include "MitProd/TreeFiller/interface/AssociationMaps.h"
17 + #include "MitProd/TreeFiller/interface/BaseFiller.h"
18  
19   namespace mithep
20   {
21    class FillerConversions : public BaseFiller
22    {  
23      public:
24 <      FillerConversions(const edm::ParameterSet &cfg, bool active=1,
27 <                        const ConversionElectronMap *conversionElectronMap=0);
24 >      FillerConversions(const edm::ParameterSet &cfg, const char *name, bool active=1);
25        ~FillerConversions();
26  
27 <      void                 BookDataBlock(TreeWriter &tws);
28 <      void                 FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
29 <      const ConversionMap *GetConversionMap() const { return conversionMap_; }
27 >      void                                     BookDataBlock(TreeWriter &tws);
28 >      void                                     FillDataBlock(const edm::Event &e,
29 >                                                             const edm::EventSetup &es);
30    
31      private:
32 <      std::string                              edmName_;
33 <      std::string                              mitName_;
34 <      const mithep::ConversionElectronMap     *conversionElectronMap_;
35 <      mithep::ConversionArr                   *conversions_;
36 <      mithep::ConversionMap                   *conversionMap_;
32 >      mithep::Particle                        *GetMitParticle(edm::Ptr<reco::Track> ptr) const;
33 >    
34 >      std::string                              edmName_;             //name of edm conversions
35 >      std::string                              mitName_;             //mit name of Conversions
36 >      std::string                              convElectronMapName_; //name of imported electrons map
37 >      std::vector<std::string>                 stablePartMapNames_;  //name imp maps wrt stable parts
38 >      std::string                              conversionMapName_;   //name of exported conv map
39 >      std::vector<const mithep::TrackPartMap*> stablePartMaps_;      //maps wrt stable parts
40 >      mithep::ConversionArr                   *conversions_;         //array of Conversions
41 >      mithep::ConversionMap                   *conversionMap_;       //exported map wrt Conversions
42    };
43   }
44   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines