ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerDecayParts.h
Revision: 1.14
Committed: Fri Sep 25 08:42:50 2009 UTC (15 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a
Changes since 1.13: +3 -2 lines
Log Message:
Extended interface of BookDataBlock to contain event setup.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerDecayParts.h,v 1.13 2009/06/15 15:00:24 loizides Exp $
3 //
4 // FillerDecayParts
5 //
6 // Imlementation of a filler to copy the mitedm::DecayPart collection into the
7 // mithep::DecayParticle collection.
8 //
9 // Authors: C.Paus
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPROD_TREEFILLER_FILLERDECAYPARTS_H
13 #define MITPROD_TREEFILLER_FILLERDECAYPARTS_H
14
15 #include "MitEdm/DataFormats/interface/BasePartFwd.h"
16 #include "MitAna/DataTree/interface/StableDataFwd.h"
17 #include "MitAna/DataTree/interface/DecayDataFwd.h"
18 #include "MitAna/DataTree/interface/DecayParticleFwd.h"
19 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
20 #include "MitProd/TreeFiller/interface/BaseFiller.h"
21 #include "MitProd/TreeFiller/interface/HitPatternReader.h"
22
23 namespace mithep
24 {
25 class Partice;
26
27 class FillerDecayParts : public BaseFiller
28 {
29 public:
30 FillerDecayParts(const edm::ParameterSet &cfg, const char *name, bool active=1);
31 ~FillerDecayParts();
32
33 void BookDataBlock(TreeWriter &tws,
34 const edm::EventSetup &es);
35 void FillDataBlock(const edm::Event &e,
36 const edm::EventSetup &es);
37
38 private:
39 mithep::Particle *getMitParticle(mitedm::BasePartPtr ptr) const;
40
41 std::string edmName_; //edm name of collection
42 std::string mitName_; //mit name of collection
43 std::string stableDataName_; //= mitName_ + "_StableDatas"
44 std::string decayDataName_; //= mitName_ + "_DecayDatas"
45 std::string vertexMapName_; //name map wrt primary vertexes
46 std::vector<std::string> basePartMapNames_; //name imp maps wrt stable parts
47 std::vector<const mithep::BasePartMap*> basePartMaps_; //maps wrt stable parts
48 const mithep::VertexMap *vertexMap_; //map wrt primary vertexes
49 mithep::DecayParticleArr *decays_; //array of DecayParticles
50 mithep::StableDataArr *stableData_; //array of StableDatas
51 mithep::DecayDataArr *decayData_; //array of DecayDatas
52 mithep::HitPatternReader hitReader_; //hit pattern reader
53 };
54 }
55 #endif