ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSimParticles.h
Revision: 1.8
Committed: Fri Jul 25 11:33:58 2008 UTC (16 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
State: FILE REMOVED
Log Message:
Merged gen and sim particles into new MCParticle class

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerSimParticles.h,v 1.7 2008/07/08 12:38:20 loizides Exp $
3 //
4 // FillerSimParticles
5 //
6 // Imlementation of a filler to fill simulation level particles into our data structure.
7 //
8 // Authors: J.Bendavid
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef TREEFILLER_FILLERSIMPARTICLES_H
12 #define TREEFILLER_FILLERSIMPARTICLES_H
13
14 #include "FWCore/ParameterSet/interface/ParameterSet.h"
15 #include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
16 #include "MitAna/DataUtil/interface/TreeWriter.h"
17 #include "MitAna/DataTree/interface/Collections.h"
18 #include "MitProd/TreeFiller/interface/BaseFiller.h"
19 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
20
21 namespace mithep
22 {
23 class FillerSimParticles : public BaseFiller
24 {
25 public:
26 FillerSimParticles(const edm::ParameterSet &cfg, bool active=1,
27 const GenParticleMap *genMap=0);
28 ~FillerSimParticles();
29
30 void BookDataBlock(TreeWriter &tws);
31 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
32 void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
33 const SimParticleMap *GetSimParticleMap() const { return simMap_; }
34
35 private:
36 std::string edmName_;
37 std::string mitName_;
38 const mithep::GenParticleMap *genMap_;
39 mithep::Array<mithep::SimParticle> *simParticles_;
40 mithep::SimParticleMap *simMap_;
41 };
42 }
43 #endif