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.

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  }

References _errorXX, _errorXY, and _errorYY.

Member Function Documentation

◆ process()

TrackingRecHitProductPtr TrackingRecHitNoSmearingPlugin::process ( TrackingRecHitProductPtr  product) const
inlineoverridevirtual

Reimplemented from TrackingRecHitAlgorithm.

Definition at line 41 of file TrackingRecHitNoSmearingPlugin.cc.

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  }

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

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().

GeomDet
Definition: GeomDet.h:27
fastTrackerRecHitType::siPixel
Definition: FastTrackerRecHit.h:17
TrackingRecHitNoSmearingPlugin::_errorYY
double _errorYY
Definition: TrackingRecHitNoSmearingPlugin.cc:18
fastTrackerRecHitType
Definition: FastTrackerRecHit.h:15
relativeConstraints.error
error
Definition: relativeConstraints.py:53
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
TrackerGeometry::idToDetUnit
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: TrackerGeometry.cc:183
config
Definition: config.py:1
TrackingRecHitAlgorithm::TrackingRecHitAlgorithm
TrackingRecHitAlgorithm(const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector)
Definition: TrackingRecHitAlgorithm.cc:25
TrackingRecHitNoSmearingPlugin::_errorXX
double _errorXX
Definition: TrackingRecHitNoSmearingPlugin.cc:16
rpcPointValidation_cfi.simHit
simHit
Definition: rpcPointValidation_cfi.py:24
TrackingRecHitNoSmearingPlugin::_errorXY
double _errorXY
Definition: TrackingRecHitNoSmearingPlugin.cc:17
Point3DBase< float, LocalTag >
TrackingRecHitAlgorithm::getTrackerGeometry
const TrackerGeometry & getTrackerGeometry() const
Definition: TrackingRecHitAlgorithm.cc:42
LocalError
Definition: LocalError.h:12
FastSingleTrackerRecHit
Definition: FastSingleTrackerRecHit.h:7
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
PSimHit
Definition: PSimHit.h:15