#include <CosmicTrajectoryBuilder.h>
Public Member Functions | |
CosmicTrajectoryBuilder (const edm::ParameterSet &conf) | |
Trajectory | createStartingTrajectory (const TrajectorySeed &seed) const |
void | init (const edm::EventSetup &es, bool) |
void | run (const TrajectorySeedCollection &collseed, const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const SiPixelRecHitCollection &collpixel, const edm::EventSetup &es, edm::Event &e, std::vector< Trajectory > &trajoutput) |
Runs the algorithm. More... | |
~CosmicTrajectoryBuilder () | |
Private Types | |
typedef TrajectoryMeasurement | TM |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
void | AddHit (Trajectory &traj, const std::vector< const TrackingRecHit * > &Hits) |
bool | qualityFilter (const Trajectory &traj) |
std::vector < TrajectoryMeasurement > | seedMeasurements (const TrajectorySeed &seed) const |
std::vector< const TrackingRecHit * > | SortHits (const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const SiPixelRecHitCollection &collpixel, const TrajectorySeed &seed) |
TSOS | startingTSOS (const TrajectorySeed &seed) const |
void | updateTrajectory (Trajectory &traj, const TM &tm, const TransientTrackingRecHit &hit) const |
Private Attributes | |
double | chi2cut |
edm::ParameterSet | conf_ |
std::string | geometry |
TransientTrackingRecHit::RecHitContainer | hits |
edm::ESHandle< MagneticField > | magfield |
const TransientTrackingRecHitBuilder * | RHBuilder |
bool | seed_plus |
Chi2MeasurementEstimator * | theEstimator |
const KFTrajectoryFitter * | theFitter |
int | theMinHits |
PropagatorWithMaterial * | thePropagator |
PropagatorWithMaterial * | thePropagatorOp |
const KFTrajectorySmoother * | theSmoother |
KFUpdator * | theUpdator |
edm::ESHandle< TrackerGeometry > | tracker |
std::vector< Trajectory > | trajFit |
Definition at line 73 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 77 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 76 of file CosmicTrajectoryBuilder.h.
CosmicTrajectoryBuilder::CosmicTrajectoryBuilder | ( | const edm::ParameterSet & | conf | ) |
Definition at line 21 of file CosmicTrajectoryBuilder.cc.
References chi2cut, conf_, geometry, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and theMinHits.
CosmicTrajectoryBuilder::~CosmicTrajectoryBuilder | ( | ) |
Definition at line 33 of file CosmicTrajectoryBuilder.cc.
|
private |
Definition at line 259 of file CosmicTrajectoryBuilder.cc.
References funct::abs(), TransientTrackingRecHitBuilder::build(), chi2cut, Trajectory::chiSquared(), Trajectory::firstMeasurement(), Trajectory::foundHits(), TrajectoryStateOnSurface::globalPosition(), hits, TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localPosition(), LogDebug, Trajectory::push(), qualityFilter(), RHBuilder, Trajectory::seed(), theEstimator, theFitter, thePropagator, thePropagatorOp, theUpdator, tracker, trajFit, TrajectoryMeasurement::updatedState(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
Trajectory CosmicTrajectoryBuilder::createStartingTrajectory | ( | const TrajectorySeed & | seed | ) | const |
Definition at line 130 of file CosmicTrajectoryBuilder.cc.
References TrajectorySeed::direction(), i, query::result, and seedMeasurements().
Referenced by run().
void CosmicTrajectoryBuilder::init | ( | const edm::EventSetup & | es, |
bool | seedplus | ||
) |
Definition at line 37 of file CosmicTrajectoryBuilder.cc.
References alongMomentum, chi2cut, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, conf_, edm::EventSetup::get(), edm::ParameterSet::getParameter(), KFTrajectoryFitterESProducer_cfi::KFTrajectoryFitter, KFTrajectorySmootherESProducer_cfi::KFTrajectorySmoother, magfield, oppositeToMomentum, edm::ESHandle< class >::product(), RHBuilder, seed_plus, AlCaHLTBitMon_QueryRunRegistry::string, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, and tracker.
Referenced by run().
|
private |
Definition at line 347 of file CosmicTrajectoryBuilder.cc.
References Trajectory::foundHits(), geometry, hits, Trajectory::recHits(), and theMinHits.
Referenced by AddHit().
void CosmicTrajectoryBuilder::run | ( | const TrajectorySeedCollection & | collseed, |
const SiStripRecHit2DCollection & | collstereo, | ||
const SiStripRecHit2DCollection & | collrphi, | ||
const SiStripMatchedRecHit2DCollection & | collmatched, | ||
const SiPixelRecHitCollection & | collpixel, | ||
const edm::EventSetup & | es, | ||
edm::Event & | e, | ||
std::vector< Trajectory > & | trajoutput | ||
) |
Runs the algorithm.
Definition at line 81 of file CosmicTrajectoryBuilder.cc.
References AddHit(), alongMomentum, createStartingTrajectory(), hits, init(), iseed, SortHits(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, and trajFit.
Referenced by cms::CosmicTrackFinder::produce().
|
private |
Definition at line 145 of file CosmicTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), TrajectorySeed::recHits(), query::result, RHBuilder, startingTSOS(), and GeomDet::surface().
Referenced by createStartingTrajectory().
|
private |
Definition at line 175 of file CosmicTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), edmNew::DetSetVector< T >::data(), hits, LogDebug, TrajectorySeed::recHits(), RHBuilder, seed_plus, and tracker.
Referenced by run().
|
private |
Definition at line 249 of file CosmicTrajectoryBuilder.cc.
References magfield, TrajectorySeed::startingState(), and trajectoryStateTransform::transientState().
Referenced by seedMeasurements().
|
private |
|
private |
Definition at line 135 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), CosmicTrajectoryBuilder(), and init().
|
private |
Definition at line 122 of file CosmicTrajectoryBuilder.h.
Referenced by CosmicTrajectoryBuilder(), and init().
|
private |
Definition at line 140 of file CosmicTrajectoryBuilder.h.
Referenced by CosmicTrajectoryBuilder(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), and qualityFilter().
|
private |
Definition at line 138 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 120 of file CosmicTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 128 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), init(), seedMeasurements(), and SortHits().
|
private |
Definition at line 139 of file CosmicTrajectoryBuilder.h.
Referenced by init(), and SortHits().
|
private |
Definition at line 127 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 130 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 134 of file CosmicTrajectoryBuilder.h.
Referenced by CosmicTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 124 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 125 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 129 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 126 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 121 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), init(), and SortHits().
|
private |
Definition at line 136 of file CosmicTrajectoryBuilder.h.