ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSimParticles.h
Revision: 1.4
Committed: Thu Jul 3 07:56:14 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +7 -7 lines
Log Message:
Coding Conventions

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: FillerSimParticles.h,v 1.3 2008/07/02 13:30:08 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     // 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 loizides 1.2 FillerSimParticles(const edm::ParameterSet &cfg, bool active=1);
27 loizides 1.1 ~FillerSimParticles();
28    
29     void BookDataBlock(TreeWriter &tws);
30     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
31     void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
32 loizides 1.4 const SimParticleMap *GetSimParticleMap() const { return simMap_; }
33 loizides 1.1
34     private:
35 loizides 1.4 std::string edmName_;
36     std::string mitName_;
37     mithep::Array<mithep::SimParticle> *simParticles_;
38     mithep::SimParticleMap *simMap_;
39     edm::Handle<TrackingParticleCollection> trackingParticleProduct;
40 loizides 1.1 };
41     }
42     #endif