CMS 3D CMS Logo

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

#include <GlobalTrackingRegionProducer.h>

Inheritance diagram for GlobalTrackingRegionProducer:
TrackingRegionProducer

Public Member Functions

 GlobalTrackingRegionProducer (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
std::vector< std::unique_ptr< TrackingRegion > > regions (const edm::Event &, const edm::EventSetup &) const override
 
 ~GlobalTrackingRegionProducer () override
 
- Public Member Functions inherited from TrackingRegionProducer
virtual ~TrackingRegionProducer ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

GlobalPoint theOrigin
 
double theOriginHalfLength
 
double theOriginRadius
 
bool thePrecise
 
double thePtMin
 

Detailed Description

Definition at line 11 of file GlobalTrackingRegionProducer.h.

Constructor & Destructor Documentation

◆ GlobalTrackingRegionProducer()

GlobalTrackingRegionProducer::GlobalTrackingRegionProducer ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 13 of file GlobalTrackingRegionProducer.h.

13  {
14  edm::ParameterSet regionPSet = cfg.getParameter<edm::ParameterSet>("RegionPSet");
15 
16  thePtMin = regionPSet.getParameter<double>("ptMin");
17  theOriginRadius = regionPSet.getParameter<double>("originRadius");
18  theOriginHalfLength = regionPSet.getParameter<double>("originHalfLength");
19  double xPos = regionPSet.getParameter<double>("originXPos");
20  double yPos = regionPSet.getParameter<double>("originYPos");
21  double zPos = regionPSet.getParameter<double>("originZPos");
22  thePrecise = regionPSet.getParameter<bool>("precise");
23  theOrigin = GlobalPoint(xPos, yPos, zPos);
24  }

References looper::cfg, edm::ParameterSet::getParameter(), theOrigin, theOriginHalfLength, theOriginRadius, thePrecise, and thePtMin.

◆ ~GlobalTrackingRegionProducer()

GlobalTrackingRegionProducer::~GlobalTrackingRegionProducer ( )
inlineoverride

Definition at line 26 of file GlobalTrackingRegionProducer.h.

26 {}

Member Function Documentation

◆ fillDescriptions()

static void GlobalTrackingRegionProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 28 of file GlobalTrackingRegionProducer.h.

28  {
30 
31  desc.add<bool>("precise", true);
32  desc.add<bool>("useMultipleScattering", false);
33  desc.add<double>("originHalfLength", 21.2);
34  desc.add<double>("originRadius", 0.2);
35  desc.add<double>("originXPos", 0.0);
36  desc.add<double>("originYPos", 0.0);
37  desc.add<double>("originZPos", 0.0);
38  desc.add<double>("ptMin", 0.9);
39 
40  // Only for backwards-compatibility
42  descRegion.add<edm::ParameterSetDescription>("RegionPSet", desc);
43 
44  descriptions.add("globalTrackingRegion", descRegion);
45  }

References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().

◆ regions()

std::vector<std::unique_ptr<TrackingRegion> > GlobalTrackingRegionProducer::regions ( const edm::Event ,
const edm::EventSetup  
) const
inlineoverridevirtual

Implements TrackingRegionProducer.

Definition at line 47 of file GlobalTrackingRegionProducer.h.

47  {
48  std::vector<std::unique_ptr<TrackingRegion> > result;
49  result.push_back(
50  std::make_unique<GlobalTrackingRegion>(thePtMin, theOrigin, theOriginRadius, theOriginHalfLength, thePrecise));
51  return result;
52  }

References mps_fire::result, theOrigin, theOriginHalfLength, theOriginRadius, thePrecise, and thePtMin.

Member Data Documentation

◆ theOrigin

GlobalPoint GlobalTrackingRegionProducer::theOrigin
private

Definition at line 56 of file GlobalTrackingRegionProducer.h.

Referenced by GlobalTrackingRegionProducer(), and regions().

◆ theOriginHalfLength

double GlobalTrackingRegionProducer::theOriginHalfLength
private

Definition at line 58 of file GlobalTrackingRegionProducer.h.

Referenced by GlobalTrackingRegionProducer(), and regions().

◆ theOriginRadius

double GlobalTrackingRegionProducer::theOriginRadius
private

Definition at line 57 of file GlobalTrackingRegionProducer.h.

Referenced by GlobalTrackingRegionProducer(), and regions().

◆ thePrecise

bool GlobalTrackingRegionProducer::thePrecise
private

Definition at line 59 of file GlobalTrackingRegionProducer.h.

Referenced by GlobalTrackingRegionProducer(), and regions().

◆ thePtMin

double GlobalTrackingRegionProducer::thePtMin
private

Definition at line 55 of file GlobalTrackingRegionProducer.h.

Referenced by GlobalTrackingRegionProducer(), and regions().

edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
GlobalTrackingRegionProducer::thePrecise
bool thePrecise
Definition: GlobalTrackingRegionProducer.h:59
GlobalTrackingRegionProducer::thePtMin
double thePtMin
Definition: GlobalTrackingRegionProducer.h:55
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
edm::ParameterSet
Definition: ParameterSet.h:36
looper.cfg
cfg
Definition: looper.py:297
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
GlobalTrackingRegionProducer::theOrigin
GlobalPoint theOrigin
Definition: GlobalTrackingRegionProducer.h:56
GlobalTrackingRegionProducer::theOriginRadius
double theOriginRadius
Definition: GlobalTrackingRegionProducer.h:57
GlobalTrackingRegionProducer::theOriginHalfLength
double theOriginHalfLength
Definition: GlobalTrackingRegionProducer.h:58
mps_fire.result
result
Definition: mps_fire.py:303