CMS 3D CMS Logo

PhotonConversionTrajectorySeedProducerFromQuadruplets.cc
Go to the documentation of this file.
5 
11 
14 
16 public:
19  void produce(edm::Event&, const edm::EventSetup&) override;
20 
21 private:
23  std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo> _theFinder;
24 };
25 
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 
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();
51 }
52 
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
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:36
edm::EventSetup
Definition: EventSetup.h:58
PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
Definition: PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:23
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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:97
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