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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

std::string _newSeedCandidates
 
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo_theFinder
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 15 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

Constructor & Destructor Documentation

◆ PhotonConversionTrajectorySeedProducerFromQuadruplets()

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

Definition at line 26 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

28  : _newSeedCandidates(conf.getParameter<std::string>("newSeedCandidates")) {
29  _theFinder = std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf, consumesCollector());
30  produces<TrajectorySeedCollection>(_newSeedCandidates);
31 }

References _newSeedCandidates, and _theFinder.

◆ ~PhotonConversionTrajectorySeedProducerFromQuadruplets()

PhotonConversionTrajectorySeedProducerFromQuadruplets::~PhotonConversionTrajectorySeedProducerFromQuadruplets ( )
inlineoverride

Member Function Documentation

◆ produce()

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

Definition at line 33 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

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 }

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

Member Data Documentation

◆ _newSeedCandidates

std::string PhotonConversionTrajectorySeedProducerFromQuadruplets::_newSeedCandidates
private

◆ _theFinder

std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo> PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder
private
edm::LogInfo
Definition: MessageLogger.h:254
cms::Exception::what
char const * what() const noexcept override
Definition: Exception.cc:103
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
edm::LogError
Definition: MessageLogger.h:183
PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
Definition: PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:23
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
PhotonConversionTrajectorySeedProducerFromQuadruplets::_newSeedCandidates
std::string _newSeedCandidates
Definition: PhotonConversionTrajectorySeedProducerFromQuadruplets.cc:22
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
mps_fire.result
result
Definition: mps_fire.py:303
cms::Exception
Definition: Exception.h:70