CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PhotonConversionTrajectorySeedProducerFromQuadruplets Class Reference
Inheritance diagram for PhotonConversionTrajectorySeedProducerFromQuadruplets:
edm::stream::EDProducer<>

Public Member Functions

 PhotonConversionTrajectorySeedProducerFromQuadruplets (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~PhotonConversionTrajectorySeedProducerFromQuadruplets () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

std::string _newSeedCandidates
 
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo_theFinder
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 13 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

Constructor & Destructor Documentation

◆ PhotonConversionTrajectorySeedProducerFromQuadruplets()

PhotonConversionTrajectorySeedProducerFromQuadruplets::PhotonConversionTrajectorySeedProducerFromQuadruplets ( const edm::ParameterSet conf)

Definition at line 24 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, and _theFinder.

26  : _newSeedCandidates(conf.getParameter<std::string>("newSeedCandidates")) {
27  _theFinder = std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf, consumesCollector());
28  produces<TrajectorySeedCollection>(_newSeedCandidates);
29 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder

◆ ~PhotonConversionTrajectorySeedProducerFromQuadruplets()

PhotonConversionTrajectorySeedProducerFromQuadruplets::~PhotonConversionTrajectorySeedProducerFromQuadruplets ( )
inlineoverride

Member Function Documentation

◆ produce()

void PhotonConversionTrajectorySeedProducerFromQuadruplets::produce ( edm::Event ev,
const edm::EventSetup es 
)
override

Definition at line 31 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, _theFinder, makeMEIFBenchmarkPlots::ev, cppFunctionSkipper::exception, eostools::move(), mps_fire::result, and cms::Exception::what().

31  {
32  auto result = std::make_unique<TrajectorySeedCollection>();
33  try {
34  _theFinder->analyze(ev, es);
35  if (!_theFinder->getTrajectorySeedCollection()->empty())
36  result->insert(result->end(),
37  _theFinder->getTrajectorySeedCollection()->begin(),
38  _theFinder->getTrajectorySeedCollection()->end());
39  } catch (cms::Exception& er) {
40  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()
41  << std::endl;
42  } catch (std::exception& er) {
43  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()
44  << std::endl;
45  }
46 
47  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
49 }
Log< level::Error, false > LogError
Log< level::Info, false > LogInfo
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
char const * what() const noexcept override
Definition: Exception.cc:103
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ _newSeedCandidates

std::string PhotonConversionTrajectorySeedProducerFromQuadruplets::_newSeedCandidates
private

◆ _theFinder

std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo> PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder
private