Main Page
Namespaces
Classes
Package Documentation
RecoEgamma
EgammaElectronProducers
plugins
GsfElectronEcalDrivenProducer.cc
Go to the documentation of this file.
1
2
#include "
GsfElectronEcalDrivenProducer.h
"
3
#include "
RecoEgamma/EgammaElectronAlgos/interface/GsfElectronAlgo.h
"
4
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
6
#include "
FWCore/Framework/interface/MakerMacros.h
"
7
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
11
12
#include "
DataFormats/EgammaCandidates/interface/GsfElectronFwd.h
"
13
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
14
#include "
DataFormats/EgammaReco/interface/ElectronSeed.h
"
15
#include "
DataFormats/GsfTrackReco/interface/GsfTrack.h
"
16
#include "
DataFormats/TrackCandidate/interface/TrackCandidateCollection.h
"
17
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h
"
18
#include "
DataFormats/EgammaCandidates/interface/GsfElectronFwd.h
"
19
20
21
#include <iostream>
22
23
using namespace
reco
;
24
25
/* void GsfElectronEcalDrivenProducer::fillDescriptions( edm::ConfigurationDescriptions & descriptions )
26
{
27
edm::ParameterSetDescription desc ;
28
GsfElectronBaseProducer::fillDescription(desc) ;
29
30
// input collections
31
desc.add<edm::InputTag>("ecalDrivenGsfElectronCoresTag",edm::InputTag("ecalDrivenGsfElectronCores")) ;
32
33
// preselection parameters (ecal driven electrons)
34
desc.add<double>("minSCEtBarrel",4.0) ;
35
desc.add<double>("minSCEtEndcaps",4.0) ;
36
desc.add<double>("minEOverPBarrel",0.0) ;
37
desc.add<double>("maxEOverPBarrel",999999999.) ;
38
desc.add<double>("minEOverPEndcaps",0.0) ;
39
desc.add<double>("maxEOverPEndcaps",999999999.) ;
40
desc.add<double>("maxDeltaEtaBarrel",0.02) ;
41
desc.add<double>("maxDeltaEtaEndcaps",0.02) ;
42
desc.add<double>("maxDeltaPhiBarrel",0.15) ;
43
desc.add<double>("maxDeltaPhiEndcaps",0.15) ;
44
desc.add<double>("hOverEConeSize",0.15) ;
45
desc.add<double>("hOverEPtMin",0.) ;
46
desc.add<double>("maxHOverEBarrel",0.15) ;
47
desc.add<double>("maxHOverEEndcaps",0.15) ;
48
desc.add<double>("maxHBarrel",0.0) ;
49
desc.add<double>("maxHEndcaps",0.0) ;
50
desc.add<double>("maxSigmaIetaIetaBarrel",999999999.) ;
51
desc.add<double>("maxSigmaIetaIetaEndcaps",999999999.) ;
52
desc.add<double>("maxFbremBarrel",999999999.) ;
53
desc.add<double>("maxFbremEndcaps",999999999.) ;
54
desc.add<bool>("isBarrel",false) ;
55
desc.add<bool>("isEndcaps",false) ;
56
desc.add<bool>("isFiducial",false) ;
57
desc.add<bool>("seedFromTEC",true) ;
58
desc.add<double>("maxTIP",999999999.) ;
59
desc.add<double>("minMVA",-0.4) ;
60
61
descriptions.add("produceEcalDrivenGsfElectrons",desc) ;
62
}
63
*/
64
GsfElectronEcalDrivenProducer::GsfElectronEcalDrivenProducer
(
const
edm::ParameterSet
&
cfg
,
const
gsfAlgoHelpers::HeavyObjectCache
* hoc )
65
:
GsfElectronBaseProducer
(cfg,hoc)
66
{}
67
68
GsfElectronEcalDrivenProducer::~GsfElectronEcalDrivenProducer
()
69
{}
70
71
// ------------ method called to produce the data ------------
72
void
GsfElectronEcalDrivenProducer::produce
(
edm::Event
&
event
,
const
edm::EventSetup
&
setup
)
73
{
74
beginEvent
(event,setup) ;
75
algo_
->
completeElectrons
(globalCache()) ;
76
fillEvent
(event) ;
77
endEvent
() ;
78
}
79
80
MessageLogger.h
GsfElectronBaseProducer::fillEvent
void fillEvent(edm::Event &)
Definition:
GsfElectronBaseProducer.cc:408
TrackingRecHitFwd.h
MakerMacros.h
GsfElectronBaseProducer::algo_
GsfElectronAlgo * algo_
Definition:
GsfElectronBaseProducer.h:48
GsfElectronEcalDrivenProducer.h
GeneralSetup.setup
def setup(process, global_tag, zero_tesla=False)
Definition:
GeneralSetup.py:2
GsfElectronEcalDrivenProducer::GsfElectronEcalDrivenProducer
GsfElectronEcalDrivenProducer(const edm::ParameterSet &, const gsfAlgoHelpers::HeavyObjectCache *)
Definition:
GsfElectronEcalDrivenProducer.cc:64
GsfElectronAlgo::completeElectrons
void completeElectrons(const gsfAlgoHelpers::HeavyObjectCache *)
Definition:
GsfElectronAlgo.cc:954
Frameworkfwd.h
ParameterSet.h
ParameterSetDescription.h
GsfElectronEcalDrivenProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
GsfElectronEcalDrivenProducer.cc:72
edm::EventSetup
Definition:
EventSetup.h:51
GsfElectronEcalDrivenProducer::~GsfElectronEcalDrivenProducer
~GsfElectronEcalDrivenProducer() override
Definition:
GsfElectronEcalDrivenProducer.cc:68
looper.cfg
cfg
Definition:
looper.py:295
gsfAlgoHelpers::HeavyObjectCache
Definition:
GsfElectronAlgoHeavyObjectCache.h:10
TrackCandidateCollection.h
GsfElectron.h
GsfTrack.h
GsfElectronFwd.h
GsfElectronBaseProducer::beginEvent
void beginEvent(edm::Event &, const edm::EventSetup &)
Definition:
GsfElectronBaseProducer.cc:383
ElectronSeed.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
GsfElectronBaseProducer
Definition:
GsfElectronBaseProducer.h:29
edm::ParameterSet
Definition:
ParameterSet.h:36
ConfigurationDescriptions.h
edm::Event
Definition:
Event.h:70
GsfElectronAlgo.h
GsfElectronBaseProducer::endEvent
void endEvent()
Definition:
GsfElectronBaseProducer.cc:431
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.11