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::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 PhotonConversionTrajectorySeedProducerFromSingleLeg (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~PhotonConversionTrajectorySeedProducerFromSingleLeg ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- 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 ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool _DoxcheckSeedCandidates
 
std::string _newSeedCandidates
 
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo_theFinder
 
std::string _xcheckSeedCandidates
 

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, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 29 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

References _DoxcheckSeedCandidates, _newSeedCandidates, _theFinder, _xcheckSeedCandidates, and edm::EDConsumerBase::consumesCollector().

30  : _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates")),
31  _xcheckSeedCandidates(conf.getParameter<std::string>( "xcheckSeedCandidates") ),
32  _DoxcheckSeedCandidates( conf.getParameter<bool>( "DoxcheckSeedCandidates") )
33 {
36  produces<TrajectorySeedCollection>(_newSeedCandidates);
38  produces<TrajectorySeedCollection>(_xcheckSeedCandidates);
39 }
T getParameter(std::string const &) const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder
PhotonConversionTrajectorySeedProducerFromSingleLeg::~PhotonConversionTrajectorySeedProducerFromSingleLeg ( )
inline

Definition at line 18 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

18 {}

Member Function Documentation

void PhotonConversionTrajectorySeedProducerFromSingleLeg::produce ( edm::Event ev,
const edm::EventSetup es 
)
overridevirtual

Implements edm::stream::EDProducerBase.

Definition at line 42 of file PhotonConversionTrajectorySeedProducerFromSingleLeg.cc.

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

43 {
44  //TimeMe myTest("PhotonConversionTrajectorySeedProducerFromSingleLeg::produce");
45 
46  //FIXME
47  //remove this
48  //edm::CPUTimer cpu_timer;
49  //cpu_timer.start();
50  //--------------------------------------
51 
52 
53  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );
54  //try{
55  _theFinder->analyze(ev,es);
57  result->insert(result->end(),
60  //}catch(cms::Exception& er){
61  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
62  //}catch(std::exception& er){
63  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
64  //}
65 
66 
67  //edm::LogInfo("debugTrajSeedFromSingleLeg") << " TrajectorySeedCollection size " << result->size();
69 
70  //FIXME
71  //remove this
72  //cpu_timer.stop();
73  //std::cout << "cpu timer " << cpu_timer.realTime() << " " << cpu_timer.cpuTime() << std::endl;
74  //--------------------------------------
75 
76  //FIXME
77  //This is a check part that can be removed
78 
80  return;
81 
82 
83 
84  std::auto_ptr<TrajectorySeedCollection> resultCheck( new TrajectorySeedCollection() );
86  resultCheck->insert(resultCheck->end(),
89  ev.put(resultCheck , _xcheckSeedCandidates);
90 
91 }
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
tuple result
Definition: query.py:137
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder

Member Data Documentation

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