CMS 3D CMS Logo

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

Public Member Functions

virtual TrackingRecHitProductPtr process (TrackingRecHitProductPtr product) const
 
 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 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 ( const std::string &  name,
const edm::ParameterSet config,
edm::ConsumesCollector consumesCollector 
)
inline

Definition at line 22 of file TrackingRecHitNoSmearingPlugin.cc.

References edm::ParameterSet::exists(), and edm::ParameterSet::getParameter().

26  :
27  TrackingRecHitAlgorithm(name,config,consumesCollector),
28  _errorXX(0.001*0.001),
29  _errorXY(0.0),
30  _errorYY(0.001*0.001)
31  {
32  if (config.exists("errorXX"))
33  {
34  _errorXX = config.getParameter<double>("errorXX");
35  }
36 
37  if (config.exists("errorXY"))
38  {
39  _errorXY = config.getParameter<double>("errorXY");
40  }
41 
42  if (config.exists("errorYY"))
43  {
44  _errorYY = config.getParameter<double>("errorYY");
45  }
46  }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
TrackingRecHitAlgorithm(const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector)

Member Function Documentation

virtual TrackingRecHitProductPtr TrackingRecHitNoSmearingPlugin::process ( TrackingRecHitProductPtr  product) const
inlinevirtual

Reimplemented from TrackingRecHitAlgorithm.

Definition at line 48 of file TrackingRecHitNoSmearingPlugin.cc.

References DEFINE_EDM_PLUGIN, relativeConstraints::error, TrackingRecHitAlgorithm::getTrackerGeometry(), TrackerGeometry::idToDetUnit(), PSimHit::localPosition(), position, rpcPointValidation_cfi::recHit, rpcPointValidation_cfi::simHit, and fastTrackerRecHitType::siPixel.

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().

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

Member Data Documentation

double TrackingRecHitNoSmearingPlugin::_errorXX
private

Definition at line 18 of file TrackingRecHitNoSmearingPlugin.cc.

double TrackingRecHitNoSmearingPlugin::_errorXY
private

Definition at line 19 of file TrackingRecHitNoSmearingPlugin.cc.

double TrackingRecHitNoSmearingPlugin::_errorYY
private

Definition at line 20 of file TrackingRecHitNoSmearingPlugin.cc.