3 |
|
// |
4 |
|
// FillerMuons |
5 |
|
// |
6 |
< |
// Imlementation of a filler to fill EDM muons into our mithep::Muon data structure. |
6 |
> |
// Implementation of a filler to fill EDM muons into our mithep::Muon data structure. |
7 |
|
// |
8 |
|
// Authors: J.Bendavid |
9 |
|
//-------------------------------------------------------------------------------------------------- |
10 |
|
|
11 |
< |
#ifndef TREEFILLER_FILLERMUONS_H |
12 |
< |
#define TREEFILLER_FILLERMUONS_H |
11 |
> |
#ifndef MITPROD_TREEFILLER_FILLERMUONS_H |
12 |
> |
#define MITPROD_TREEFILLER_FILLERMUONS_H |
13 |
|
|
14 |
< |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
15 |
< |
#include "MitAna/DataUtil/interface/TreeWriter.h" |
16 |
< |
#include "DataFormats/MuonReco/interface/MuonFwd.h" |
17 |
< |
#include "MitAna/DataTree/interface/Collections.h" |
18 |
< |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
14 |
> |
#include "MitAna/DataTree/interface/MuonFwd.h" |
15 |
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h" |
16 |
+ |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
17 |
|
|
18 |
|
namespace mithep |
19 |
|
{ |
20 |
|
class FillerMuons : public BaseFiller |
21 |
|
{ |
22 |
|
public: |
23 |
< |
FillerMuons(const edm::ParameterSet &cfg, bool active=1, |
27 |
< |
const TrackMap *globalMap=0, const TrackMap *stdMap=0, |
28 |
< |
const TrackMap *stdVtxMap=0, const TrackMap *trackerMap=0); |
23 |
> |
FillerMuons(const edm::ParameterSet &cfg, const char *name, bool active=1); |
24 |
|
~FillerMuons(); |
25 |
|
|
26 |
< |
void BookDataBlock(TreeWriter &tws); |
27 |
< |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
26 |
> |
void BookDataBlock(TreeWriter &tws); |
27 |
> |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
28 |
|
|
29 |
|
private: |
30 |
< |
std::string edmName_; |
31 |
< |
std::string mitName_; |
32 |
< |
mithep::MuonArr *muons_; |
33 |
< |
edm::Handle<reco::MuonCollection> muonProduct_; |
34 |
< |
const mithep::TrackMap *globalTrackMap_; |
35 |
< |
const mithep::TrackMap *standaloneTrackMap_; |
36 |
< |
const mithep::TrackMap *standaloneVtxTrackMap_; |
37 |
< |
const mithep::TrackMap *trackerTrackMap_; |
30 |
> |
std::string edmName_; //edm name of muons collection |
31 |
> |
std::string mitName_; //mit name of Muons |
32 |
> |
std::string globalTrackMapName_; //name of imported map wrt global muons |
33 |
> |
std::string staTrackMapName_; //name of imported map wrt sta muons |
34 |
> |
std::string staVtxTrackMapName_; //name of imported map wrt sta vtx muons |
35 |
> |
std::string trackerTrackMapName_; //name of imported map wrt tracker muons |
36 |
> |
std::string muonMapName_; //name of exported muon map |
37 |
> |
std::string pvEdmName_; //name of primary vertex collection |
38 |
> |
std::string pvBSEdmName_; //name of bs-constrained pv collection |
39 |
> |
const mithep::TrackMap *globalTrackMap_; //map wrt global muons |
40 |
> |
const mithep::TrackMap *standaloneTrackMap_; //map wrt standalone muons |
41 |
> |
const mithep::TrackMap *standaloneVtxTrackMap_; //map wrt standalone vertex muons |
42 |
> |
const mithep::TrackMap *trackerTrackMap_; //map wrt tracker track muons |
43 |
> |
mithep::MuonMap *muonMap_; //exported muon map |
44 |
> |
mithep::MuonArr *muons_; //array of Muons |
45 |
|
}; |
46 |
|
} |
47 |
|
#endif |