#include <PixelTemplateSmearerBase.h>
Classes | |
struct | MergeGroup |
Public Member Functions | |
void | beginRun (edm::Run const &run, const edm::EventSetup &eventSetup, const SiPixelTemplateDBObject *pixelTemplateDBObjectPtr, std::vector< SiPixelTemplateStore > &tempStoreRef) override |
bool | hitsMerge (const PSimHit &simHit1, const PSimHit &simHit2) const |
PixelTemplateSmearerBase (const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector) | |
TrackingRecHitProductPtr | process (TrackingRecHitProductPtr product) const override |
TrackingRecHitProductPtr | processMergeGroups (std::vector< MergeGroup * > &mergeGroups, TrackingRecHitProductPtr product, const PixelGeomDetUnit *detUnit, const double boundX, const double boundY, RandomEngineAndDistribution const *random) const |
TrackingRecHitProductPtr | processUnmergedHits (std::vector< TrackingRecHitProduct::SimHitIdPair > &unmergedHits, TrackingRecHitProductPtr product, const PixelGeomDetUnit *detUnit, const double boundX, const double boundY, RandomEngineAndDistribution const *random) const |
FastSingleTrackerRecHit | smearHit (const PSimHit &simHit, const PixelGeomDetUnit *detUnit, const double boundX, const double boundY, RandomEngineAndDistribution const *) const |
FastSingleTrackerRecHit | smearMergeGroup (MergeGroup *mg, const PixelGeomDetUnit *detUnit, const double boundX, const double boundY, const RandomEngineAndDistribution *random) const |
~PixelTemplateSmearerBase () override | |
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 TrackerGeometry & | getMisalignedGeometry () const |
const std::string & | getName () const |
const RandomEngineAndDistribution & | getRandomEngine () const |
const std::string & | getSelectionString () const |
const TrackerGeometry & | getTrackerGeometry () const |
const TrackerTopology & | getTrackerTopology () const |
TrackingRecHitAlgorithm (const std::string &name, const edm::ParameterSet &config, edm::ConsumesCollector &consumesCollector) | |
virtual | ~TrackingRecHitAlgorithm () |
Protected Attributes | |
bool | isBarrel |
bool | mergeHitsOn = false |
const SiPixelTemplateDBObject * | pixelTemplateDBObject_ = nullptr |
int | templateId = -1 |
std::string | theBigPixelResolutionFileName |
std::shared_ptr< PixelResolutionHistograms > | theBigPixelResolutions |
std::string | theEdgePixelResolutionFileName |
std::shared_ptr< PixelResolutionHistograms > | theEdgePixelResolutions |
std::unique_ptr< TFile > | theMergedPixelResolutionXFile |
std::string | theMergedPixelResolutionXFileName |
std::unique_ptr< TFile > | theMergedPixelResolutionYFile |
std::string | theMergedPixelResolutionYFileName |
std::unique_ptr< TFile > | theMergingProbabilityFile |
std::string | theMergingProbabilityFileName |
std::vector< SiPixelTemplateStore > | thePixelTemp_ |
std::vector< SiPixelTemplateStore > & | thePixelTempRef = thePixelTemp_ |
std::string | theRegularPixelResolutionFileName |
std::shared_ptr< PixelResolutionHistograms > | theRegularPixelResolutions |
Definition at line 40 of file PixelTemplateSmearerBase.h.
|
explicit |
Definition at line 46 of file PixelTemplateSmearerBase.cc.
References Exception, edm::FileInPath::fullPath(), isBarrel, mergeHitsOn, SiPixelTemplate::pushfile(), mps_update::status, templateId, theBigPixelResolutionFileName, theBigPixelResolutions, theEdgePixelResolutionFileName, theEdgePixelResolutions, theMergedPixelResolutionXFile, theMergedPixelResolutionXFileName, theMergedPixelResolutionYFile, theMergedPixelResolutionYFileName, theMergingProbabilityFile, theMergingProbabilityFileName, thePixelTemp_, theRegularPixelResolutionFileName, and theRegularPixelResolutions.
|
override |
Definition at line 128 of file PixelTemplateSmearerBase.cc.
|
overridevirtual |
Reimplemented from TrackingRecHitAlgorithm.
Definition at line 136 of file PixelTemplateSmearerBase.cc.
References pixelTemplateDBObject_, templateId, and thePixelTempRef.
Definition at line 925 of file PixelTemplateSmearerBase.cc.
References PSimHit::localPosition(), dqm-mbProfile::log, PSimHit::momentumAtEntry(), funct::pow(), TtFullHadEvtBuilder_cfi::prob, mathSSE::sqrt(), theMergingProbabilityFile, Vector3DBase< T, FrameTag >::unit(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by process().
|
overridevirtual |
Reimplemented from TrackingRecHitAlgorithm.
Definition at line 171 of file PixelTemplateSmearerBase.cc.
References Exception, TrackingRecHitAlgorithm::getRandomEngine(), TrackingRecHitAlgorithm::getTrackerGeometry(), PixelTemplateSmearerBase::MergeGroup::group, watchdog::group, hitsMerge(), mps_fire::i, TrackerGeometry::idToDetUnit(), dqmiolumiharvest::j, dqmdumpme::k, Bounds::length(), mergeHitsOn, nHits, processMergeGroups(), processUnmergedHits(), randomEngine, edm::second(), FastTrackerRecHitCombiner_cfi::simHits, PixelTemplateSmearerBase::MergeGroup::smearIt, GeomDet::surface(), and Bounds::width().
TrackingRecHitProductPtr PixelTemplateSmearerBase::processMergeGroups | ( | std::vector< MergeGroup * > & | mergeGroups, |
TrackingRecHitProductPtr | product, | ||
const PixelGeomDetUnit * | detUnit, | ||
const double | boundX, | ||
const double | boundY, | ||
RandomEngineAndDistribution const * | random | ||
) | const |
Definition at line 680 of file PixelTemplateSmearerBase.cc.
References rpcPointValidation_cfi::recHit, and smearMergeGroup().
Referenced by process().
TrackingRecHitProductPtr PixelTemplateSmearerBase::processUnmergedHits | ( | std::vector< TrackingRecHitProduct::SimHitIdPair > & | unmergedHits, |
TrackingRecHitProductPtr | product, | ||
const PixelGeomDetUnit * | detUnit, | ||
const double | boundX, | ||
const double | boundY, | ||
RandomEngineAndDistribution const * | random | ||
) | const |
Definition at line 663 of file PixelTemplateSmearerBase.cc.
References rpcPointValidation_cfi::recHit, and smearHit().
Referenced by process().
FastSingleTrackerRecHit PixelTemplateSmearerBase::smearHit | ( | const PSimHit & | simHit, |
const PixelGeomDetUnit * | detUnit, | ||
const double | boundX, | ||
const double | boundY, | ||
RandomEngineAndDistribution const * | random | ||
) | const |
Definition at line 314 of file PixelTemplateSmearerBase.cc.
References BHX, BHY, BXSIZE, BYSIZE, RectangularPixelTopology::containsBigPixelInX(), RectangularPixelTopology::containsBigPixelInY(), Exception, RandomEngineAndDistribution::flatShoot(), dqmMemoryStats::float, SimpleHistogramGenerator::generate(), GeomDet::geographicalId(), TrackingRecHitAlgorithm::getMisalignedGeometry(), SiPixelTemplateDBObject::getTemplateID(), mps_fire::i, TrackerGeometry::idToDet(), createfilelist::int, SiPixelTemplate::interpolate(), isBarrel, RectangularPixelTopology::isItBigPixelInX(), RectangularPixelTopology::isItBigPixelInY(), RectangularPixelTopology::isItEdgePixelInX(), RectangularPixelTopology::isItEdgePixelInY(), TrackerGeomDet::localAlignmentError(), RectangularPixelTopology::localPosition(), LogDebug, PV3DBase< T, PVType, FrameType >::mag(), RectangularPixelTopology::measurementPosition(), microntocm, PixelTopology::ncolumns(), PixelTopology::nrows(), pixelTemplateDBObject_, SiPixelTemplate::qbin_dist(), rpcPointValidation_cfi::recHit, SiPixelTemplate::s50(), rpcPointValidation_cfi::simHit, fastTrackerRecHitType::siPixel, PixelGeomDetType::specificTopology(), PixelGeomDetUnit::specificType(), SiPixelTemplate::temperrors(), templateId, theBigPixelResolutions, theEdgePixelResolutions, thePixelTempRef, theRegularPixelResolutions, LocalError::valid(), PV2DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::x(), xsize, SiPixelTemplate::xtemp(), LocalError::xx(), LocalError::xy(), PV2DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::y(), ysize, SiPixelTemplate::ytemp(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by processUnmergedHits().
FastSingleTrackerRecHit PixelTemplateSmearerBase::smearMergeGroup | ( | MergeGroup * | mg, |
const PixelGeomDetUnit * | detUnit, | ||
const double | boundX, | ||
const double | boundY, | ||
const RandomEngineAndDistribution * | random | ||
) | const |
Definition at line 698 of file PixelTemplateSmearerBase.cc.
References BXSIZE, BYSIZE, RandomEngineAndDistribution::flatShoot(), dqmMemoryStats::float, SimpleHistogramGenerator::generate(), GeomDet::geographicalId(), SiPixelTemplateDBObject::getTemplateID(), PixelTemplateSmearerBase::MergeGroup::group, mps_fire::i, createfilelist::int, SiPixelTemplate::interpolate(), microntocm, pixelTemplateDBObject_, SiPixelTemplate::qbin_dist(), rpcPointValidation_cfi::recHit, rpcPointValidation_cfi::simHit, fastTrackerRecHitType::siPixel, SiPixelTemplate::temperrors(), templateId, theMergedPixelResolutionXFile, theMergedPixelResolutionYFile, thePixelTempRef, PV3DBase< T, PVType, FrameType >::x(), xsize, SiPixelTemplate::xtemp(), PV3DBase< T, PVType, FrameType >::y(), ysize, SiPixelTemplate::ytemp(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by processMergeGroups().
|
protected |
Definition at line 62 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearHit().
|
protected |
Definition at line 49 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and process().
|
protected |
Definition at line 52 of file PixelTemplateSmearerBase.h.
Referenced by beginRun(), smearHit(), and smearMergeGroup().
|
protected |
Definition at line 55 of file PixelTemplateSmearerBase.h.
Referenced by beginRun(), PixelTemplateSmearerBase(), smearHit(), and smearMergeGroup().
|
protected |
Definition at line 69 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 68 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearHit().
|
protected |
Definition at line 66 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 65 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearHit().
|
protected |
Definition at line 78 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearMergeGroup().
|
protected |
Definition at line 79 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 81 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearMergeGroup().
|
protected |
Definition at line 82 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 75 of file PixelTemplateSmearerBase.h.
Referenced by hitsMerge(), and PixelTemplateSmearerBase().
|
protected |
Definition at line 76 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 53 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 54 of file PixelTemplateSmearerBase.h.
Referenced by beginRun(), smearHit(), and smearMergeGroup().
|
protected |
Definition at line 72 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase().
|
protected |
Definition at line 71 of file PixelTemplateSmearerBase.h.
Referenced by PixelTemplateSmearerBase(), and smearHit().