1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.2 |
// $Id: FillerPFCandidates.h,v 1.1 2009/03/11 20:08:22 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 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
19 |
|
|
|
20 |
|
|
namespace mithep
|
21 |
|
|
{
|
22 |
|
|
class FillerPFCandidates : public BaseFiller
|
23 |
|
|
{
|
24 |
|
|
public:
|
25 |
|
|
FillerPFCandidates(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
26 |
|
|
~FillerPFCandidates();
|
27 |
|
|
|
28 |
|
|
void BookDataBlock(TreeWriter &tws);
|
29 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
30 |
|
|
void ResolveLinks (const edm::Event &e, const edm::EventSetup &es);
|
31 |
|
|
|
32 |
|
|
private:
|
33 |
loizides |
1.2 |
std::string edmName_; //edm name of PFCandidates collection
|
34 |
|
|
std::string mitName_; //name of PFCandidate branch in BAMBU
|
35 |
|
|
std::string globalTrackMapName_; //name of imported map wrt global muons
|
36 |
|
|
std::string staTrackMapName_; //name of imported map wrt sta muons
|
37 |
|
|
std::string staVtxTrackMapName_; //name of imported map wrt sta vtx muons
|
38 |
|
|
std::string trackerTrackMapName_; //name of imported map wrt general tracks
|
39 |
|
|
std::string gsfTrackMapName_; //name of imported map wrt pf gsf tracks
|
40 |
|
|
std::string muonMapName_; //name of imported map wrt muons
|
41 |
|
|
std::string conversionMapName_; //name of imported map wrt conversions
|
42 |
|
|
std::string pfCandMapName_; //name of exported pf candidate map
|
43 |
|
|
const mithep::TrackMap *trackerTrackMap_; //map wrt tracker tracks
|
44 |
|
|
const mithep::TrackMap *gsfTrackMap_; //map wrt pf gsf tracks
|
45 |
|
|
const mithep::MuonMap *muonMap_; //map wrt muons
|
46 |
bendavid |
1.1 |
const mithep::ConversionMap *conversionMap_; //map wrt conversions
|
47 |
loizides |
1.2 |
mithep::PFCandidateMap *pfCandMap_; //exported map
|
48 |
|
|
mithep::PFCandidateArr *pfCands_; //array of PFCandidates
|
49 |
bendavid |
1.1 |
};
|
50 |
|
|
}
|
51 |
|
|
#endif
|