ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMCParticles.h
Revision: 1.2
Committed: Thu Jul 31 12:34:04 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Changes since 1.1: +13 -30 lines
Log Message:
Consistently introduced ObjectService. Updated comments. Updated .cfg files. Switched off default handling of Stable and DecayParts (for now). ZmmFullReco.cfg shows how to use standard filler with extensions.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerMCParticles.h,v 1.1 2008/07/25 11:33:57 bendavid Exp $
3 //
4 // FillerMCParticles
5 //
6 // Imlementation of a filler to fill HepMC particles (gen) AND TrackingParticles (sim)
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 //--------------------------------------------------------------------------------------------------
12
13 #ifndef TREEFILLER_FILLERMCPARTICLES_H
14 #define TREEFILLER_FILLERMCPARTICLES_H
15
16 #include "FWCore/ParameterSet/interface/ParameterSet.h"
17 #include "MitAna/DataUtil/interface/TreeWriter.h"
18 #include "MitAna/DataTree/interface/Collections.h"
19 #include "MitProd/TreeFiller/interface/BaseFiller.h"
20 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
21
22 namespace mithep
23 {
24 class FillerMCParticles : public BaseFiller
25 {
26 public:
27 FillerMCParticles(const edm::ParameterSet &cfg, const char *name, bool active=1);
28 ~FillerMCParticles();
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
34 private:
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 }
47 #endif