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 hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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 16 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

Constructor & Destructor Documentation

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

Definition at line 29 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, and _theFinder.

30  : _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates"))
31 {
32  _theFinder = std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf,
33  consumesCollector());
34  produces<TrajectorySeedCollection>(_newSeedCandidates);
35 
36 }
T getParameter(std::string const &) const
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
PhotonConversionTrajectorySeedProducerFromQuadruplets::~PhotonConversionTrajectorySeedProducerFromQuadruplets ( )
inlineoverride

Definition at line 19 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References produce().

19 {}

Member Function Documentation

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

Definition at line 38 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

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

Referenced by ~PhotonConversionTrajectorySeedProducerFromQuadruplets().

39 {
40  auto result = std::make_unique<TrajectorySeedCollection>();
41  try{
42  _theFinder->analyze(ev,es);
43  if(!_theFinder->getTrajectorySeedCollection()->empty())
44  result->insert(result->end(),
45  _theFinder->getTrajectorySeedCollection()->begin(),
46  _theFinder->getTrajectorySeedCollection()->end());
47  }catch(cms::Exception& er){
48  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
49  }catch(std::exception& er){
50  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
51  }
52 
53 
54  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
56 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
char const * what() const override
Definition: Exception.cc:141
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
def move(src, dest)
Definition: eostools.py:510

Member Data Documentation

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