ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerStableParts.h
Revision: 1.10
Committed: Sun Jul 12 13:09:55 2009 UTC (15 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Changes since 1.9: +5 -3 lines
Log Message:
Add support for multiple track maps

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.10 // $Id: FillerStableParts.h,v 1.9 2009/06/18 23:00:02 bendavid Exp $
3 paus 1.1 //
4     // FillerStableParts
5     //
6 loizides 1.5 // Implementation of a filler to copy the mitedm::StablePart collection into the
7 loizides 1.3 // mithep::StableParticle collection.
8 paus 1.1 //
9 loizides 1.3 // Authors: C.Paus
10 paus 1.1 //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.4 #ifndef MITPROD_TREEFILLER_FILLERSTABLEPARTS_H
13     #define MITPROD_TREEFILLER_FILLERSTABLEPARTS_H
14 paus 1.1
15 loizides 1.8 #include "MitAna/DataTree/interface/StableParticleFwd.h"
16     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
17 paus 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
18    
19     namespace mithep
20     {
21     class FillerStableParts : public BaseFiller
22     {
23 loizides 1.3 public:
24     FillerStableParts(const edm::ParameterSet &cfg, const char *name, bool active=1);
25     ~FillerStableParts();
26 paus 1.1
27 loizides 1.7 void BookDataBlock(TreeWriter &tws);
28     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
29 loizides 1.3
30     private:
31 bendavid 1.10 mithep::Track *GetMitTrack(const mitedm::TrackPtr &ptr) const;
32    
33 loizides 1.7 std::string edmName_; //edm name of stable parts collection
34     std::string mitName_; //mit name of StableParticles
35 bendavid 1.10 std::vector<std::string> trackMapNames_; //name of imported maps wrt tracks
36 loizides 1.7 std::string basePartMapName_; //name of exported map wrt stable parts
37 bendavid 1.9 std::string trackPartMapName_; //name of exported map wrt track-stable parts
38 bendavid 1.10 std::vector<const mithep::TrackMap*> trackMaps_; //imported maps wrt tracks
39 loizides 1.7 mithep::StableParticleArr *stables_; //array of StableParticles
40     mithep::BasePartMap *basePartMap_; //map wrt stable parts
41 bendavid 1.9 mithep::TrackPartMap *trackPartMap_; //track map wrt stable parts
42 paus 1.1 };
43     }
44     #endif