CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
CombinedHitQuadrupletGeneratorForPhotonConversion Class Reference

#include <CombinedHitQuadrupletGeneratorForPhotonConversion.h>

Inheritance diagram for CombinedHitQuadrupletGeneratorForPhotonConversion:
HitPairGenerator OrderedHitsGenerator

Public Types

typedef LayerHitMapCache LayerCacheType
 

Public Member Functions

void clearLayerCache ()
 
virtual
CombinedHitQuadrupletGeneratorForPhotonConversion
clone () const
 from base class More...
 
 CombinedHitQuadrupletGeneratorForPhotonConversion (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
 
virtual void hitPairs (const TrackingRegion &, OrderedHitPairs &, const edm::Event &, const edm::EventSetup &)
 form base class More...
 
const OrderedHitPairsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
 
void setSeedingLayers (SeedingLayerSetsHits::SeedingLayerSet layers) override
 
virtual ~CombinedHitQuadrupletGeneratorForPhotonConversion ()
 
- Public Member Functions inherited from HitPairGenerator
virtual void clear () final
 
virtual HitDoublets doublets (const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es)
 
 HitPairGenerator (unsigned int size=4000)
 
 HitPairGenerator (HitPairGenerator const &other)
 
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &es)
 
virtual ~HitPairGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Member Functions

 CombinedHitQuadrupletGeneratorForPhotonConversion (const CombinedHitQuadrupletGeneratorForPhotonConversion &cb)
 

Private Attributes

std::unique_ptr
< HitQuadrupletGeneratorFromLayerPairForPhotonConversion
theGenerator
 
LayerCacheType theLayerCache
 
OrderedHitPairs thePairs
 
edm::EDGetTokenT
< SeedingLayerSetsHits
theSeedingLayerToken
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Hides set of HitQuadrupletGeneratorFromLayerPairForPhotonConversion generators.

Definition at line 23 of file CombinedHitQuadrupletGeneratorForPhotonConversion.h.

Member Typedef Documentation

Constructor & Destructor Documentation

CombinedHitQuadrupletGeneratorForPhotonConversion::CombinedHitQuadrupletGeneratorForPhotonConversion ( const edm::ParameterSet cfg,
edm::ConsumesCollector iC 
)

Definition at line 7 of file CombinedHitQuadrupletGeneratorForPhotonConversion.cc.

References edm::ParameterSet::getParameter(), theGenerator, theLayerCache, and OrderedHitsGenerator::theMaxElement.

Referenced by clone().

CombinedHitQuadrupletGeneratorForPhotonConversion::~CombinedHitQuadrupletGeneratorForPhotonConversion ( )
virtual

Definition at line 22 of file CombinedHitQuadrupletGeneratorForPhotonConversion.cc.

22 {}
CombinedHitQuadrupletGeneratorForPhotonConversion::CombinedHitQuadrupletGeneratorForPhotonConversion ( const CombinedHitQuadrupletGeneratorForPhotonConversion cb)
private

Member Function Documentation

void CombinedHitQuadrupletGeneratorForPhotonConversion::clearLayerCache ( )
inline
virtual CombinedHitQuadrupletGeneratorForPhotonConversion* CombinedHitQuadrupletGeneratorForPhotonConversion::clone ( void  ) const
inlinevirtual

from base class

Implements HitPairGenerator.

Definition at line 37 of file CombinedHitQuadrupletGeneratorForPhotonConversion.h.

References CombinedHitQuadrupletGeneratorForPhotonConversion().

CombinedHitQuadrupletGeneratorForPhotonConversion(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
void CombinedHitQuadrupletGeneratorForPhotonConversion::hitPairs ( const TrackingRegion region,
OrderedHitPairs result,
const edm::Event ev,
const edm::EventSetup es 
)
virtual

form base class

Implements HitPairGenerator.

Definition at line 36 of file CombinedHitQuadrupletGeneratorForPhotonConversion.cc.

References assert(), LayerHitMapCache::clear(), edm::Event::getByToken(), i, OrderedHitPairs::size(), theGenerator, theLayerCache, and theSeedingLayerToken.

Referenced by run().

38 {
39  size_t maxHitQuadruplets=1000000;
41  ev.getByToken(theSeedingLayerToken, hlayers);
42  assert(hlayers->numberOfLayersInSet() == 2);
43 
44  for(SeedingLayerSetsHits::LayerSetIndex i=0; i<hlayers->size() && result.size() < maxHitQuadruplets; ++i) {
45  theGenerator->setSeedingLayers((*hlayers)[i]);
46  theGenerator->hitPairs( region, result, ev, es);
47  }
49 }
int i
Definition: DBlmapReader.cc:9
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
unsigned short LayerSetIndex
assert(m_qm.get())
virtual unsigned int size() const
std::unique_ptr< HitQuadrupletGeneratorFromLayerPairForPhotonConversion > theGenerator
const OrderedHitPairs & CombinedHitQuadrupletGeneratorForPhotonConversion::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
virtual

Reimplemented from HitPairGenerator.

Definition at line 28 of file CombinedHitQuadrupletGeneratorForPhotonConversion.cc.

References hitPairs(), and thePairs.

29 {
30  thePairs.clear();
31  hitPairs(region, thePairs, ev, es);
32  return thePairs;
33 }
virtual void hitPairs(const TrackingRegion &, OrderedHitPairs &, const edm::Event &, const edm::EventSetup &)
form base class
void CombinedHitQuadrupletGeneratorForPhotonConversion::setSeedingLayers ( SeedingLayerSetsHits::SeedingLayerSet  layers)
overridevirtual

Implements HitPairGenerator.

Definition at line 24 of file CombinedHitQuadrupletGeneratorForPhotonConversion.cc.

References assert().

24  {
25  assert(0 == "not implemented");
26 }
assert(m_qm.get())

Member Data Documentation

std::unique_ptr<HitQuadrupletGeneratorFromLayerPairForPhotonConversion> CombinedHitQuadrupletGeneratorForPhotonConversion::theGenerator
private
LayerCacheType CombinedHitQuadrupletGeneratorForPhotonConversion::theLayerCache
private
OrderedHitPairs CombinedHitQuadrupletGeneratorForPhotonConversion::thePairs
private

Definition at line 55 of file CombinedHitQuadrupletGeneratorForPhotonConversion.h.

Referenced by run().

edm::EDGetTokenT<SeedingLayerSetsHits> CombinedHitQuadrupletGeneratorForPhotonConversion::theSeedingLayerToken
private

Definition at line 49 of file CombinedHitQuadrupletGeneratorForPhotonConversion.h.

Referenced by hitPairs().