Classes | |
class | Rule |
Public Member Functions | |
int | checkHit (const edm::EventSetup &iSetup, const DetId &detid, const TrackingRecHit *hit) |
virtual void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
void | produceFromTrack (const edm::EventSetup &iSetup, const Track *itt, std::vector< TrackingRecHit * > &hits) |
void | produceFromTrajectory (const edm::EventSetup &iSetup, const Trajectory *itt, std::vector< TrackingRecHit * > &hits) |
TrackerTrackHitFilter (const edm::ParameterSet &iConfig) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
bool | checkHitAngle (const TrajectoryMeasurement &meas) |
bool | checkPXLCorrClustCharge (const TrajectoryMeasurement &meas) |
bool | checkStoN (const edm::EventSetup &iSetup, const DetId &id, const TrackingRecHit *therechit) |
int | layerFromId (const DetId &id, const TrackerTopology *tTopo) const |
TrackCandidate | makeCandidate (const reco::Track &tk, std::vector< TrackingRecHit * >::iterator hitsBegin, std::vector< TrackingRecHit * >::iterator hitsEnd) |
void | parseStoN (const std::string &str) |
int | sideFromId (const DetId &id, const TrackerTopology *tTopo) const |
Private Attributes | |
bool | checkPXLQuality_ |
std::string | CMNSubtractionMode_ |
std::vector< uint32_t > | detsToIgnore_ |
edm::EventNumber_t | iEvt |
edm::RunNumber_t | iRun |
size_t | minimumHits_ |
int | nOverlaps |
double | PXLcorrClusChargeCut_ |
double | pxlTPLProbXY_ |
double | pxlTPLProbXYQ_ |
std::vector< int32_t > | pxlTPLqBin_ |
bool | rejectBadStoNHits_ |
bool | rejectLowAngleHits_ |
bool | replaceWithInactiveHits_ |
std::vector< Rule > | rules_ |
edm::InputTag | src_ |
bool | stripAllInvalidHits_ |
bool | stripBackInvalidHits_ |
bool | stripFrontInvalidHits_ |
std::vector< bool > | subdetStoN_ |
std::vector< double > | subdetStoNhighcut_ |
std::vector< double > | subdetStoNlowcut_ |
bool | tagOverlaps_ |
edm::ESHandle < TransientTrackingRecHitBuilder > | theBuilder |
edm::ESHandle< TrackerGeometry > | theGeometry |
edm::ESHandle< MagneticField > | theMagField |
edm::EDGetTokenT < reco::TrackCollection > | tokenTracks |
edm::EDGetTokenT < TrajTrackAssociationCollection > | tokenTrajTrack |
double | TrackAngleCut_ |
bool | useTrajectories_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 75 of file TrackerTrackHitFilter.cc.
reco::modules::TrackerTrackHitFilter::TrackerTrackHitFilter | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 275 of file TrackerTrackHitFilter.cc.
References detsToIgnore_, Exception, edm::ParameterSet::getParameter(), parseStoN(), PXLcorrClusChargeCut_, pxlTPLqBin_, rejectBadStoNHits_, rejectLowAngleHits_, replaceWithInactiveHits_, rules_, python.multivaluedict::sort(), src_, stripAllInvalidHits_, subdetStoN_, subdetStoNhighcut_, subdetStoNlowcut_, tokenTracks, tokenTrajTrack, TrackAngleCut_, and useTrajectories_.
int reco::modules::TrackerTrackHitFilter::checkHit | ( | const edm::EventSetup & | iSetup, |
const DetId & | detid, | ||
const TrackingRecHit * | hit | ||
) |
Definition at line 702 of file TrackerTrackHitFilter.cc.
References checkStoN(), DetId::det(), detsToIgnore_, edm::EventSetup::get(), TrackingRecHit::isValid(), edm::ESHandle< class >::product(), DetId::rawId(), rejectBadStoNHits_, rules_, and DetId::Tracker.
Referenced by produceFromTrack(), and produceFromTrajectory().
|
private |
Definition at line 834 of file TrackerTrackHitFilter.cc.
References Abs(), angle(), SiPixelRecHit::cluster(), TrackingRecHit::geographicalId(), GeomDetEnumerators::isTrackerPixel(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), funct::pow(), PXLcorrClusChargeCut_, TrajectoryMeasurement::recHit(), rejectLowAngleHits_, mathSSE::sqrt(), DetId::subdetId(), funct::tan(), theGeometry, TrackAngleCut_, TrajectoryMeasurement::updatedState(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by produceFromTrajectory().
|
private |
Definition at line 893 of file TrackerTrackHitFilter.cc.
References SiPixelRecHit::cluster(), TrackingRecHit::geographicalId(), GeomDetEnumerators::isTrackerStrip(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), funct::pow(), PXLcorrClusChargeCut_, TrajectoryMeasurement::recHit(), mathSSE::sqrt(), DetId::subdetId(), funct::tan(), theGeometry, TrajectoryMeasurement::updatedState(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 739 of file TrackerTrackHitFilter.cc.
References checkPXLQuality_, SiStripRecHit1D::cluster(), SiStripRecHit2D::cluster(), SiPixelRecHit::clusterProbability(), Exception, SiPixelRecHit::hasFilledProb(), GeomDetEnumerators::isTrackerPixel(), GeomDetEnumerators::isTrackerStrip(), pxlTPLProbXY_, pxlTPLProbXYQ_, pxlTPLqBin_, SiPixelRecHit::qBin(), SiStripClusterInfo::signalOverNoise(), subdetStoN_, subdetStoNhighcut_, subdetStoNlowcut_, and theGeometry.
Referenced by checkHit().
|
private |
Definition at line 932 of file TrackerTrackHitFilter.cc.
References TrackerTopology::layer().
Referenced by produceFromTrajectory().
|
private |
Definition at line 523 of file TrackerTrackHitFilter.cc.
References alongMomentum, anyDirection, Exception, reco::Track::innerDetId(), reco::Track::innerPosition(), trajectoryStateTransform::innerStateOnSurface(), reco::TrackBase::momentum(), reco::Track::outerDetId(), reco::Track::outerPosition(), trajectoryStateTransform::outerStateOnSurface(), trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), edm::OwnVector< T, P >::reserve(), fileCollector::seed, reco::Track::seedDirection(), reco::Track::seedRef(), theGeometry, and theMagField.
Referenced by produce().
|
private |
Definition at line 206 of file TrackerTrackHitFilter.cc.
References Exception, plotBeamSpotDB::first, match(), edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, subdetStoN_, subdetStoNhighcut_, and subdetStoNlowcut_.
Referenced by TrackerTrackHitFilter().
|
overridevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 359 of file TrackerTrackHitFilter.cc.
References begin, edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, end, edm::EventID::event(), edm::false, edm::EventSetup::get(), edm::Event::getByToken(), edm::EventBase::id(), iEvt, iRun, edm::Ref< C, T, F >::key(), makeCandidate(), minimumHits_, convertSQLitetoXML_cfg::output, produceFromTrack(), produceFromTrajectory(), edm::Event::put(), replaceWithInactiveHits_, edm::EventID::run(), stripBackInvalidHits_, stripFrontInvalidHits_, theGeometry, theMagField, tokenTracks, tokenTrajTrack, testEve_cfg::tracks, and useTrajectories_.
void reco::modules::TrackerTrackHitFilter::produceFromTrack | ( | const edm::EventSetup & | iSetup, |
const Track * | itt, | ||
std::vector< TrackingRecHit * > & | hits | ||
) |
Definition at line 555 of file TrackerTrackHitFilter.cc.
References checkHit(), TrackingRecHit::clone(), TrackingRecHit::det(), cond::rpcobgas::detid, TrackingRecHit::geographicalId(), TrackingRecHit::inactive, TrackingRecHit::isValid(), DetId::rawId(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), replaceWithInactiveHits_, and stripAllInvalidHits_.
Referenced by produce().
void reco::modules::TrackerTrackHitFilter::produceFromTrajectory | ( | const edm::EventSetup & | iSetup, |
const Trajectory * | itt, | ||
std::vector< TrackingRecHit * > & | hits | ||
) |
—OverlapEnd
—OverlapBegin
—OverlapEnd
Definition at line 590 of file TrackerTrackHitFilter.cc.
References checkHit(), checkHitAngle(), TrackingRecHit::clone(), TrackingRecHit::det(), cond::rpcobgas::detid, TrackingRecHit::geographicalId(), edm::EventSetup::get(), TrackingRecHit::inactive, GeomDetEnumerators::isTrackerPixel(), GeomDetEnumerators::isTrackerStrip(), layerFromId(), Trajectory::measurements(), nOverlaps, edm::ESHandle< class >::product(), rejectLowAngleHits_, replaceWithInactiveHits_, sideFromId(), SiStripDetId::stereo(), stripAllInvalidHits_, DetId::subdetId(), tagOverlaps_, and theGeometry.
Referenced by produce().
|
private |
Definition at line 937 of file TrackerTrackHitFilter.cc.
References TrackerTopology::side().
Referenced by produceFromTrajectory().
|
private |
Definition at line 137 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN().
|
private |
Definition at line 123 of file TrackerTrackHitFilter.cc.
|
private |
Definition at line 130 of file TrackerTrackHitFilter.cc.
Referenced by checkHit(), and TrackerTrackHitFilter().
|
private |
Definition at line 113 of file TrackerTrackHitFilter.cc.
Referenced by produce().
|
private |
Definition at line 112 of file TrackerTrackHitFilter.cc.
Referenced by produce().
|
private |
Definition at line 115 of file TrackerTrackHitFilter.cc.
Referenced by produce().
|
private |
Definition at line 154 of file TrackerTrackHitFilter.cc.
Referenced by produceFromTrajectory().
|
private |
Definition at line 143 of file TrackerTrackHitFilter.cc.
Referenced by checkHitAngle(), checkPXLCorrClustCharge(), and TrackerTrackHitFilter().
|
private |
Definition at line 138 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN().
|
private |
Definition at line 139 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN().
|
private |
Definition at line 140 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN(), and TrackerTrackHitFilter().
|
private |
Definition at line 122 of file TrackerTrackHitFilter.cc.
Referenced by checkHit(), and TrackerTrackHitFilter().
|
private |
Definition at line 134 of file TrackerTrackHitFilter.cc.
Referenced by checkHitAngle(), produceFromTrajectory(), and TrackerTrackHitFilter().
|
private |
Definition at line 117 of file TrackerTrackHitFilter.cc.
Referenced by produce(), produceFromTrack(), produceFromTrajectory(), and TrackerTrackHitFilter().
|
private |
Definition at line 131 of file TrackerTrackHitFilter.cc.
Referenced by checkHit(), and TrackerTrackHitFilter().
|
private |
Definition at line 110 of file TrackerTrackHitFilter.cc.
Referenced by TrackerTrackHitFilter().
|
private |
Definition at line 120 of file TrackerTrackHitFilter.cc.
Referenced by produceFromTrack(), produceFromTrajectory(), and TrackerTrackHitFilter().
|
private |
Definition at line 119 of file TrackerTrackHitFilter.cc.
Referenced by produce().
|
private |
Definition at line 118 of file TrackerTrackHitFilter.cc.
Referenced by produce().
|
private |
Definition at line 124 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN(), parseStoN(), and TrackerTrackHitFilter().
|
private |
Definition at line 126 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN(), parseStoN(), and TrackerTrackHitFilter().
|
private |
Definition at line 125 of file TrackerTrackHitFilter.cc.
Referenced by checkStoN(), parseStoN(), and TrackerTrackHitFilter().
|
private |
Definition at line 153 of file TrackerTrackHitFilter.cc.
Referenced by produceFromTrajectory().
|
private |
Definition at line 148 of file TrackerTrackHitFilter.cc.
|
private |
Definition at line 145 of file TrackerTrackHitFilter.cc.
Referenced by checkHitAngle(), checkPXLCorrClustCharge(), checkStoN(), makeCandidate(), produce(), and produceFromTrajectory().
|
private |
Definition at line 146 of file TrackerTrackHitFilter.cc.
Referenced by makeCandidate(), and produce().
|
private |
Definition at line 150 of file TrackerTrackHitFilter.cc.
Referenced by produce(), and TrackerTrackHitFilter().
|
private |
Definition at line 151 of file TrackerTrackHitFilter.cc.
Referenced by produce(), and TrackerTrackHitFilter().
|
private |
Definition at line 135 of file TrackerTrackHitFilter.cc.
Referenced by checkHitAngle(), and TrackerTrackHitFilter().
|
private |
Definition at line 133 of file TrackerTrackHitFilter.cc.
Referenced by produce(), and TrackerTrackHitFilter().