CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrackingRecHitNoSmearingPlugin Class Reference
Inheritance diagram for TrackingRecHitNoSmearingPlugin:
TrackingRecHitAlgorithm

Public Member Functions

TrackingRecHitProductPtr process (TrackingRecHitProductPtr product) const override
 
 TrackingRecHitNoSmearingPlugin (const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector)
 
- Public Member Functions inherited from TrackingRecHitAlgorithm
virtual void beginEvent (edm::Event &event, const edm::EventSetup &eventSetup)
 
virtual void beginRun (edm::Run const &run, const edm::EventSetup &eventSetup, const SiPixelTemplateDBObject *pixelTemplateDBObjectPtr, std::vector< SiPixelTemplateStore > &tempStoreRef)
 
virtual void beginStream (const edm::StreamID &id)
 
virtual void endEvent (edm::Event &event, const edm::EventSetup &eventSetup)
 
virtual void endStream ()
 
const TrackerGeometrygetMisalignedGeometry () const
 
const std::string & getName () const
 
const RandomEngineAndDistributiongetRandomEngine () const
 
const std::string & getSelectionString () const
 
const TrackerGeometrygetTrackerGeometry () const
 
const TrackerTopologygetTrackerTopology () const
 
 TrackingRecHitAlgorithm (const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector)
 
virtual ~TrackingRecHitAlgorithm ()
 

Private Attributes

double _errorXX
 
double _errorXY
 
double _errorYY
 

Detailed Description

Definition at line 14 of file TrackingRecHitNoSmearingPlugin.cc.

Constructor & Destructor Documentation

◆ TrackingRecHitNoSmearingPlugin()

TrackingRecHitNoSmearingPlugin::TrackingRecHitNoSmearingPlugin ( const std::string &  name,
const edm::ParameterSet config,
edm::ConsumesCollector consumesCollector 
)
inline

Definition at line 21 of file TrackingRecHitNoSmearingPlugin.cc.

References _errorXX, _errorXY, and _errorYY.

24  : TrackingRecHitAlgorithm(name, config, consumesCollector),
25  _errorXX(0.001 * 0.001),
26  _errorXY(0.0),
27  _errorYY(0.001 * 0.001) {
28  if (config.exists("errorXX")) {
29  _errorXX = config.getParameter<double>("errorXX");
30  }
31 
32  if (config.exists("errorXY")) {
33  _errorXY = config.getParameter<double>("errorXY");
34  }
35 
36  if (config.exists("errorYY")) {
37  _errorYY = config.getParameter<double>("errorYY");
38  }
39  }
Definition: config.py:1
TrackingRecHitAlgorithm(const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector)

Member Function Documentation

◆ process()

TrackingRecHitProductPtr TrackingRecHitNoSmearingPlugin::process ( TrackingRecHitProductPtr  product) const
inlineoverridevirtual

Reimplemented from TrackingRecHitAlgorithm.

Definition at line 41 of file TrackingRecHitNoSmearingPlugin.cc.

References _errorXX, _errorXY, _errorYY, relativeConstraints::error, TrackingRecHitAlgorithm::getTrackerGeometry(), TrackerGeometry::idToDetUnit(), position, rpcPointValidation_cfi::recHit, rpcPointValidation_cfi::simHit, and fastTrackerRecHitType::siPixel.

41  {
42  for (const std::pair<unsigned int, const PSimHit*>& simHitIdPair : product->getSimHitIdPairs()) {
43  const PSimHit* simHit = simHitIdPair.second;
44  const Local3DPoint& position = simHit->localPosition();
46  const GeomDet* geomDet = getTrackerGeometry().idToDetUnit(product->getDetId());
47 
48  //TODO: this is only a minimal example
50  position, //const LocalPoint &
51  error, //const LocalError &
52  *geomDet, //GeomDet const &idet
54  siPixel // since this is a dummy class anyway: pretend all hits are pixel hits (only effect: hits are defined in 2D (?))
55  );
56  product->addRecHit(recHit, {simHitIdPair});
57  }
58 
59  return product;
60  }
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const TrackerGeometry & getTrackerGeometry() const
static int position[264][3]
Definition: ReadPGInfo.cc:289

Member Data Documentation

◆ _errorXX

double TrackingRecHitNoSmearingPlugin::_errorXX
private

Definition at line 16 of file TrackingRecHitNoSmearingPlugin.cc.

Referenced by process(), and TrackingRecHitNoSmearingPlugin().

◆ _errorXY

double TrackingRecHitNoSmearingPlugin::_errorXY
private

Definition at line 17 of file TrackingRecHitNoSmearingPlugin.cc.

Referenced by process(), and TrackingRecHitNoSmearingPlugin().

◆ _errorYY

double TrackingRecHitNoSmearingPlugin::_errorYY
private

Definition at line 18 of file TrackingRecHitNoSmearingPlugin.cc.

Referenced by process(), and TrackingRecHitNoSmearingPlugin().