CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 15 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

Constructor & Destructor Documentation

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

Definition at line 26 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, and _theFinder.

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

Member Function Documentation

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

Definition at line 33 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, _theFinder, cppFunctionSkipper::exception, eostools::move(), edm::Event::put(), mps_fire::result, and cms::Exception::what().

33  {
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 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
Log< level::Error, false > LogError
tuple result
Definition: mps_fire.py:311
def move
Definition: eostools.py:511
char const * what() const noexceptoverride
Definition: Exception.cc:103
Log< level::Info, false > LogInfo
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder

Member Data Documentation

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