RecoTracker
ConversionSeedGenerators
plugins
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
2
#include "
FWCore/Utilities/interface/InputTag.h
"
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
FWCore/Utilities/interface/Visibility.h
"
6
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "
DataFormats/Common/interface/Handle.h
"
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
12
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
13
#include "
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h
"
14
//#include "UserUtilities/TimingPerformance/interface/TimeReport.h"
15
16
class
dso_hidden
PhotonConversionTrajectorySeedProducerFromSingleLeg
final :
public
edm::stream::EDProducer
<> {
17
public
:
18
PhotonConversionTrajectorySeedProducerFromSingleLeg
(
const
edm::ParameterSet
&);
19
~PhotonConversionTrajectorySeedProducerFromSingleLeg
()
override
{
delete
_theFinder; }
20
PhotonConversionTrajectorySeedProducerFromSingleLeg
(
const
PhotonConversionTrajectorySeedProducerFromSingleLeg
&) =
21
delete
;
22
PhotonConversionTrajectorySeedProducerFromSingleLeg
&
operator=
(
23
const
PhotonConversionTrajectorySeedProducerFromSingleLeg
&) =
delete
;
24
void
produce(
edm::Event
&,
const
edm::EventSetup
&)
override
;
25
26
private
:
27
std::string
_newSeedCandidates
;
28
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo
*
_theFinder
;
29
};
30
31
PhotonConversionTrajectorySeedProducerFromSingleLeg::PhotonConversionTrajectorySeedProducerFromSingleLeg
(
32
const
edm::ParameterSet
& conf)
33
: _newSeedCandidates(conf.getParameter<
std
::
string
>(
"newSeedCandidates"
)) {
34
_theFinder
=
new
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo
(conf, consumesCollector());
35
produces<TrajectorySeedCollection>(
_newSeedCandidates
);
36
}
37
38
void
PhotonConversionTrajectorySeedProducerFromSingleLeg::produce
(
edm::Event
&
ev
,
const
edm::EventSetup
& es) {
39
auto
result
= std::make_unique<TrajectorySeedCollection>();
40
41
_theFinder
->
find
(
ev
, es, *
result
);
42
result
->shrink_to_fit();
43
ev
.put(
std::move
(
result
),
_newSeedCandidates
);
44
}
45
46
#include "
FWCore/Framework/interface/MakerMacros.h
"
47
DEFINE_FWK_MODULE
(
PhotonConversionTrajectorySeedProducerFromSingleLeg
);
edm::stream::EDProducer::operator=
const EDProducer & operator=(const EDProducer &)=delete
Handle.h
Visibility.h
MessageLogger.h
PhotonConversionTrajectorySeedProducerFromSingleLeg::_theFinder
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:28
ESHandle.h
PhotonConversionTrajectorySeedProducerFromSingleLeg::_newSeedCandidates
std::string _newSeedCandidates
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:27
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::find
void find(const edm::Event &event, const edm::EventSetup &setup, TrajectorySeedCollection &output)
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.cc:40
PhotonConversionTrajectorySeedProducerFromSingleLeg::~PhotonConversionTrajectorySeedProducerFromSingleLeg
~PhotonConversionTrajectorySeedProducerFromSingleLeg() override
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:19
EDProducer.h
PhotonConversionTrajectorySeedProducerFromSingleLeg::PhotonConversionTrajectorySeedProducerFromSingleLeg
PhotonConversionTrajectorySeedProducerFromSingleLeg(const edm::ParameterSet &)
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:31
PhotonConversionTrajectorySeedProducerFromSingleLeg::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:38
MakerMacros.h
PhotonConversionTrajectorySeedProducerFromSingleLeg
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc:16
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo
Definition:
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:33
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
dso_hidden
#define dso_hidden
Definition:
Visibility.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:58
InputTag.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
std
Definition:
JetResolutionObject.h:76
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
EventSetup.h
Exception.h
mps_fire.result
result
Definition:
mps_fire.py:311
ParameterSet.h
edm::Event
Definition:
Event.h:73
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h
Generated for CMSSW Reference Manual by
1.8.16