Main Page
Namespaces
Classes
Package Documentation
RecoEgamma
EgammaHLTProducers
interface
EgammaHLTElectronDetaDphiProducer.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: EgammaHLTProducers
4
// Class: EgammaHLTElectronDetaDphiProducer
5
//
8
//
9
// Original Author: Roberto Covarelli (CERN)
10
//
11
// $Id: EgammaHLTElectronDetaDphiProducer.h,v 1.5 2012/02/10 22:41:25 dmytro Exp $
12
//
13
//
14
15
16
// system include files
17
#include <memory>
18
19
// user include files
20
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
21
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
22
#include "
FWCore/Framework/interface/Event.h
"
23
#include "
FWCore/Framework/interface/MakerMacros.h
"
24
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
25
#include "
DataFormats/Common/interface/Handle.h
"
26
27
#include "
DataFormats/BeamSpot/interface/BeamSpot.h
"
28
#include "
DataFormats/EgammaCandidates/interface/ElectronFwd.h
"
29
#include "
DataFormats/RecoCandidate/interface/RecoEcalCandidateFwd.h
"
30
31
class
MagneticField
;
32
33
namespace
edm
{
34
class
ConfigurationDescriptions
;
35
}
36
37
class
EgammaHLTElectronDetaDphiProducer
:
public
edm::stream::EDProducer
<> {
38
public
:
39
explicit
EgammaHLTElectronDetaDphiProducer
(
const
edm::ParameterSet
&);
40
~
EgammaHLTElectronDetaDphiProducer
()
override
;
41
void
produce(
edm::Event
&,
const
edm::EventSetup
&)
override
;
42
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
43
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
44
45
private
:
46
std::pair<float,float> calDEtaDPhiSCTrk(
reco::ElectronRef
& eleref,
const
reco::BeamSpot::Point
& BSPosition,
const
MagneticField
*magField);
47
static
reco::ElectronRef
getEleRef(
const
reco::RecoEcalCandidateRef
& recoEcalCandRef,
const
edm::Handle<reco::ElectronCollection>
& electronHandle);
48
49
const
edm::EDGetTokenT<reco::ElectronCollection>
electronProducer_
;
50
const
edm::EDGetTokenT<reco::BeamSpot>
bsProducer_
;
51
const
edm::EDGetTokenT<reco::RecoEcalCandidateCollection>
recoEcalCandidateProducer_
;
52
53
const
bool
useSCRefs_
;
54
const
bool
useTrackProjectionToEcal_
;
55
const
bool
variablesAtVtx_
;
56
57
const
MagneticField
*
magField_
;
58
};
59
edm::Ref< ElectronCollection >
EgammaHLTElectronDetaDphiProducer::magField_
const MagneticField * magField_
Definition:
EgammaHLTElectronDetaDphiProducer.h:57
Event.h
EgammaHLTElectronDetaDphiProducer::variablesAtVtx_
const bool variablesAtVtx_
Definition:
EgammaHLTElectronDetaDphiProducer.h:55
MakerMacros.h
edm::Handle
Definition:
AssociativeIterator.h:47
EgammaHLTElectronDetaDphiProducer::useSCRefs_
const bool useSCRefs_
Definition:
EgammaHLTElectronDetaDphiProducer.h:53
MagneticField
Definition:
MagneticField.h:19
reco::BeamSpot::Point
math::XYZPoint Point
point in the space
Definition:
BeamSpot.h:29
edm::EDGetTokenT< reco::ElectronCollection >
Frameworkfwd.h
EgammaHLTElectronDetaDphiProducer
Definition:
EgammaHLTElectronDetaDphiProducer.h:37
ParameterSet.h
ElectronFwd.h
EDProducer.h
EgammaHLTElectronDetaDphiProducer::useTrackProjectionToEcal_
const bool useTrackProjectionToEcal_
Definition:
EgammaHLTElectronDetaDphiProducer.h:54
EgammaHLTElectronDetaDphiProducer::bsProducer_
const edm::EDGetTokenT< reco::BeamSpot > bsProducer_
Definition:
EgammaHLTElectronDetaDphiProducer.h:50
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EventSetup
Definition:
EventSetup.h:48
EgammaHLTElectronDetaDphiProducer::recoEcalCandidateProducer_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
Definition:
EgammaHLTElectronDetaDphiProducer.h:51
RecoEcalCandidateFwd.h
ConfigurationDescriptions
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm
HLT enums.
Definition:
AlignableModifier.h:17
BeamSpot.h
edm::ParameterSet
Definition:
ParameterSet.h:36
EgammaHLTElectronDetaDphiProducer::electronProducer_
const edm::EDGetTokenT< reco::ElectronCollection > electronProducer_
Definition:
EgammaHLTElectronDetaDphiProducer.h:49
edm::Event
Definition:
Event.h:69
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::Run
Definition:
Run.h:43
Handle.h
Generated for CMSSW Reference Manual by
1.8.11