#include <DAFTrackProducerAlgorithm.h>
Public Types | |
using | AlgoProductCollection = typename Base::AlgoProductCollection |
using | Base = AlgoProductTraits< reco::Track > |
using | TrackCollection = typename Base::TrackCollection |
using | TrajAnnealingCollection = std::vector< TrajAnnealing > |
Public Types inherited from AlgoProductTraits< reco::Track > | |
using | AlgoProductCollection = std::vector< AlgoProduct > |
using | TrackCollection = std::vector< reco::Track > |
using | TrackView = edm::View< reco::Track > |
Public Member Functions | |
DAFTrackProducerAlgorithm (const edm::ParameterSet &conf) | |
void | runWithCandidate (const TrackingGeometry *, const MagneticField *, const TrajTrackAssociationCollection &, const MeasurementTrackerEvent *measTk, const TrajectoryFitter *, const TransientTrackingRecHitBuilder *, const MultiRecHitCollector *measurementTracker, const SiTrackerMultiRecHitUpdator *, const reco::BeamSpot &, AlgoProductCollection &, TrajAnnealingCollection &, bool, AlgoProductCollection &, AlgoProductCollection &) const |
Run the Final Fit taking TrackCandidates as input. More... | |
~DAFTrackProducerAlgorithm () | |
Private Member Functions | |
bool | buildTrack (const Trajectory, AlgoProductCollection &algoResults, float, const reco::BeamSpot &, const reco::TrackRef *) const |
Construct Tracks to be put in the event. More... | |
float | calculateNdof (const Trajectory vtraj) const |
int | checkHits (Trajectory iInitTraj, const Trajectory iFinalTraj) const |
std::pair< TransientTrackingRecHit::RecHitContainer, TrajectoryStateOnSurface > | collectHits (const Trajectory vtraj, const MultiRecHitCollector *measurementCollector, const MeasurementTrackerEvent *measTk) const |
int | countingGoodHits (const Trajectory traj) const |
void | filter (const TrajectoryFitter *fitter, std::vector< Trajectory > &input, int minhits, std::vector< Trajectory > &output, const TransientTrackingRecHitBuilder *builder) const |
Trajectory | fit (const std::pair< TransientTrackingRecHit::RecHitContainer, TrajectoryStateOnSurface > &hits, const TrajectoryFitter *theFitter, Trajectory vtraj) const |
accomplishes the fitting-smoothing step for each annealing value More... | |
void | PrintHit (const TrackingRecHit *const &hit, TrajectoryStateOnSurface &tsos) const |
std::pair< TransientTrackingRecHit::RecHitContainer, TrajectoryStateOnSurface > | updateHits (const Trajectory vtraj, const SiTrackerMultiRecHitUpdator *updator, const MeasurementTrackerEvent *theMTE, double annealing) const |
Private Attributes | |
edm::ParameterSet | conf_ |
int | minHits_ |
All is needed to run the deterministic annealing algorithm. Ported from ORCA.
Definition at line 36 of file DAFTrackProducerAlgorithm.h.
Definition at line 40 of file DAFTrackProducerAlgorithm.h.
Definition at line 38 of file DAFTrackProducerAlgorithm.h.
using DAFTrackProducerAlgorithm::TrackCollection = typename Base::TrackCollection |
Definition at line 39 of file DAFTrackProducerAlgorithm.h.
using DAFTrackProducerAlgorithm::TrajAnnealingCollection = std::vector<TrajAnnealing> |
Definition at line 42 of file DAFTrackProducerAlgorithm.h.
DAFTrackProducerAlgorithm::DAFTrackProducerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 28 of file DAFTrackProducerAlgorithm.cc.
|
inline |
Definition at line 47 of file DAFTrackProducerAlgorithm.h.
References ALCARECOTkAlBeamHalo_cff::filter, trackingPlots::fit, hfClusterShapes_cfi::hits, input, convertSQLitetoXML_cfg::output, and gsfElectronCkfTrackCandidateMaker_cff::updator.
|
private |
Construct Tracks to be put in the event.
Definition at line 239 of file DAFTrackProducerAlgorithm.cc.
References patPFMETCorrections_cff::algo, alongMomentum, FreeTrajectoryState::charge(), Trajectory::chiSquared(), FreeTrajectoryState::curvilinearError(), Trajectory::direction(), Trajectory::firstMeasurement(), TrajectoryStateOnSurface::freeState(), TrajectoryStateClosestToBeamLine::isValid(), Trajectory::isValid(), Trajectory::lastMeasurement(), LogDebug, FreeTrajectoryState::momentum(), ndof, AlCaHLTBitMon_ParallelJobs::p, FreeTrajectoryState::position(), TrajectoryStateClosestToBeamLine::trackStateAtPCA(), TrajectoryMeasurement::updatedState(), findQualityFiles::v, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by runWithCandidate().
|
private |
Definition at line 377 of file DAFTrackProducerAlgorithm.cc.
References makeMuonMisalignmentScenario::components, Trajectory::isValid(), Trajectory::measurements(), ndof, SiTrackerMultiRecHit::recHits(), and SiTrackerMultiRecHit::weight().
Referenced by runWithCandidate().
|
private |
Definition at line 401 of file DAFTrackProducerAlgorithm.cc.
References makeMuonMisalignmentScenario::components, TrackingRecHit::hit(), TrackingRecHit::isValid(), LogDebug, LogTrace, Trajectory::measurements(), PrintHit(), TrajectoryMeasurement::recHit(), SiTrackerMultiRecHit::recHits(), SiTrackerMultiRecHit::weight(), and mps_merge::weight.
Referenced by runWithCandidate().
|
private |
Definition at line 139 of file DAFTrackProducerAlgorithm.cc.
References hfClusterShapes_cfi::hits, LogDebug, and MultiRecHitCollector::recHits().
Referenced by runWithCandidate().
|
private |
Definition at line 289 of file DAFTrackProducerAlgorithm.cc.
References makeMuonMisalignmentScenario::components, MillePedeFileConverter_cfg::e, Trajectory::foundHits(), LogDebug, Trajectory::measurements(), SiTrackerMultiRecHit::recHits(), and SiTrackerMultiRecHit::weight().
Referenced by runWithCandidate().
|
private |
Definition at line 320 of file DAFTrackProducerAlgorithm.cc.
References makeMuonMisalignmentScenario::components, MillePedeFileConverter_cfg::e, TrajectoryFitter::fit(), edm::OwnVector< T, P >::front(), AnalysisDataFormats_SUSYBSMObjects::hc, hfClusterShapes_cfi::hits, LogDebug, TkClonerImpl::makeShared(), TrackingRecHit::missing, SiTrackerMultiRecHit::recHits(), and SiTrackerMultiRecHit::weight().
|
private |
accomplishes the fitting-smoothing step for each annealing value
Definition at line 220 of file DAFTrackProducerAlgorithm.cc.
References TrajectorySeed::direction(), TrajectoryFitter::fitOne(), hfClusterShapes_cfi::hits, Trajectory::isValid(), LogDebug, and Trajectory::seed().
Referenced by trackingPlots.Iteration::modules(), and runWithCandidate().
|
private |
Definition at line 481 of file DAFTrackProducerAlgorithm.cc.
References TrackingRecHit::dimension(), TrackingRecHit::geographicalId(), TrackingRecHit::globalPosition(), TrajectoryStateOnSurface::isValid(), TrackingRecHit::isValid(), TrajectoryStateOnSurface::localPosition(), TrackingRecHit::localPosition(), LogTrace, PV3DBase< T, PVType, FrameType >::perp(), and DetId::rawId().
Referenced by checkHits(), and updateHits().
void DAFTrackProducerAlgorithm::runWithCandidate | ( | const TrackingGeometry * | theG, |
const MagneticField * | theMF, | ||
const TrajTrackAssociationCollection & | TTmap, | ||
const MeasurementTrackerEvent * | measTk, | ||
const TrajectoryFitter * | theFitter, | ||
const TransientTrackingRecHitBuilder * | builder, | ||
const MultiRecHitCollector * | measurementTracker, | ||
const SiTrackerMultiRecHitUpdator * | updator, | ||
const reco::BeamSpot & | bs, | ||
AlgoProductCollection & | algoResults, | ||
TrajAnnealingCollection & | trajann, | ||
bool | TrajAnnSaving_, | ||
AlgoProductCollection & | algoResultsBeforeDAF, | ||
AlgoProductCollection & | algoResultsAfterDAF | ||
) | const |
Run the Final Fit taking TrackCandidates as input.
Definition at line 33 of file DAFTrackProducerAlgorithm.cc.
References edm::AssociationMap< Tag >::begin(), buildTrack(), calculateNdof(), checkHits(), collectHits(), edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, countingGoodHits(), TrajectorySeed::direction(), Trajectory::direction(), edm::AssociationMap< Tag >::end(), fit(), Trajectory::foundHits(), SiTrackerMultiRecHitUpdator::getAnnealingProgram(), hfClusterShapes_cfi::hits, Trajectory::isValid(), edm::Ref< C, T, F >::key(), LogDebug, minHits_, ndof, convertSQLiteXML::ok, Trajectory::seed(), edm::AssociationMap< Tag >::size(), groupFilesInBlocks::temp, and updateHits().
Referenced by DAFTrackProducer::produce().
|
private |
Definition at line 179 of file DAFTrackProducerAlgorithm.cc.
References hfClusterShapes_cfi::hits, MeasurementTrackerEvent::idToDet(), LogDebug, Trajectory::measurements(), PrintHit(), and SiTrackerMultiRecHitUpdator::update().
Referenced by runWithCandidate().
|
private |
Definition at line 108 of file DAFTrackProducerAlgorithm.h.
|
private |
Definition at line 109 of file DAFTrackProducerAlgorithm.h.
Referenced by runWithCandidate().