ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSimParticles.h
Revision: 1.7
Committed: Tue Jul 8 12:38:20 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.6: +1 -2 lines
Log Message:
Updated Fillers to use GetProduct function in BaseFiller. This function will determine whether a product is valid and otherwise exit.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.7 // $Id: FillerSimParticles.h,v 1.6 2008/07/07 16:14:01 loizides 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 loizides 1.1 };
42     }
43     #endif