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.2 by loizides, Thu Jul 31 12:34:04 2008 UTC

# Line 4 | Line 4
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
7 > // into mithep::MCParticles. Gen and Sim particle information is thus merged into a single
8 > // collection.
9   //
10   // Authors: C.Loizides, J.Bendavid
11   //--------------------------------------------------------------------------------------------------
# Line 29 | Line 30 | namespace mithep
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);
32      const GenParticleMap *GetGenParticleMap() const;
33      const SimParticleMap *GetSimParticleMap() const;
33    
34      private:
35 <      Bool_t                              genActive_;
36 <      Bool_t                              simActive_;
37 <      std::string                         genEdmName_;
38 <      std::string                         simEdmName_;
39 <      std::string                         mitName_;
40 <      mithep::MCParticleArr              *mcParticles_;
41 <      mithep::GenParticleMap             *genMap_;
42 <      mithep::SimParticleMap             *simMap_;
35 >      Bool_t                      genActive_;   //=true if generated particles are filled
36 >      Bool_t                      simActive_;   //=true if simulated particles are filled
37 >      std::string                 genEdmName_;  //edm name of generated particles
38 >      std::string                 simEdmName_;  //edm name of simulated particles
39 >      std::string                 genMapName_;  //name of exported map wrt generated particles
40 >      std::string                 simMapName_;  //name of exported map wrt simulated particles
41 >      std::string                 mitName_;     //name of MCParticles branch in OAK
42 >      mithep::MCParticleArr      *mcParticles_; //array of MCParticles
43 >      mithep::GenParticleMap     *genMap_;      //map wrt generated particles
44 >      mithep::SimParticleMap     *simMap_;      //map wrt simulated particles
45    };
46   }
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 }
47   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines