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 |
Definition at line 15 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
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] |
Definition at line 18 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
{}
void PhotonConversionTrajectorySeedProducerFromQuadruplets::beginRun | ( | edm::Run & | run, |
const edm::EventSetup & | es | ||
) | [virtual] |
Reimplemented from edm::EDProducer.
Definition at line 47 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
References _theFinder, and PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::init().
{ _theFinder->init(); }
void PhotonConversionTrajectorySeedProducerFromQuadruplets::endRun | ( | edm::Run & | run, |
const edm::EventSetup & | es | ||
) | [virtual] |
Reimplemented from edm::EDProducer.
Definition at line 42 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
References _theFinder, and PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::clear().
{ _theFinder->clear(); }
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); }
Definition at line 24 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
std::string PhotonConversionTrajectorySeedProducerFromQuadruplets::_newSeedCandidates [private] |
Definition at line 25 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
Referenced by PhotonConversionTrajectorySeedProducerFromQuadruplets(), and produce().
PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo* PhotonConversionTrajectorySeedProducerFromQuadruplets::_theFinder [private] |
Definition at line 26 of file PhotonConversionTrajectorySeedProducerFromQuadruplets.cc.
Referenced by beginRun(), endRun(), PhotonConversionTrajectorySeedProducerFromQuadruplets(), and produce().