ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSimParticles.h
Revision: 1.6
Committed: Mon Jul 7 16:14:01 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.5: +5 -4 lines
Log Message:
coding conventions

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.6 // $Id: FillerSimParticles.h,v 1.5 2008/07/07 13:29:05 bendavid Exp $
3 loizides 1.1 //
4     // FillerSimParticles
5     //
6     // Imlementation of a filler to fill simulation level particles into our data structure.
7     //
8 loizides 1.6 // Authors: J.Bendavid
9 loizides 1.1 //--------------------------------------------------------------------------------------------------
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 loizides 1.6 FillerSimParticles(const edm::ParameterSet &cfg, bool active=1,
27     const GenParticleMap *genMap=0);
28 loizides 1.1 ~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 loizides 1.4 const SimParticleMap *GetSimParticleMap() const { return simMap_; }
34 loizides 1.1
35     private:
36 loizides 1.4 std::string edmName_;
37     std::string mitName_;
38 loizides 1.6 const mithep::GenParticleMap *genMap_;
39 loizides 1.4 mithep::Array<mithep::SimParticle> *simParticles_;
40     mithep::SimParticleMap *simMap_;
41     edm::Handle<TrackingParticleCollection> trackingParticleProduct;
42 loizides 1.1 };
43     }
44     #endif