ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerPFCandidates.h
Revision: 1.8
Committed: Wed Sep 28 16:50:06 2011 UTC (13 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025c_branch1, Mit_025c_branch0, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2
Branch point for: Mit_025c_branch
Changes since 1.7: +6 -3 lines
Log Message:
changes for 440 event content

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerPFCandidates.h,v 1.7 2011/09/14 15:26:53 bendavid Exp $
3 //
4 // FillerPFCandidates
5 //
6 // Implementation of a filler to fill EDM PFCandidates into our mithep::PFCandidate data structure.
7 //
8 // Authors: J.Bendavid
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPROD_TREEFILLER_FILLERPFCANDIDATES_H
12 #define MITPROD_TREEFILLER_FILLERPFCANDIDATES_H
13
14 #include "MitAna/DataTree/interface/PFCandidateFwd.h"
15 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
16 #include "MitProd/TreeFiller/interface/BaseFiller.h"
17
18 namespace mithep
19 {
20 class FillerPFCandidates : public BaseFiller
21 {
22 public:
23 FillerPFCandidates(const edm::ParameterSet &cfg, const char *name, bool active=1);
24 ~FillerPFCandidates();
25
26 void BookDataBlock(TreeWriter &tws);
27 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
28 void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
29
30 private:
31
32 const mithep::Track *getMitTrack(mitedm::TrackPtr ptr, bool allowmissing) const;
33
34 std::string edmName_; //edm name of PFCandidates collection
35 std::string mitName_; //name of PFCandidate branch in BAMBU
36 std::string globalTrackMapName_; //name of imported map wrt global muons
37 std::string staTrackMapName_; //name of imported map wrt sta muons
38 std::string staVtxTrackMapName_; //name of imported map wrt sta vtx muons
39 std::vector<std::string> trackerTrackMapNames_; //name of imported map wrt general tracks
40 std::string gsfTrackMapName_; //name of imported map wrt pf gsf tracks
41 std::string muonMapName_; //name of imported map wrt muons
42 std::string conversionMapName_; //name of imported map wrt conversions
43 std::string pfCandMapName_; //name of exported pf candidate map
44 bool allowMissingTrackRef_; //allow missing track reference (needed for tau embedding samples)
45 std::vector<const mithep::TrackMap*> trackerTrackMaps_; //maps wrt tracker tracks
46 const mithep::TrackMap *gsfTrackMap_; //map wrt pf gsf tracks
47 const mithep::MuonMap *muonMap_; //map wrt muons
48 const mithep::ConversionMap *conversionMap_; //map wrt conversions
49 mithep::PFCandidateMap *pfCandMap_; //exported map
50 mithep::PFCandidateArr *pfCands_; //array of PFCandidates
51 };
52 }
53 #endif