Revision: | 1.11 |
Committed: | Thu Mar 18 20:21:00 2010 UTC (15 years, 1 month ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, HEAD |
Branch point for: | Mit_025c_branch |
Changes since 1.10: | +2 -2 lines |
Error occurred while calculating annotation data. | |
Log Message: | Fix beginrun,beginjob mess |
# | Content |
---|---|
1 | //-------------------------------------------------------------------------------------------------- |
2 | // $Id: FillerMCParticles.h,v 1.10 2010/01/07 11:04:31 bendavid Exp $ |
3 | // |
4 | // FillerMCParticles |
5 | // |
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 MITPROD_TREEFILLER_FILLERMCPARTICLES_H |
15 | #define MITPROD_TREEFILLER_FILLERMCPARTICLES_H |
16 | |
17 | #include "MitAna/DataTree/interface/MCParticleFwd.h" |
18 | #include "MitAna/DataTree/interface/TrackingParticleFwd.h" |
19 | #include "MitProd/TreeFiller/interface/AssociationMaps.h" |
20 | #include "MitProd/TreeFiller/interface/BaseFiller.h" |
21 | #include "MitProd/TreeFiller/interface/HitPatternReader.h" |
22 | |
23 | |
24 | namespace mithep |
25 | { |
26 | class FillerMCParticles : public BaseFiller |
27 | { |
28 | public: |
29 | FillerMCParticles(const edm::ParameterSet &cfg, const char *name, bool active=1); |
30 | ~FillerMCParticles(); |
31 | |
32 | void BookDataBlock(TreeWriter &tws); |
33 | void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
34 | void ResolveLinks (const edm::Event &e, const edm::EventSetup &es); |
35 | |
36 | private: |
37 | bool genActive_; //=true if generated particles are filled |
38 | bool useAodGen_; //=true if AOD GenParticles to be used |
39 | bool simActive_; //=true if simulated particles are filled |
40 | bool trackingActive_; //=true if TrackingParticles are mapped |
41 | bool fillTracking_; //=treu if detailed sim hit info is filled |
42 | std::string genEdmName_; //edm name of generated particles |
43 | std::string simEdmName_; //edm name of simulated particles |
44 | std::string trackingEdmName_; //edm name of simulated TrackingParticles |
45 | std::string genMapName_; //name of exp map wrt generated particles |
46 | std::string simMapName_; //name of exp map wrt simulated particles |
47 | std::string trackingMapName_; //name of exp map wrt TrackingParticles |
48 | std::string mitName_; //name of MCParticles branch |
49 | std::string mitTrackingName_; //name of TrackingParticles branch |
50 | mithep::MCParticleArr *mcParticles_; //array of MCParticles |
51 | mithep::TrackingParticleArr *trackingParticles_; //array of TrackingParticles |
52 | mithep::GenParticleBarcodeMap *genMap_; //map wrt generated particles |
53 | mithep::AODGenParticleMap *aodGenMap_; //map wrt generated particles |
54 | mithep::SimTrackTidMap *simMap_; //map of SimTracks to G4 track ids |
55 | mithep::TrackingParticleMap *trackingMap_; //map wrt TrackingParticles |
56 | mithep::HitPatternReader hitReader_; //hit pattern reader |
57 | }; |
58 | } |
59 | #endif |