RecoTracker
ConversionSeedGenerators
plugins
PhotonConversionTrajectorySeedProducerFromQuadruplets.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
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
DataFormats/Common/interface/Handle.h
"
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
11
12
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
13
#include "
PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.h
"
14
15
class
PhotonConversionTrajectorySeedProducerFromQuadruplets
:
public
edm::stream::EDProducer
<> {
16
public
:
17
PhotonConversionTrajectorySeedProducerFromQuadruplets
(
const
edm::ParameterSet
&);
18
~PhotonConversionTrajectorySeedProducerFromQuadruplets
()
override
{}
19
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
20
21
private
:
22
std::string
_newSeedCandidates
;
23
std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>
_theFinder
;
24
};
25
26
PhotonConversionTrajectorySeedProducerFromQuadruplets::PhotonConversionTrajectorySeedProducerFromQuadruplets
(
27
const
edm::ParameterSet
& conf)
28
: _newSeedCandidates(conf.getParameter<
std
::
string
>(
"newSeedCandidates"
)) {
29
_theFinder
= std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf, consumesCollector());
30
produces<TrajectorySeedCollection>(
_newSeedCandidates
);
31
}
32
33
void
PhotonConversionTrajectorySeedProducerFromQuadruplets::produce
(
edm::Event
&
ev
,
const
edm::EventSetup
& es) {
34
auto
result
= std::make_unique<TrajectorySeedCollection>();
35
try
{
36
_theFinder
->analyze(
ev
, es);
37
if
(!
_theFinder
->getTrajectorySeedCollection()->empty())
38
result
->insert(
result
->end(),
39
_theFinder
->getTrajectorySeedCollection()->begin(),
40
_theFinder
->getTrajectorySeedCollection()->end());
41
}
catch
(
cms::Exception
& er) {
42
edm::LogError
(
"SeedingConversion"
) <<
" Problem in the Single Leg Conversion Seed Producer "
<< er.
what
()
43
<< std::endl;
44
}
catch
(
std::exception
& er) {
45
edm::LogError
(
"SeedingConversion"
) <<
" Problem in the Single Leg Conversion Seed Producer "
<< er.what()
46
<< std::endl;
47
}
48
49
edm::LogInfo
(
"debugTrajSeedFromQuadruplets"
) <<
" TrajectorySeedCollection size "
<<
result
->size();
50
ev
.put(
std::move
(
result
),
_newSeedCandidates
);
51
}
52
53
#include "
FWCore/Framework/interface/MakerMacros.h
"
54
DEFINE_FWK_MODULE
(
PhotonConversionTrajectorySeedProducerFromQuadruplets
);
Handle.h
MessageLogger.h
ESHandle.h
EDProducer.h
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
cms::Exception::what
char const * what() const noexcept override
Definition:
Exception.cc:103
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cppFunctionSkipper.exception
exception
Definition:
cppFunctionSkipper.py:10
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
PhotonConversionTrajectorySeedProducerFromQuadruplets::PhotonConversionTrajectorySeedProducerFromQuadruplets
PhotonConversionTrajectorySeedProducerFromQuadruplets(const edm::ParameterSet &)
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:26
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:57
PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:23
edm::LogError
Log< level::Error, false > LogError
Definition:
MessageLogger.h:123
InputTag.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
std
Definition:
JetResolutionObject.h:76
PhotonConversionTrajectorySeedProducerFromQuadruplets::_newSeedCandidates
std::string _newSeedCandidates
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:22
PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.h
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
EventSetup.h
Exception.h
mps_fire.result
result
Definition:
mps_fire.py:311
ConsumesCollector.h
cms::Exception
Definition:
Exception.h:70
ParameterSet.h
PhotonConversionTrajectorySeedProducerFromQuadruplets::~PhotonConversionTrajectorySeedProducerFromQuadruplets
~PhotonConversionTrajectorySeedProducerFromQuadruplets() override
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:18
edm::Event
Definition:
Event.h:73
PhotonConversionTrajectorySeedProducerFromQuadruplets::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:33
PhotonConversionTrajectorySeedProducerFromQuadruplets
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:15
Generated for CMSSW Reference Manual by
1.8.16