CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Attributes
MultiHitGenerator Class Referenceabstract

#include <MultiHitGenerator.h>

Inheritance diagram for MultiHitGenerator:
OrderedHitsGenerator CombinedMultiHitGenerator

Public Member Functions

void clear () override
 
virtual void hitSets (const TrackingRegion &reg, OrderedMultiHits &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
virtual void hitSets (const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
 
 MultiHitGenerator (MultiHitGenerator const &other)
 
 MultiHitGenerator (unsigned int size=400)
 
const OrderedMultiHitsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
 ~MultiHitGenerator () override
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Protected Attributes

edm::RunningAverage localRA
 

Private Attributes

OrderedMultiHits theHitSets
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 22 of file MultiHitGenerator.h.

Constructor & Destructor Documentation

◆ MultiHitGenerator() [1/2]

MultiHitGenerator::MultiHitGenerator ( unsigned int  size = 400)
inline

Definition at line 24 of file MultiHitGenerator.h.

24 : localRA(size) {}

◆ MultiHitGenerator() [2/2]

MultiHitGenerator::MultiHitGenerator ( MultiHitGenerator const &  other)
inline

Definition at line 25 of file MultiHitGenerator.h.

25 : localRA(other.localRA.mean()) {}

◆ ~MultiHitGenerator()

MultiHitGenerator::~MultiHitGenerator ( )
inlineoverride

Definition at line 27 of file MultiHitGenerator.h.

27 {}

Member Function Documentation

◆ clear()

void MultiHitGenerator::clear ( void  )
overridevirtual

Reimplemented from OrderedHitsGenerator.

Reimplemented in CombinedMultiHitGenerator.

Definition at line 16 of file MultiHitGenerator.cc.

16  {
17  theHitSets.clear();
18  theHitSets.shrink_to_fit();
19 }

References theHitSets.

Referenced by CombinedMultiHitGenerator::clear().

◆ hitSets() [1/2]

virtual void MultiHitGenerator::hitSets ( const TrackingRegion reg,
OrderedMultiHits prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual

Implemented in CombinedMultiHitGenerator.

◆ hitSets() [2/2]

virtual void MultiHitGenerator::hitSets ( const TrackingRegion reg,
OrderedMultiHits prs,
const edm::EventSetup es 
)
inlinevirtual

Definition at line 32 of file MultiHitGenerator.h.

32 {}

Referenced by run().

◆ run()

const OrderedMultiHits & MultiHitGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
finalvirtual

Implements OrderedHitsGenerator.

Definition at line 5 of file MultiHitGenerator.cc.

7  {
8  theHitSets.clear(); // called multiple time for the same seed collection
9  theHitSets.reserve(localRA.upper());
10  hitSets(region, theHitSets, ev, es);
11  theHitSets.shrink_to_fit();
13  return theHitSets;
14 }

References ev, hitSets(), localRA, HLT_FULL_cff::region, OrderedMultiHits::size(), theHitSets, edm::RunningAverage::update(), and edm::RunningAverage::upper().

Member Data Documentation

◆ localRA

edm::RunningAverage MultiHitGenerator::localRA
protected

Definition at line 45 of file MultiHitGenerator.h.

Referenced by run().

◆ theHitSets

OrderedMultiHits MultiHitGenerator::theHitSets
private

Definition at line 42 of file MultiHitGenerator.h.

Referenced by clear(), and run().

trackingPlots.other
other
Definition: trackingPlots.py:1467
edm::RunningAverage::update
void update(unsigned int q)
Definition: RunningAverage.h:35
MultiHitGenerator::localRA
edm::RunningAverage localRA
Definition: MultiHitGenerator.h:45
OrderedMultiHits::size
unsigned int size() const override
Definition: OrderedMultiHits.h:12
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88272
edm::RunningAverage::upper
int upper() const
Definition: RunningAverage.h:30
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
MultiHitGenerator::hitSets
virtual void hitSets(const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
Definition: MultiHitGenerator.h:32
MultiHitGenerator::theHitSets
OrderedMultiHits theHitSets
Definition: MultiHitGenerator.h:42
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443