ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerDecayParts.h
Revision: 1.7
Committed: Tue Sep 30 13:03:15 2008 UTC (16 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_004
Changes since 1.6: +14 -6 lines
Log Message:
updated for new DecayPart and DecayParticle formats and added primary vertex links

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.7 // $Id: FillerDecayParts.h,v 1.6 2008/09/27 05:50:47 loizides Exp $
3 paus 1.1 //
4     // FillerDecayParts
5     //
6 loizides 1.3 // Imlementation of a filler to copy the mitedm::DecayPart collection into the
7     // mithep::DecayParticle collection.
8 paus 1.1 //
9 loizides 1.3 // Authors: C.Paus
10 paus 1.1 //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.4 #ifndef MITPROD_TREEFILLER_FILLERDECAYPARTS_H
13     #define MITPROD_TREEFILLER_FILLERDECAYPARTS_H
14 paus 1.1
15     #include "MitProd/TreeFiller/interface/BaseFiller.h"
16 bendavid 1.2 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
17 bendavid 1.7 #include "MitAna/DataTree/interface/Particle.h"
18 paus 1.1 #include "MitAna/DataTree/interface/Collections.h"
19 bendavid 1.7 #include "MitEdm/DataFormats/interface/BasePartFwd.h"
20 paus 1.1
21     namespace mithep
22     {
23     class FillerDecayParts : public BaseFiller
24     {
25 loizides 1.3 public:
26     FillerDecayParts(const edm::ParameterSet &cfg, const char *name, bool active=1);
27     ~FillerDecayParts();
28 paus 1.1
29 loizides 1.3 void BookDataBlock(TreeWriter &tws);
30     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
31 paus 1.1
32 loizides 1.3 private:
33 bendavid 1.7 mithep::Particle *getMitParticle(mitedm::BasePartPtr ptr) const;
34    
35     std::string edmName_; //edm name of decay parts collection
36     std::string mitName_; //name of DecayParticles in OAK
37     std::string vertexMapName_; //name of imported map wrt primary vertexes
38     std::vector<std::string> basePartMapNames_; //name of imported maps wrt stable parts
39     std::vector<const mithep::BasePartMap*> basePartMaps_; //maps wrt stable parts
40     const mithep::VertexMap *vertexMap_; //map wrt primary vertexes
41     mithep::DecayParticleArr *decays_; //array of DecayParticles
42     mithep::StableDataArr *stableData_; //array of StableDatas
43     mithep::DecayDataArr *decayData_; //array of DecayDatas
44 paus 1.1 };
45     }
46     #endif