CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PhotonConversionTrajectorySeedProducerFromSingleLeg Class Reference
Inheritance diagram for PhotonConversionTrajectorySeedProducerFromSingleLeg:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginRun (edm::Run const &run, const edm::EventSetup &es) override
 
void endRun (edm::Run const &run, const edm::EventSetup &es) override
 
 PhotonConversionTrajectorySeedProducerFromSingleLeg (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~PhotonConversionTrajectorySeedProducerFromSingleLeg ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

edm::ParameterSet _conf
 
bool _DoxcheckSeedCandidates
 
std::string _newSeedCandidates
 
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo_theFinder
 
std::string _xcheckSeedCandidates
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 15 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

Constructor & Destructor Documentation

PhotonConversionTrajectorySeedProducerFromSingleLeg::PhotonConversionTrajectorySeedProducerFromSingleLeg ( const edm::ParameterSet conf)

Definition at line 32 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

References _DoxcheckSeedCandidates, _newSeedCandidates, _theFinder, and _xcheckSeedCandidates.

33  : _conf(conf),
34  _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates")),
35  _xcheckSeedCandidates(conf.getParameter<std::string>( "xcheckSeedCandidates") ),
36  _DoxcheckSeedCandidates( conf.getParameter<bool>( "DoxcheckSeedCandidates") )
37 {
39  produces<TrajectorySeedCollection>(_newSeedCandidates);
41  produces<TrajectorySeedCollection>(_xcheckSeedCandidates);
42 }
T getParameter(std::string const &) const
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder
PhotonConversionTrajectorySeedProducerFromSingleLeg::~PhotonConversionTrajectorySeedProducerFromSingleLeg ( )
inline

Definition at line 18 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

18 {}

Member Function Documentation

void PhotonConversionTrajectorySeedProducerFromSingleLeg::beginRun ( edm::Run const &  run,
const edm::EventSetup es 
)
overridevirtual
void PhotonConversionTrajectorySeedProducerFromSingleLeg::endRun ( edm::Run const &  run,
const edm::EventSetup es 
)
overridevirtual
void PhotonConversionTrajectorySeedProducerFromSingleLeg::produce ( edm::Event ev,
const edm::EventSetup es 
)
overridevirtual

Implements edm::EDProducer.

Definition at line 57 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

References _DoxcheckSeedCandidates, _newSeedCandidates, _theFinder, _xcheckSeedCandidates, PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::analyze(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::getTrajectorySeedCollection(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::getTrajectorySeedCollectionOfSourceTracks(), edm::Event::put(), and query::result.

58 {
59  //TimeMe myTest("PhotonConversionTrajectorySeedProducerFromSingleLeg::produce");
60 
61  //FIXME
62  //remove this
63  //edm::CPUTimer cpu_timer;
64  //cpu_timer.start();
65  //--------------------------------------
66 
67 
68  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );
69  //try{
70  _theFinder->analyze(ev,es);
72  result->insert(result->end(),
75  //}catch(cms::Exception& er){
76  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
77  //}catch(std::exception& er){
78  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
79  //}
80 
81 
82  //edm::LogInfo("debugTrajSeedFromSingleLeg") << " TrajectorySeedCollection size " << result->size();
84 
85  //FIXME
86  //remove this
87  //cpu_timer.stop();
88  //std::cout << "cpu timer " << cpu_timer.realTime() << " " << cpu_timer.cpuTime() << std::endl;
89  //--------------------------------------
90 
91  //FIXME
92  //This is a check part that can be removed
93 
95  return;
96 
97 
98 
99  std::auto_ptr<TrajectorySeedCollection> resultCheck( new TrajectorySeedCollection() );
101  resultCheck->insert(resultCheck->end(),
104  ev.put(resultCheck , _xcheckSeedCandidates);
105 
106 }
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
tuple result
Definition: query.py:137
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder

Member Data Documentation

edm::ParameterSet PhotonConversionTrajectorySeedProducerFromSingleLeg::_conf
private
bool PhotonConversionTrajectorySeedProducerFromSingleLeg::_DoxcheckSeedCandidates
private
std::string PhotonConversionTrajectorySeedProducerFromSingleLeg::_newSeedCandidates
private
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo* PhotonConversionTrajectorySeedProducerFromSingleLeg::_theFinder
private
std::string PhotonConversionTrajectorySeedProducerFromSingleLeg::_xcheckSeedCandidates
private