ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMCParticles.h
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/interface/FillerMCParticles.h (file contents):
Revision 1.1 by bendavid, Fri Jul 25 11:33:57 2008 UTC vs.
Revision 1.8 by loizides, Mon Jun 15 15:00:25 2009 UTC

# Line 3 | Line 3
3   //
4   // FillerMCParticles
5   //
6 < // Imlementation of a filler to fill HepMC particles (gen) AND TrackingParticles (sim)
7 < // into mithep::MCParticles.  Gen and Sim information is thus merged into a single collection
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   //
11   // Authors: C.Loizides, J.Bendavid
12   //--------------------------------------------------------------------------------------------------
13  
14 < #ifndef TREEFILLER_FILLERMCPARTICLES_H
15 < #define TREEFILLER_FILLERMCPARTICLES_H
14 > #ifndef MITPROD_TREEFILLER_FILLERMCPARTICLES_H
15 > #define MITPROD_TREEFILLER_FILLERMCPARTICLES_H
16  
17 < #include "FWCore/ParameterSet/interface/ParameterSet.h"
16 < #include "MitAna/DataUtil/interface/TreeWriter.h"
17 < #include "MitAna/DataTree/interface/Collections.h"
18 < #include "MitProd/TreeFiller/interface/BaseFiller.h"
17 > #include "MitAna/DataTree/interface/MCParticleFwd.h"
18   #include "MitProd/TreeFiller/interface/AssociationMaps.h"
19 + #include "MitProd/TreeFiller/interface/BaseFiller.h"
20  
21   namespace mithep
22   {
# Line 26 | Line 26 | namespace mithep
26        FillerMCParticles(const edm::ParameterSet &cfg, const char *name, bool active=1);
27        ~FillerMCParticles();
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 <      const GenParticleMap *GetGenParticleMap() const;
33 <      const SimParticleMap *GetSimParticleMap() const;
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    
33      private:
34 <      Bool_t                              genActive_;
35 <      Bool_t                              simActive_;
36 <      std::string                         genEdmName_;
37 <      std::string                         simEdmName_;
38 <      std::string                         mitName_;
39 <      mithep::MCParticleArr              *mcParticles_;
40 <      mithep::GenParticleMap             *genMap_;
41 <      mithep::SimParticleMap             *simMap_;
34 >      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    };
51   }
46
47 //--------------------------------------------------------------------------------------------------
48 inline const mithep::GenParticleMap *mithep::FillerMCParticles::GetGenParticleMap() const
49 {
50  if (genActive_)
51    return genMap_;
52  else
53    return 0;
54 }
55
56 //--------------------------------------------------------------------------------------------------
57 inline const mithep::SimParticleMap *mithep::FillerMCParticles::GetSimParticleMap() const
58 {
59  if (simActive_)
60    return simMap_;
61  else
62    return 0;
63 }
52   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines