#include <CRackTrajectoryBuilder.h>
Classes | |
class | CompareDetByTraj |
Public Member Functions | |
CRackTrajectoryBuilder (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... | |
~CRackTrajectoryBuilder () | |
Private Types | |
typedef std::pair < TrackingRecHitRangeIterator, TSOS > | PairTrackingRecHitTsos |
typedef TrajectoryMeasurement | TM |
typedef std::vector< const TrackingRecHit * >::iterator | TrackingRecHitIterator |
typedef std::pair < TrackingRecHitIterator, TrackingRecHitIterator > | TrackingRecHitRange |
typedef std::vector < TrackingRecHitRange > ::iterator | TrackingRecHitRangeIterator |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
void | AddHit (Trajectory &traj, std::vector< const TrackingRecHit * >Hits, Propagator *currPropagator) |
std::pair < TrajectoryStateOnSurface, const GeomDet * > | innerState (const Trajectory &traj) const |
bool | isDifferentStripReHit2D (const SiStripRecHit2D &hitA, const SiStripRecHit2D &hitB) |
bool | qualityFilter (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, const bool bAddSeedHits) |
TSOS | startingTSOS (const TrajectorySeed &seed) const |
void | updateTrajectory (Trajectory &traj, const TM &tm, const TransientTrackingRecHit &hit) const |
Private Attributes | |
double | chi2cut |
edm::ParameterSet | conf_ |
bool | debug_info |
bool | fastPropagation |
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 |
TrajectoryStateTransform | tsTransform |
bool | useMatchedHits |
Friends | |
class | CompareDetByTraj |
Definition at line 128 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 141 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 133 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 135 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 137 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 138 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 132 of file CRackTrajectoryBuilder.h.
CRackTrajectoryBuilder::CRackTrajectoryBuilder | ( | const edm::ParameterSet & | conf | ) |
Definition at line 32 of file CRackTrajectoryBuilder.cc.
References chi2cut, conf_, debug_info, fastPropagation, geometry, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), theMinHits, and useMatchedHits.
CRackTrajectoryBuilder::~CRackTrajectoryBuilder | ( | ) |
Definition at line 52 of file CRackTrajectoryBuilder.cc.
|
private |
do the old version ....
Definition at line 619 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), chi2cut, Trajectory::chiSquared(), CompareDetByTraj, gather_cfg::cout, debug_info, Chi2MeasurementEstimator::estimate(), fastPropagation, spr::find(), TrackingRecHit::geographicalId(), TrajectoryStateOnSurface::globalPosition(), hits, TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), Propagator::propagate(), Trajectory::push(), DetId::rawId(), RHBuilder, theEstimator, theUpdator, tracker, KFUpdator::update(), and TrajectoryMeasurement::updatedState().
Referenced by run().
Trajectory CRackTrajectoryBuilder::createStartingTrajectory | ( | const TrajectorySeed & | seed | ) | const |
Definition at line 255 of file CRackTrajectoryBuilder.cc.
References TrajectorySeed::direction(), i, query::result, and seedMeasurements().
Referenced by run(), and SortHits().
void CRackTrajectoryBuilder::init | ( | const edm::EventSetup & | es, |
bool | seedplus | ||
) |
Definition at line 57 of file CRackTrajectoryBuilder.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, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, and tracker.
Referenced by run().
|
private |
Definition at line 950 of file CRackTrajectoryBuilder.cc.
References alongMomentum, funct::C, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, Trajectory::direction(), Trajectory::foundHits(), i, TrajectoryStateOnSurface::localParameters(), PropagatorWithMaterial::magneticField(), Trajectory::measurements(), oppositeToMomentum, TrajectoryMeasurement::recHit(), TrajectoryStateOnSurface::surface(), thePropagator, and TrajectoryMeasurement::updatedState().
Referenced by run().
|
private |
Definition at line 929 of file CRackTrajectoryBuilder.cc.
References TrackingRecHit::geographicalId(), BaseSiTrackerRecHit2DLocalPos::localPosition(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by SortHits().
|
private |
Definition at line 905 of file CRackTrajectoryBuilder.cc.
References Trajectory::foundHits(), geometry, hits, Trajectory::recHits(), and theMinHits.
Referenced by run().
void CRackTrajectoryBuilder::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 106 of file CRackTrajectoryBuilder.cc.
References AddHit(), alongMomentum, TransientTrackingRecHitBuilder::build(), gather_cfg::cout, createStartingTrajectory(), debug_info, Trajectory::firstMeasurement(), KFTrajectoryFitter::fit(), Trajectory::foundHits(), hits, init(), innerState(), iseed, PropagatorWithMaterial::propagate(), qualityFilter(), Trajectory::recHits(), RHBuilder, Trajectory::seed(), seed_plus, SortHits(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, KFTrajectorySmoother::trajectories(), trajFit, and TrajectoryMeasurement::updatedState().
Referenced by cms::CosmicTrackFinder::produce().
|
private |
Definition at line 270 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), TrajectorySeed::recHits(), query::result, RHBuilder, startingTSOS(), and GeomDet::surface().
Referenced by createStartingTrajectory().
|
private |
Definition at line 296 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), gather_cfg::cout, createStartingTrajectory(), edmNew::DetSetVector< T >::data(), debug_info, spr::find(), TrackingRecHit::geographicalId(), TrajectoryStateOnSurface::globalPosition(), hits, isDifferentStripReHit2D(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localError(), LogDebug, LocalTrajectoryError::matrix(), SiStripMatchedRecHit2D::monoHit(), TrajectorySeed::nHits(), PropagatorWithMaterial::propagate(), DetId::rawId(), TrajectorySeed::recHits(), RHBuilder, seed_plus, startingTSOS(), SiStripMatchedRecHit2D::stereoHit(), thePropagator, tracker, TrajectoryMeasurement::updatedState(), and useMatchedHits.
Referenced by run().
|
private |
Definition at line 609 of file CRackTrajectoryBuilder.cc.
References magfield, TrajectorySeed::startingState(), TrajectoryStateTransform::transientState(), and tsTransform.
Referenced by seedMeasurements(), and SortHits().
|
private |
|
friend |
Definition at line 144 of file CRackTrajectoryBuilder.h.
Referenced by AddHit().
|
private |
Definition at line 259 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 239 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 254 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), run(), and SortHits().
|
private |
Definition at line 255 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), and CRackTrajectoryBuilder().
|
private |
Definition at line 264 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), and qualityFilter().
|
private |
Definition at line 262 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 237 of file CRackTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 249 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), seedMeasurements(), and SortHits().
|
private |
Definition at line 263 of file CRackTrajectoryBuilder.h.
Referenced by init(), run(), and SortHits().
|
private |
Definition at line 248 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 251 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 258 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 241 of file CRackTrajectoryBuilder.h.
Referenced by init(), innerState(), run(), and SortHits().
|
private |
Definition at line 242 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 250 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 247 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 238 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), and SortHits().
|
private |
Definition at line 260 of file CRackTrajectoryBuilder.h.
Referenced by run().
|
private |
Definition at line 240 of file CRackTrajectoryBuilder.h.
Referenced by startingTSOS().
|
private |
Definition at line 256 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and SortHits().