CMS 3D CMS Logo

Public Member Functions | Private Attributes

PhotonConversionTrajectorySeedProducerFromQuadruplets Class Reference

Inheritance diagram for PhotonConversionTrajectorySeedProducerFromQuadruplets:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

void beginRun (edm::Run &run, const edm::EventSetup &es)
void endRun (edm::Run &run, const edm::EventSetup &es)
 PhotonConversionTrajectorySeedProducerFromQuadruplets (const edm::ParameterSet &)
void produce (edm::Event &, const edm::EventSetup &)
 ~PhotonConversionTrajectorySeedProducerFromQuadruplets ()

Private Attributes

edm::ParameterSet _conf
std::string _newSeedCandidates
PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo_theFinder

Detailed Description

Definition at line 15 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.


Constructor & Destructor Documentation

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

Definition at line 31 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, and _theFinder.

  : _conf(conf),
    _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates"))
{
  _theFinder = new PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo(conf);
  produces<TrajectorySeedCollection>(_newSeedCandidates);

}
PhotonConversionTrajectorySeedProducerFromQuadruplets::~PhotonConversionTrajectorySeedProducerFromQuadruplets ( ) [inline]

Member Function Documentation

void PhotonConversionTrajectorySeedProducerFromQuadruplets::beginRun ( edm::Run run,
const edm::EventSetup es 
) [virtual]
void PhotonConversionTrajectorySeedProducerFromQuadruplets::endRun ( edm::Run run,
const edm::EventSetup es 
) [virtual]
void PhotonConversionTrajectorySeedProducerFromQuadruplets::produce ( edm::Event ev,
const edm::EventSetup es 
) [virtual]

Implements edm::EDProducer.

Definition at line 53 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.

References _newSeedCandidates, _theFinder, PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::analyze(), exception, PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::getTrajectorySeedCollection(), edm::Event::put(), query::result, and cms::Exception::what().

{
  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );  
  try{
    _theFinder->analyze(ev,es);
    if(_theFinder->getTrajectorySeedCollection()->size())
      result->insert(result->end(),
                     _theFinder->getTrajectorySeedCollection()->begin(),
                     _theFinder->getTrajectorySeedCollection()->end());
  }catch(cms::Exception& er){
    edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
  }catch(std::exception& er){
    edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
  }

  
  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
  ev.put(result, _newSeedCandidates);  
}

Member Data Documentation