#include <PSimHit.h>
Public Member Functions | |
unsigned int | detUnitId () const |
float | energyLoss () const |
The energy deposit in the PSimHit, in ???. More... | |
Local3DPoint | entryPoint () const |
Entry point in the local Det frame. More... | |
EncodedEventId | eventId () const |
Local3DPoint | exitPoint () const |
Exit point in the local Det frame. More... | |
LocalVector | localDirection () const |
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility. More... | |
Local3DPoint | localPosition () const |
LocalVector | momentumAtEntry () const |
The momentum of the track that produced the hit, at entry point. More... | |
float | pabs () const |
fast and more accurate access to momentumAtEntry().mag() More... | |
int | particleType () const |
Geom::Phi< float > | phiAtEntry () const |
fast and more accurate access to momentumAtEntry().phi() More... | |
unsigned short | processType () const |
PSimHit () | |
PSimHit (const Local3DPoint &entry, const Local3DPoint &exit, float pabs, float tof, float eloss, int particleType, unsigned int detId, unsigned int trackId, float theta, float phi, unsigned short processType=0) | |
void | setEventId (EncodedEventId e) |
void | setTof (float tof) |
Geom::Theta< float > | thetaAtEntry () const |
fast and more accurate access to momentumAtEntry().theta() More... | |
float | timeOfFlight () const |
float | tof () const |
deprecated name for timeOfFlight() More... | |
unsigned int | trackId () const |
Protected Attributes | |
unsigned int | theDetUnitId |
float | theEnergyLoss |
Local3DPoint | theEntryPoint |
EncodedEventId | theEventId |
float | thePabs |
int | theParticleType |
float | thePhiAtEntry |
unsigned short | theProcessType |
Local3DVector | theSegment |
float | theThetaAtEntry |
float | theTof |
unsigned int | theTrackId |
Friends | |
class | TrackingSlaveSD |
Persistent-capable SimHit. Suitable for tracking detectors.
|
inline |
Definition at line 19 of file PSimHit.h.
|
inline |
The DetUnit identifier, to be interpreted in the context of the detector system that produced the hit. E.g. in the Tracker this is index used with DetUnitNumbering<TrackerSimHitTag>. Currently the context is not deducible from the PSimHit and must be known when the PSimHit is created/accessed.
Definition at line 97 of file PSimHit.h.
References theDetUnitId.
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitExistance(), CSCSegmentValidation::analyze(), SiPixelPhase1TrackingParticleV::analyze(), TrackerHitAssociator::associateHit(), FWTrackingParticleProxyBuilderFullFramework::build(), FWPSimHitProxyBuilder::buildViewType(), TrackingParticleNumberOfLayers::calculate(), MuonIdTruthInfo::checkSimHitForBestMatch(), MuonTrackResidualAnalyzer::computeResolution(), TkAccumulatingSensitiveDetector::createHit(), ChargeDividerFP420::DeconvolutionShape(), CkfDebugger::det(), CkfDebugger::SimHit::detUnitId(), RPDisplacementGenerator::displace(), Phase2TrackerDigitizerAlgorithm::drift(), SiPixelDigitizerAlgorithm::drift(), SubsystemNeutronReader::generateChamberNoise(), HitInfo::getInfo(), ME0SimpleModel::getSimHitBx(), GEMSignalModel::getSimHitBx(), RPCSynchronizer::getSimHitBx(), RPCSynchronizer::getSimHitBxAndTimingForIRPC(), CkfDebugger::hasDelta(), CkfDebugger::nextCorrectHits(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), operator<<(), ChargeDividerFP420::PeakShape(), CkfDebugger::position(), cms::DigitizerFP420::produce(), TrackingRecHitProducer::produce(), CTPPSRecHitProducer::produce(), FP420DigiMain::run(), MuonSensitiveDetector::saveHit(), TkAccumulatingSensitiveDetector::sendHit(), DTHitAssociator::SimHitOK(), FormatBarrelHits::sortId(), FormatEndcapHits::sortId(), FormatRpcHits::sortId(), FormatGemHits::sortId(), FormatMe0Hits::sortId(), TkAccumulatingSensitiveDetector::updateHit(), AsciiNeutronWriter::writeCluster(), and SubsystemNeutronWriter::writeHits().
|
inline |
The energy deposit in the PSimHit, in ???.
Definition at line 79 of file PSimHit.h.
References theEnergyLoss.
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), TkAccumulatingSensitiveDetector::createHit(), ChargeDividerFP420::DeconvolutionShape(), RPDisplacementGenerator::displace(), RPLinearChargeDivider::divide(), RPixLinearChargeDivider::divide(), ChargeDividerFP420::divide(), SiLinearChargeDivider::divide(), DTDigitizer::dumpHit(), CkfDebugger::SimHit::energyLoss(), SubsystemNeutronReader::generateChamberNoise(), SimpleDeviceSimInMIPs::getChargeForHit(), BTLTileDeviceSim::getHitsResponse(), BTLBarDeviceSim::getHitsResponse(), ChargeDividerFP420::PeakShape(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), SiPixelDigitizerAlgorithm::primary_ionization(), TrackingRecHitProducer::produce(), FP420DigiMain::run(), TkAccumulatingSensitiveDetector::sendHit(), CSCGasCollisions::simulate(), ChargeDividerFP420::TimeResponse(), SiLinearChargeDivider::TimeResponse(), TkAccumulatingSensitiveDetector::updateHit(), AsciiNeutronWriter::writeCluster(), and CSCGasCollisions::writeSummary().
|
inline |
Entry point in the local Det frame.
Definition at line 43 of file PSimHit.h.
References theEntryPoint.
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), SiPixelPhase1RecHitsV::analyze(), MuonIdTruthInfo::checkSimHitForBestMatch(), DTDigitizer::computeTime(), TkAccumulatingSensitiveDetector::createHit(), RPDisplacementGenerator::displace(), RPLinearChargeDivider::divide(), RPixLinearChargeDivider::divide(), ChargeDividerFP420::divide(), SiLinearChargeDivider::divide(), DTDigitizer::dumpHit(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), SubsystemNeutronReader::generateChamberNoise(), BTLTileDeviceSim::getHitsResponse(), BTLBarDeviceSim::getHitsResponse(), CSCWireHitSim::getIonizationClusters(), SiPixelDigitizerAlgorithm::hitSignalReweight(), PixelClusterShapeExtractor::isSuitable(), operator<<(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), SiPixelDigitizerAlgorithm::primary_ionization(), HitDigitizerFP420::processHit(), PixelClusterShapeExtractor::processSim(), CTPPSRecHitProducer::produce(), FP420DigiMain::run(), MuonSensitiveDetector::saveHit(), TkAccumulatingSensitiveDetector::sendHit(), DTRecHitQuality::simHitDistFromFE(), DTRecHitQuality::simHitDistFromWire(), GlobalRecHitsAnalyzer::simHitDistFromWire(), GlobalRecHitsProducer::simHitDistFromWire(), DTRecHitQuality::simHitImpactAngle(), DTHitAssociator::SimHitOK(), CSCGasCollisions::simulate(), GEMSignalModel::simulateClustering(), TkAccumulatingSensitiveDetector::updateHit(), AsciiNeutronWriter::writeCluster(), and CSCGasCollisions::writeSummary().
|
inline |
Definition at line 108 of file PSimHit.h.
References theEventId.
Referenced by GEMDigiModule::addLinks(), RPCSim::addLinks(), ME0DigiModel::addLinks(), CSCBaseElectronicsSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SiPixelPhase1RecHitsV::analyze(), SiPixelPhase1TrackingParticleV::analyze(), DTHitAssociator::associateDTHitId(), TrackerHitAssociator::associateHit(), TrackingParticleNumberOfLayers::calculate(), ntupleDataFormat.Event::eventIdStr(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), DTHitAssociator::initEvent(), SiStripRecHitsValid::rechitanalysis(), and SiStripRecHitsValid::rechitanalysis_matched().
|
inline |
Exit point in the local Det frame.
Definition at line 46 of file PSimHit.h.
References theEntryPoint, and theSegment.
Referenced by SubsystemNeutronWriter::adjust(), SiPixelPhase1RecHitsV::analyze(), MuonIdTruthInfo::checkSimHitForBestMatch(), TkAccumulatingSensitiveDetector::closeHit(), DTDigitizer::computeTime(), TkAccumulatingSensitiveDetector::createHit(), RPDisplacementGenerator::displace(), RPLinearChargeDivider::divide(), RPixLinearChargeDivider::divide(), ChargeDividerFP420::divide(), SiLinearChargeDivider::divide(), DTDigitizer::dumpHit(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), SubsystemNeutronReader::generateChamberNoise(), CSCWireHitSim::getIonizationClusters(), SiPixelDigitizerAlgorithm::hitSignalReweight(), PixelClusterShapeExtractor::isSuitable(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), SiPixelDigitizerAlgorithm::primary_ionization(), HitDigitizerFP420::processHit(), PixelClusterShapeExtractor::processSim(), FP420DigiMain::run(), MuonSensitiveDetector::saveHit(), TkAccumulatingSensitiveDetector::sendHit(), DTRecHitQuality::simHitDistFromFE(), DTRecHitQuality::simHitDistFromWire(), GlobalRecHitsAnalyzer::simHitDistFromWire(), GlobalRecHitsProducer::simHitDistFromWire(), DTRecHitQuality::simHitImpactAngle(), DTHitAssociator::SimHitOK(), CSCGasCollisions::simulate(), GEMSignalModel::simulateClustering(), TkAccumulatingSensitiveDetector::updateHit(), AsciiNeutronWriter::writeCluster(), and CSCGasCollisions::writeSummary().
|
inline |
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility.
Definition at line 58 of file PSimHit.h.
References f, phiAtEntry(), and thetaAtEntry().
Referenced by DTDigitizer::computeTime(), CkfDebugger::SimHit::localDirection(), CSCSegmentValidation::plotResolution(), FastTrackerRecHitMatcher::produce(), TestHits::projectHit(), TestSmoothHits::projectHit(), TestTrackHits::projectHit(), SiStripRecHitsValid::projectHit(), GlobalRecHitsAnalyzer::projectHit(), GlobalRecHitsProducer::projectHit(), and SiStripTrackingRecHitsValid::projectHit().
|
inline |
Local position in the Det frame. Normally it is on the detection surface, but this is not checked. It is computed as the middle point between entry and exit.
Definition at line 52 of file PSimHit.h.
References theEntryPoint, and theSegment.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), SiPixelErrorEstimation::analyze(), FWTrackingParticleProxyBuilderFullFramework::build(), FWPSimHitProxyBuilder::buildViewType(), DTRecHitQuality::compute(), MuonTrackResidualAnalyzer::computeResolution(), DTDigitizer::computeTime(), SiLinearChargeDivider::divide(), DTDigitizer::externalDelays(), BTLBarDeviceSim::getHitsResponse(), ME0SimpleModel::getSimHitBx(), GEMSignalModel::getSimHitBx(), RPCSynchronizer::getSimHitBx(), RPCSynchronizer::getSimHitBxAndTimingForIRPC(), CkfDebugger::SimHit::globalPosition(), SiPixelDigitizerAlgorithm::hitSignalReweight(), PixelTemplateSmearerBase::hitsMerge(), CkfDebugger::SimHit::localPosition(), CSCCathodeLCTAnalyzer::nearestHS(), CSCAnodeLCTAnalyzer::nearestWG(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), CSCWireDigiValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), GlobalRecHitsProducer::plotResolution(), CkfDebugger::position(), TrackingRecHitNoSmearingPlugin::process(), TrackingRecHitStripGSPlugin::process(), TestHits::projectHit(), TestSmoothHits::projectHit(), TestTrackHits::projectHit(), SiStripRecHitsValid::projectHit(), GlobalRecHitsAnalyzer::projectHit(), GlobalRecHitsProducer::projectHit(), SiStripTrackingRecHitsValid::projectHit(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), DTHitAssociator::SimHitOK(), ME0SimpleModel::simulateClustering(), PixelTemplateSmearerBase::smearHit(), PixelTemplateSmearerBase::smearMergeGroup(), CkfDebugger::testSeed(), and SiLinearChargeDivider::TimeResponse().
|
inline |
The momentum of the track that produced the hit, at entry point.
Definition at line 55 of file PSimHit.h.
References pabs(), phiAtEntry(), and thetaAtEntry().
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), FWTrackingParticleProxyBuilderFullFramework::build(), MuonTrackResidualAnalyzer::computeResolution(), DTDigitizer::computeTime(), DTDigitizer::dumpHit(), PixelTemplateSmearerBase::hitsMerge(), PixelClusterShapeExtractor::isSuitable(), PixelTemplateSmearerBase::smearHit(), PixelTemplateSmearerBase::smearMergeGroup(), CkfDebugger::testSeed(), and AsciiNeutronWriter::writeCluster().
|
inline |
fast and more accurate access to momentumAtEntry().mag()
Definition at line 67 of file PSimHit.h.
References thePabs.
Referenced by SubsystemNeutronWriter::adjust(), CkfDebugger::associated(), DTDigitizer::computeTime(), RPDisplacementGenerator::displace(), RPLinearChargeDivider::divide(), RPixLinearChargeDivider::divide(), ChargeDividerFP420::divide(), SiLinearChargeDivider::divide(), DTDigitizer::dumpHit(), SubsystemNeutronReader::generateChamberNoise(), CSCWireHitSim::getIonizationClusters(), CkfDebugger::goodSimHit(), momentumAtEntry(), CkfDebugger::SimHit::pabs(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), SiPixelDigitizerAlgorithm::primary_ionization(), FP420DigiMain::run(), TkAccumulatingSensitiveDetector::sendHit(), CSCSegmentValidationUtils::SimHitPabsLessThan(), CSCGasCollisions::simulate(), AsciiNeutronWriter::writeCluster(), SubsystemNeutronWriter::writeHits(), and CSCGasCollisions::writeSummary().
|
inline |
The particle type of the track that produced this hit, in standard PDG code. NB: This differs from ORCA5 and earlier, where the code was Geant3. The particle type of the hit may differ from the particle type of the SimTrack with id trackId(). This happends if the hit was created by a secondary track (e.g. a delta ray) originating from the trackId() and not existing as a separate SimTrack.
Definition at line 89 of file PSimHit.h.
References theParticleType.
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), SiPixelErrorEstimation::analyze(), FWPSimHitProxyBuilder::buildViewType(), TrackingParticleNumberOfLayers::calculate(), DTDigitizer::computeTime(), CSCAnodeLCTAnalyzer::digiSimHitAssociator(), CSCCathodeLCTAnalyzer::digiSimHitAssociator(), RPDisplacementGenerator::displace(), RPLinearChargeDivider::divide(), RPixLinearChargeDivider::divide(), ChargeDividerFP420::divide(), SiLinearChargeDivider::divide(), DTDigitizer::dumpHit(), SubsystemNeutronReader::generateChamberNoise(), HitInfo::getInfo(), CSCWireHitSim::getIonizationClusters(), SiPixelDigitizerAlgorithm::hitSignalReweight(), DTHitAssociator::initEvent(), CkfDebugger::SimHit::particleType(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), SiPixelDigitizerAlgorithm::primary_ionization(), FP420DigiMain::run(), CSCGasCollisions::simulate(), AsciiNeutronWriter::writeCluster(), SubsystemNeutronWriter::writeHits(), and CSCGasCollisions::writeSummary().
|
inline |
fast and more accurate access to momentumAtEntry().phi()
Definition at line 64 of file PSimHit.h.
References thePhiAtEntry.
Referenced by RPDisplacementGenerator::displace(), SubsystemNeutronReader::generateChamberNoise(), localDirection(), momentumAtEntry(), and CkfDebugger::SimHit::phiAtEntry().
|
inline |
The ID of the physics process that created the track that produced the hit. This is useful for identifying hits from secondary interactions, especially in the case when the track that produced the hit was not saved as a SimTrack. The meaning of the ID is defined outside of the PSimHit; The only value with special significance is zero (for "undefined"), so zero should not be the ID of any process.
Definition at line 120 of file PSimHit.h.
References theProcessType.
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), CkfDebugger::analyseCompatibleMeasurements(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), SiPixelErrorEstimation::analyze(), TrackerHitAssociator::associateHit(), TrackingParticleNumberOfLayers::calculate(), RPDisplacementGenerator::displace(), DTDigitizer::dumpHit(), SubsystemNeutronReader::generateChamberNoise(), SiPixelDigitizerAlgorithm::hitSignalReweight(), SiPixelDigitizerAlgorithm::induce_signal(), DTHitAssociator::initEvent(), Phase2TrackerValidateDigi::isPrimary(), PixelClusterShapeExtractor::isSuitable(), and CkfDebugger::SimHit::processType().
|
inline |
|
inline |
fast and more accurate access to momentumAtEntry().theta()
Definition at line 61 of file PSimHit.h.
References theThetaAtEntry.
Referenced by RPDisplacementGenerator::displace(), SubsystemNeutronReader::generateChamberNoise(), localDirection(), momentumAtEntry(), and CkfDebugger::SimHit::thetaAtEntry().
|
inline |
Time of flight in nanoseconds from the primary interaction to the entry point. Always positive in a PSimHit, but may become negative in a SimHit due to bunch assignment.
Definition at line 73 of file PSimHit.h.
References tof().
Referenced by RPCSim::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), CkfDebugger::associated(), PixelClusterShapeExtractor::checkSimHits(), TrackingTruthAccumulator::fillSimHits(), ME0SimpleModel::getSimHitBx(), GEMSignalModel::getSimHitBx(), RPCSynchronizer::getSimHitBx(), RPCSynchronizer::getSimHitBxAndTimingForIRPC(), CkfDebugger::nextCorrectHits(), TkAccumulatingSensitiveDetector::sendHit(), CkfDebugger::SimHit::timeOfFlight(), and AsciiNeutronWriter::writeCluster().
|
inline |
deprecated name for timeOfFlight()
Definition at line 76 of file PSimHit.h.
References theTof.
Referenced by FWTrackingParticleProxyBuilderFullFramework::build(), ChargeDividerFP420::DeconvolutionShape(), RPDisplacementGenerator::displace(), Phase2TrackerDigitizerAlgorithm::drift(), SiPixelDigitizerAlgorithm::drift(), DTDigitizer::externalDelays(), SubsystemNeutronReader::generateChamberNoise(), CSCDriftSim::getWireHit(), SortByTime::operator()(), operator<<(), ChargeDividerFP420::PeakShape(), CTPPSRecHitProducer::produce(), FP420DigiMain::run(), setTof(), timeOfFlight(), SiLinearChargeDivider::TimeResponse(), and SubsystemNeutronWriter::writeHits().
|
inline |
The SimTrack ID of the "mother" track. This may be the actual charged track that produced the hit, or a "mother" of this track, in case the track that produced the hit was not saved as a SimTrack. This ID must be interpreted in the context of the SimEvent to which the PSimHit belongs.
Definition at line 106 of file PSimHit.h.
References theTrackId.
Referenced by GEMDigiModule::addLinks(), RPCSim::addLinks(), ME0DigiModel::addLinks(), GEMDigiModule::addLinksWithPartId(), ME0DigiModel::addLinksWithPartId(), SubsystemNeutronWriter::adjust(), CkfDebugger::analyseRecHitExistance(), DTHitAssociator::associateDTHitId(), TrackerHitAssociator::associateHit(), PixelClusterShapeExtractor::checkSimHits(), CkfDebugger::correctMeas(), TkAccumulatingSensitiveDetector::createHit(), RPDisplacementGenerator::displace(), DTDigitizer::dumpHit(), SubsystemNeutronReader::generateChamberNoise(), DTHitAssociator::initEvent(), Phase2TrackerValidateDigi::isPrimary(), FastTrackerRecHitCombiner::produce(), FastTrackerRecHitMatcher::produce(), FP420DigiMain::run(), TkAccumulatingSensitiveDetector::sendHit(), CkfDebugger::SimHit::trackId(), TkAccumulatingSensitiveDetector::updateHit(), and AsciiNeutronWriter::writeCluster().
|
friend |
|
protected |
Definition at line 139 of file PSimHit.h.
Referenced by detUnitId().
|
protected |
Definition at line 129 of file PSimHit.h.
Referenced by UpdatablePSimHit::addEnergyLoss(), energyLoss(), and UpdatablePSimHit::setEnergyLoss().
|
protected |
Definition at line 126 of file PSimHit.h.
Referenced by entryPoint(), exitPoint(), localPosition(), UpdatablePSimHit::setEntryPoint(), and UpdatablePSimHit::updateExitPoint().
|
protected |
Definition at line 141 of file PSimHit.h.
Referenced by eventId(), and setEventId().
|
protected |
Definition at line 134 of file PSimHit.h.
Referenced by particleType().
|
protected |
Definition at line 131 of file PSimHit.h.
Referenced by phiAtEntry().
|
protected |
Definition at line 135 of file PSimHit.h.
Referenced by processType().
|
protected |
Definition at line 127 of file PSimHit.h.
Referenced by exitPoint(), localPosition(), UpdatablePSimHit::setEntryPoint(), and UpdatablePSimHit::updateExitPoint().
|
protected |
Definition at line 130 of file PSimHit.h.
Referenced by thetaAtEntry().
|
protected |
|
protected |
Definition at line 140 of file PSimHit.h.
Referenced by TrackingSlaveSD::setTrackId(), UpdatablePSimHit::setTrackId(), and trackId().