RecoMET
METProducers
interface
MuonMETValueMapProducer.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: METProducers
4
// Class: MuonMETValueMapProducer
5
//
6
//
7
11
//
12
// Original Author: Puneeth Kalavase
13
// Created: Sun Mar 15 11:33:20 CDT 2009
14
//
15
//
16
17
//____________________________________________________________________________||
18
#ifndef RecoMET_MuonMETValueMapProducer_h
19
#define RecoMET_MuonMETValueMapProducer_h
20
21
//____________________________________________________________________________||
22
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
23
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
24
#include "
FWCore/Framework/interface/Event.h
"
25
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
26
#include "
FWCore/Utilities/interface/ESGetToken.h
"
27
#include "
DataFormats/Common/interface/Handle.h
"
28
#include "
TrackingTools/TrackAssociator/interface/TrackDetectorAssociator.h
"
29
#include "
TrackingTools/TrackAssociator/interface/TrackAssociatorParameters.h
"
30
31
#include "
DataFormats/MuonReco/interface/Muon.h
"
32
#include "
DataFormats/BeamSpot/interface/BeamSpot.h
"
33
#include "
DataFormats/MuonReco/interface/MuonMETCorrectionData.h
"
34
#include "
MagneticField/Engine/interface/MagneticField.h
"
35
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
36
37
//____________________________________________________________________________||
38
namespace
cms
{
39
40
class
MuonMETValueMapProducer
:
public
edm::stream::EDProducer
<> {
41
public
:
42
explicit
MuonMETValueMapProducer
(
const
edm::ParameterSet
&);
43
~MuonMETValueMapProducer
()
override
{}
44
45
private
:
46
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
47
48
void
determine_deltax_deltay
(
double
& deltax,
49
double
& deltay,
50
const
reco::Muon
&
muon
,
51
double
bfield,
52
const
MagneticField
&
magneticField
,
53
edm::Event
&
iEvent
,
54
const
edm::EventSetup
& iSetup);
55
reco::MuonMETCorrectionData::Type
decide_correction_type
(
const
reco::Muon
&
muon
,
56
const
math::XYZPoint
& beamSpotPosition);
57
bool
should_type_MuonCandidateValuesUsed
(
const
reco::Muon
&
muon
,
const
math::XYZPoint
& beamSpotPosition);
58
59
double
minPt_
;
60
double
maxEta_
;
61
bool
isAlsoTkMu_
;
62
double
maxNormChi2_
;
63
double
maxd0_
;
64
int
minnHits_
;
65
int
minnValidStaHits_
;
66
67
bool
useTrackAssociatorPositions_
;
68
bool
useHO_
;
69
double
towerEtThreshold_
;
70
bool
useRecHits_
;
71
72
edm::EDGetTokenT<edm::View<reco::Muon>
>
muonToken_
;
73
edm::EDGetTokenT<reco::BeamSpot>
beamSpotToken_
;
74
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord>
magFieldToken_
;
75
76
TrackAssociatorParameters
trackAssociatorParameters_
;
77
TrackDetectorAssociator
trackAssociator_
;
78
};
79
80
}
// namespace cms
81
82
//____________________________________________________________________________||
83
#endif
/* RecoMET_MuonMETValueMapProducer_h */
cms::MuonMETValueMapProducer
Definition:
MuonMETValueMapProducer.h:40
cms::MuonMETValueMapProducer::decide_correction_type
reco::MuonMETCorrectionData::Type decide_correction_type(const reco::Muon &muon, const math::XYZPoint &beamSpotPosition)
Definition:
MuonMETValueMapProducer.cc:139
cms::MuonMETValueMapProducer::~MuonMETValueMapProducer
~MuonMETValueMapProducer() override
Definition:
MuonMETValueMapProducer.h:43
Handle.h
Muon.h
muon
Definition:
MuonCocktails.h:17
TrackDetectorAssociator.h
edm::EDGetTokenT
Definition:
EDGetToken.h:33
EDProducer.h
HLT_FULL_cff.magneticField
magneticField
Definition:
HLT_FULL_cff.py:348
ESGetToken.h
cms::MuonMETValueMapProducer::minnValidStaHits_
int minnValidStaHits_
Definition:
MuonMETValueMapProducer.h:65
reco::Muon
Definition:
Muon.h:27
cms::MuonMETValueMapProducer::muonToken_
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Definition:
MuonMETValueMapProducer.h:72
cms::MuonMETValueMapProducer::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition:
MuonMETValueMapProducer.h:73
BeamSpot.h
cms::MuonMETValueMapProducer::magFieldToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition:
MuonMETValueMapProducer.h:74
cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed
bool should_type_MuonCandidateValuesUsed(const reco::Muon &muon, const math::XYZPoint &beamSpotPosition)
Definition:
MuonMETValueMapProducer.cc:148
IdealMagneticFieldRecord.h
cms::MuonMETValueMapProducer::useTrackAssociatorPositions_
bool useTrackAssociatorPositions_
Definition:
MuonMETValueMapProducer.h:67
cms::MuonMETValueMapProducer::useRecHits_
bool useRecHits_
Definition:
MuonMETValueMapProducer.h:70
edm::ParameterSet
Definition:
ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
cms::MuonMETValueMapProducer::towerEtThreshold_
double towerEtThreshold_
Definition:
MuonMETValueMapProducer.h:69
Event.h
cms::MuonMETValueMapProducer::MuonMETValueMapProducer
MuonMETValueMapProducer(const edm::ParameterSet &)
Definition:
MuonMETValueMapProducer.cc:55
TrackDetectorAssociator
Definition:
TrackDetectorAssociator.h:44
cms::MuonMETValueMapProducer::isAlsoTkMu_
bool isAlsoTkMu_
Definition:
MuonMETValueMapProducer.h:61
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::stream::EDProducer
Definition:
EDProducer.h:38
cms::MuonMETValueMapProducer::trackAssociator_
TrackDetectorAssociator trackAssociator_
Definition:
MuonMETValueMapProducer.h:77
MagneticField.h
edm::EventSetup
Definition:
EventSetup.h:57
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
cms::MuonMETValueMapProducer::trackAssociatorParameters_
TrackAssociatorParameters trackAssociatorParameters_
Definition:
MuonMETValueMapProducer.h:76
reco::MuonMETCorrectionData::Type
Type
Definition:
MuonMETCorrectionData.h:9
cms::MuonMETValueMapProducer::minnHits_
int minnHits_
Definition:
MuonMETValueMapProducer.h:64
cms::MuonMETValueMapProducer::minPt_
double minPt_
Definition:
MuonMETValueMapProducer.h:59
Frameworkfwd.h
cms::MuonMETValueMapProducer::maxEta_
double maxEta_
Definition:
MuonMETValueMapProducer.h:60
MuonMETCorrectionData.h
cms::MuonMETValueMapProducer::useHO_
bool useHO_
Definition:
MuonMETValueMapProducer.h:68
ParameterSet.h
cms::MuonMETValueMapProducer::maxNormChi2_
double maxNormChi2_
Definition:
MuonMETValueMapProducer.h:62
cms::MuonMETValueMapProducer::maxd0_
double maxd0_
Definition:
MuonMETValueMapProducer.h:63
cms::MuonMETValueMapProducer::determine_deltax_deltay
void determine_deltax_deltay(double &deltax, double &deltay, const reco::Muon &muon, double bfield, const MagneticField &magneticField, edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition:
MuonMETValueMapProducer.cc:115
edm::Event
Definition:
Event.h:73
MagneticField
Definition:
MagneticField.h:19
cms::MuonMETValueMapProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
MuonMETValueMapProducer.cc:80
TrackAssociatorParameters.h
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:21
TrackAssociatorParameters
Definition:
TrackAssociatorParameters.h:43
Generated for CMSSW Reference Manual by
1.8.16