ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMCParticles.h
Revision: 1.8
Committed: Mon Jun 15 15:00:25 2009 UTC (15 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b
Changes since 1.7: +3 -7 lines
Log Message:
Added proper fwd defs plus split up complilation of MitAna/DataTree LinkDefs.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.8 // $Id: FillerMCParticles.h,v 1.7 2009/03/22 10:00:45 loizides Exp $
3 bendavid 1.1 //
4     // FillerMCParticles
5     //
6 loizides 1.6 // Imlementation of a filler to fill HepMC particles or the AOD GenParticle candidates (gen)
7     // and SimTracks (sim) with association map to TrackingParticles (for hit-based MC truth matching)
8     // into mithep::MCParticles. Generated and simulated particle information is thus merged into a
9     // single collection.
10 bendavid 1.1 //
11     // Authors: C.Loizides, J.Bendavid
12     //--------------------------------------------------------------------------------------------------
13    
14 loizides 1.4 #ifndef MITPROD_TREEFILLER_FILLERMCPARTICLES_H
15     #define MITPROD_TREEFILLER_FILLERMCPARTICLES_H
16 bendavid 1.1
17 loizides 1.8 #include "MitAna/DataTree/interface/MCParticleFwd.h"
18     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
19 bendavid 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
20    
21     namespace mithep
22     {
23     class FillerMCParticles : public BaseFiller
24     {
25     public:
26     FillerMCParticles(const edm::ParameterSet &cfg, const char *name, bool active=1);
27     ~FillerMCParticles();
28    
29 loizides 1.7 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 bendavid 1.1
33     private:
34 loizides 1.6 bool genActive_; //=true if generated particles are filled
35     bool useAodGen_; //=true if AOD GenParticles to be used
36     bool simActive_; //=true if simulated particles are filled
37     bool trackingActive_; //=true if TrackingParticles are mapped
38     std::string genEdmName_; //edm name of generated particles
39     std::string simEdmName_; //edm name of simulated particles
40     std::string trackingEdmName_; //edm name of simulated TrackingParticles
41     std::string genMapName_; //name of exp map wrt generated particles
42     std::string simMapName_; //name of exp map wrt simulated particles
43     std::string trackingMapName_; //name of exp map wrt TrackingParticles
44     std::string mitName_; //name of MCParticles branch
45     mithep::MCParticleArr *mcParticles_; //array of MCParticles
46     mithep::GenParticleBarcodeMap *genMap_; //map wrt generated particles
47     mithep::AODGenParticleMap *aodGenMap_; //map wrt generated particles
48     mithep::SimTrackTidMap *simMap_; //map of SimTracks to G4 track ids
49     mithep::TrackingParticleMap *trackingMap_; //map wrt TrackingParticles
50 bendavid 1.1 };
51     }
52     #endif