CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TSGSmart Class Reference

#include <TSGSmart.h>

Inheritance diagram for TSGSmart:
TrackerSeedGenerator

Public Member Functions

 TSGSmart (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 
 ~TSGSmart () override
 
- Public Member Functions inherited from TrackerSeedGenerator
const edm::EventgetEvent () const
 
virtual void init (const MuonServiceProxy *service)
 
virtual void setEvent (const edm::Event &)
 
 TrackerSeedGenerator ()
 
virtual void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &)
 
virtual ~TrackerSeedGenerator ()
 destructor More...
 

Private Member Functions

void run (TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion &region) override
 

Private Attributes

edm::ParameterSet theConfig
 
double theEtaBound
 
std::unique_ptr< SeedGeneratorFromRegionHitstheMixedGenerator
 
std::unique_ptr< SeedGeneratorFromRegionHitsthePairGenerator
 
std::unique_ptr< SeedGeneratorFromRegionHitstheTripletGenerator
 

Additional Inherited Members

- Public Types inherited from TrackerSeedGenerator
typedef std::vector< TrajectorySeedBTSeedCollection
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
- Protected Attributes inherited from TrackerSeedGenerator
const edm::EventtheEvent
 
const MuonServiceProxytheProxyService
 

Detailed Description

Definition at line 11 of file TSGSmart.h.

Constructor & Destructor Documentation

◆ TSGSmart()

TSGSmart::TSGSmart ( const edm::ParameterSet pset,
edm::ConsumesCollector iC 
)

Definition at line 10 of file TSGSmart.cc.

References edm::ParameterSet::addParameter(), get, edm::ParameterSet::getParameter(), muonDTDigis_cfi::pset, AlCaHLTBitMon_QueryRunRegistry::string, theEtaBound, theMixedGenerator, thePairGenerator, and theTripletGenerator.

10  {
11  theEtaBound = pset.getParameter<double>("EtaBound");
12 
13  // FIXME??
14  edm::ParameterSet creatorPSet;
15  creatorPSet.addParameter<std::string>("propagator", "PropagatorWithMaterial");
16 
17  edm::ParameterSet PairPSet = pset.getParameter<edm::ParameterSet>("PixelPairGeneratorSet");
18  edm::ParameterSet pairhitsfactoryPSet = PairPSet.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
19  std::string pairhitsfactoryName = pairhitsfactoryPSet.getParameter<std::string>("ComponentName");
20 
21  thePairGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
22  OrderedHitsGeneratorFactory::get()->create(pairhitsfactoryName, pairhitsfactoryPSet, iC),
23  nullptr,
24  SeedCreatorFactory::get()->create("SeedFromConsecutiveHitsCreator", creatorPSet, edm::ConsumesCollector(iC)));
25 
26  edm::ParameterSet TripletPSet = pset.getParameter<edm::ParameterSet>("PixelTripletGeneratorSet");
27  edm::ParameterSet triplethitsfactoryPSet = TripletPSet.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
28  std::string triplethitsfactoryName = triplethitsfactoryPSet.getParameter<std::string>("ComponentName");
29 
30  theTripletGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
31  OrderedHitsGeneratorFactory::get()->create(triplethitsfactoryName, triplethitsfactoryPSet, iC),
32  nullptr,
33  SeedCreatorFactory::get()->create("SeedFromConsecutiveHitsCreator", creatorPSet, edm::ConsumesCollector(iC)));
34 
35  edm::ParameterSet MixedPSet = pset.getParameter<edm::ParameterSet>("MixedGeneratorSet");
36  edm::ParameterSet mixedhitsfactoryPSet = MixedPSet.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
37  std::string mixedhitsfactoryName = mixedhitsfactoryPSet.getParameter<std::string>("ComponentName");
38 
39  theMixedGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
40  OrderedHitsGeneratorFactory::get()->create(mixedhitsfactoryName, mixedhitsfactoryPSet, iC),
41  nullptr,
42  SeedCreatorFactory::get()->create("SeedFromConsecutiveHitsCreator", creatorPSet, edm::ConsumesCollector(iC)));
43 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
double theEtaBound
Definition: TSGSmart.h:29
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:136
std::unique_ptr< SeedGeneratorFromRegionHits > theTripletGenerator
Definition: TSGSmart.h:26
std::unique_ptr< SeedGeneratorFromRegionHits > thePairGenerator
Definition: TSGSmart.h:25
std::unique_ptr< SeedGeneratorFromRegionHits > theMixedGenerator
Definition: TSGSmart.h:27
#define get

◆ ~TSGSmart()

TSGSmart::~TSGSmart ( )
overridedefault

Member Function Documentation

◆ run()

void TSGSmart::run ( TrajectorySeedCollection seeds,
const edm::Event ev,
const edm::EventSetup es,
const TrackingRegion region 
)
overrideprivatevirtual

Reimplemented from TrackerSeedGenerator.

Definition at line 47 of file TSGSmart.cc.

References makeMEIFBenchmarkPlots::ev, nano_mu_digi_cff::region, HLT_2024v12_cff::seeds, theEtaBound, theMixedGenerator, thePairGenerator, and theTripletGenerator.

50  {
51  if (fabs(region.direction().eta()) > theEtaBound) {
52  theMixedGenerator->run(seeds, region, ev, es);
53  } else {
54  theTripletGenerator->run(seeds, region, ev, es);
55  if (seeds.empty())
56  thePairGenerator->run(seeds, region, ev, es);
57  }
58 }
double theEtaBound
Definition: TSGSmart.h:29
std::unique_ptr< SeedGeneratorFromRegionHits > theTripletGenerator
Definition: TSGSmart.h:26
std::unique_ptr< SeedGeneratorFromRegionHits > thePairGenerator
Definition: TSGSmart.h:25
std::unique_ptr< SeedGeneratorFromRegionHits > theMixedGenerator
Definition: TSGSmart.h:27

Member Data Documentation

◆ theConfig

edm::ParameterSet TSGSmart::theConfig
private

Definition at line 24 of file TSGSmart.h.

◆ theEtaBound

double TSGSmart::theEtaBound
private

Definition at line 29 of file TSGSmart.h.

Referenced by run(), and TSGSmart().

◆ theMixedGenerator

std::unique_ptr<SeedGeneratorFromRegionHits> TSGSmart::theMixedGenerator
private

Definition at line 27 of file TSGSmart.h.

Referenced by run(), and TSGSmart().

◆ thePairGenerator

std::unique_ptr<SeedGeneratorFromRegionHits> TSGSmart::thePairGenerator
private

Definition at line 25 of file TSGSmart.h.

Referenced by run(), and TSGSmart().

◆ theTripletGenerator

std::unique_ptr<SeedGeneratorFromRegionHits> TSGSmart::theTripletGenerator
private

Definition at line 26 of file TSGSmart.h.

Referenced by run(), and TSGSmart().