ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerPFCandidates.h
Revision: 1.9
Committed: Sun Mar 11 23:11:55 2012 UTC (13 years, 1 month ago) by pharris
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_028a, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d
Changes since 1.8: +5 -1 lines
Log Message:
Adding DCA Significance + PF No Pileup Flag + Charge Hadron Subtracted Jets

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 pharris 1.9 // $Id: FillerPFCandidates.h,v 1.8 2011/09/28 16:50:06 bendavid Exp $
3 bendavid 1.1 //
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 loizides 1.4 #include "MitAna/DataTree/interface/PFCandidateFwd.h"
15     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
16 bendavid 1.1 #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 bendavid 1.6 void BookDataBlock(TreeWriter &tws);
27 loizides 1.3 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
28     void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
29 bendavid 1.1
30     private:
31 bendavid 1.8
32     const mithep::Track *getMitTrack(mitedm::TrackPtr ptr, bool allowmissing) const;
33    
34 loizides 1.2 std::string edmName_; //edm name of PFCandidates collection
35 pharris 1.9 std::string edmPfNoPileupName_; //edm name of PFNoPileup collection
36 loizides 1.2 std::string mitName_; //name of PFCandidate branch in BAMBU
37     std::string globalTrackMapName_; //name of imported map wrt global muons
38     std::string staTrackMapName_; //name of imported map wrt sta muons
39     std::string staVtxTrackMapName_; //name of imported map wrt sta vtx muons
40 bendavid 1.8 std::vector<std::string> trackerTrackMapNames_; //name of imported map wrt general tracks
41 loizides 1.2 std::string gsfTrackMapName_; //name of imported map wrt pf gsf tracks
42     std::string muonMapName_; //name of imported map wrt muons
43     std::string conversionMapName_; //name of imported map wrt conversions
44     std::string pfCandMapName_; //name of exported pf candidate map
45 pharris 1.9 std::string pfNoPileupCandMapName_; //name of exported pf no pileup candidate map
46 bendavid 1.7 bool allowMissingTrackRef_; //allow missing track reference (needed for tau embedding samples)
47 pharris 1.9 bool fillPfNoPileup_;
48 bendavid 1.8 std::vector<const mithep::TrackMap*> trackerTrackMaps_; //maps wrt tracker tracks
49 loizides 1.2 const mithep::TrackMap *gsfTrackMap_; //map wrt pf gsf tracks
50     const mithep::MuonMap *muonMap_; //map wrt muons
51 bendavid 1.1 const mithep::ConversionMap *conversionMap_; //map wrt conversions
52 loizides 1.2 mithep::PFCandidateMap *pfCandMap_; //exported map
53 pharris 1.9 mithep::PFCandidateMap *pfNoPileupCandMap_; //exported map for pf no pileup
54 loizides 1.2 mithep::PFCandidateArr *pfCands_; //array of PFCandidates
55 bendavid 1.1 };
56     }
57     #endif