1 |
|
2 |
//--------------------------------------------------------------------------------------------------
|
3 |
// $Id: FillerPFCandidates.h,v 1.10 2012/07/25 03:08:42 paus Exp $
|
4 |
//
|
5 |
// FillerPFCandidates
|
6 |
//
|
7 |
// Implementation of a filler to fill EDM PFCandidates into our mithep::PFCandidate data structure.
|
8 |
//
|
9 |
// Authors: J.Bendavid
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITPROD_TREEFILLER_FILLERPFCANDIDATES_H
|
13 |
#define MITPROD_TREEFILLER_FILLERPFCANDIDATES_H
|
14 |
|
15 |
#include "MitAna/DataTree/interface/PFCandidateFwd.h"
|
16 |
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
17 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
19 |
namespace mithep
|
20 |
{
|
21 |
class FillerPFCandidates : public BaseFiller
|
22 |
{
|
23 |
public:
|
24 |
FillerPFCandidates(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
25 |
~FillerPFCandidates();
|
26 |
|
27 |
void BookDataBlock(TreeWriter &tws);
|
28 |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
29 |
void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
|
30 |
|
31 |
private:
|
32 |
|
33 |
const mithep::Track *getMitTrack(mitedm::TrackPtr ptr, bool allowmissing) const;
|
34 |
|
35 |
std::string edmName_; //edm name of PFCandidates coll
|
36 |
std::string edmPfNoPileupName_; //edm name of PFNoPileup coll
|
37 |
std::string mitName_; //name: PFCandidate branch in BAMBU
|
38 |
std::string globalTrackMapName_; //name: impo. map wrt global muons
|
39 |
std::string staTrackMapName_; //name: impo. map wrt sta muons
|
40 |
std::string staVtxTrackMapName_; //name: impo. map wrt sta vtx muons
|
41 |
std::vector<std::string> trackerTrackMapNames_; //name: impo. map wrt general tracks
|
42 |
std::string gsfTrackMapName_; //name: impo. map wrt pf gsf tracks
|
43 |
std::string muonMapName_; //name: impo. map wrt muons
|
44 |
std::string electronMapName_; //name: impo. map wrt electrons
|
45 |
std::string photonMapName_; //name: impo. map wrt photons
|
46 |
std::string barrelSuperClusterMapName_; //name: impo. map wrt SC
|
47 |
std::string endcapSuperClusterMapName_; //name: impo. map wrt SC
|
48 |
std::string pfElectronSuperClusterMapName_; //name: impo. map wrt SC
|
49 |
std::string conversionMapName_; //name: impo. map wrt conversions
|
50 |
std::string pfCandMapName_; //name: expo. pf candidate map
|
51 |
std::string pfNoPileupCandMapName_; //name: expo. PFnoPU candidate map
|
52 |
bool allowMissingTrackRef_; //allow missing track ref (tau emb)
|
53 |
bool allowMissingPhotonRef_; //allow missing photon ref (tau emb)
|
54 |
bool fillPfNoPileup_;
|
55 |
std::vector<const mithep::TrackMap*>
|
56 |
trackerTrackMaps_; //maps wrt tracker tracks
|
57 |
const mithep::TrackMap *gsfTrackMap_; //map wrt pf gsf tracks
|
58 |
const mithep::MuonMap *muonMap_; //map wrt muons
|
59 |
const mithep::ElectronMap *electronMap_; //map wrt electrons
|
60 |
const mithep::PhotonMap *photonMap_; //map wrt photons
|
61 |
const mithep::SuperClusterMap *barrelSuperClusterMap_; //map wrt superclusters
|
62 |
const mithep::SuperClusterMap *endcapSuperClusterMap_; //map wrt superclusters
|
63 |
const mithep::SuperClusterMap *pfElectronSuperClusterMap_;//map wrt superclusters
|
64 |
const mithep::ConversionMap *conversionMap_; //map wrt conversions
|
65 |
mithep::PFCandidateMap *pfCandMap_; //exported map
|
66 |
mithep::PFCandidateMap *pfNoPileupCandMap_; //exported map for pf no pileup
|
67 |
mithep::PFCandidateArr *pfCands_; //array of PFCandidates
|
68 |
};
|
69 |
}
|
70 |
#endif
|