CMS 3D CMS Logo

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

#include <HitTripletGenerator.h>

Inheritance diagram for HitTripletGenerator:
OrderedHitsGenerator CombinedHitTripletGenerator

Public Member Functions

void clear () final
 
 HitTripletGenerator (unsigned int size=500)
 
 HitTripletGenerator (HitTripletGenerator const &other)
 
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
 
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
const OrderedHitTripletsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
 ~HitTripletGenerator () override
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Attributes

edm::RunningAverage localRA
 
OrderedHitTriplets theTriplets
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 20 of file HitTripletGenerator.h.

Constructor & Destructor Documentation

◆ HitTripletGenerator() [1/2]

HitTripletGenerator::HitTripletGenerator ( unsigned int  size = 500)

Definition at line 3 of file HitTripletGenerator.cc.

3 : localRA(nSize) {}
edm::RunningAverage localRA

◆ HitTripletGenerator() [2/2]

HitTripletGenerator::HitTripletGenerator ( HitTripletGenerator const &  other)
inline

Definition at line 23 of file HitTripletGenerator.h.

23 : localRA(other.localRA.mean()) {}
edm::RunningAverage localRA

◆ ~HitTripletGenerator()

HitTripletGenerator::~HitTripletGenerator ( )
inlineoverride

Definition at line 25 of file HitTripletGenerator.h.

25 {}

Member Function Documentation

◆ clear()

void HitTripletGenerator::clear ( void  )
finalvirtual

Reimplemented from OrderedHitsGenerator.

Definition at line 17 of file HitTripletGenerator.cc.

References theTriplets.

17  {
18  theTriplets.clear();
19  theTriplets.shrink_to_fit();
20 }
OrderedHitTriplets theTriplets

◆ hitTriplets() [1/2]

virtual void HitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::EventSetup es 
)
inlinevirtual

Definition at line 30 of file HitTripletGenerator.h.

Referenced by run().

30 {}

◆ hitTriplets() [2/2]

virtual void HitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual

Implemented in CombinedHitTripletGenerator.

◆ run()

const OrderedHitTriplets & HitTripletGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
finalvirtual

Implements OrderedHitsGenerator.

Definition at line 5 of file HitTripletGenerator.cc.

References cms::cuda::assert(), makeMEIFBenchmarkPlots::ev, hitTriplets(), localRA, HLT_2023v12_cff::region, OrderedHitTriplets::size(), theTriplets, edm::RunningAverage::update(), and edm::RunningAverage::upper().

7  {
8  assert(theTriplets.empty());
9  assert(theTriplets.capacity() == 0);
10  theTriplets.reserve(localRA.upper());
13  theTriplets.shrink_to_fit();
14  return theTriplets;
15 }
OrderedHitTriplets theTriplets
assert(be >=bs)
edm::RunningAverage localRA
virtual void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
unsigned int size() const override
void update(unsigned int q)

Member Data Documentation

◆ localRA

edm::RunningAverage HitTripletGenerator::localRA
private

Definition at line 41 of file HitTripletGenerator.h.

Referenced by run().

◆ theTriplets

OrderedHitTriplets HitTripletGenerator::theTriplets
private

Definition at line 40 of file HitTripletGenerator.h.

Referenced by clear(), and run().