#include <CRackTrajectoryBuilder.h>
Classes | |
class | CompareDetByTraj |
Public Member Functions | |
CRackTrajectoryBuilder (const edm::ParameterSet &conf) | |
Trajectory | createStartingTrajectory (const TrajectorySeed &seed) const |
const TransientTrackingRecHitBuilder * | hitBuilder () 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, const 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 (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, 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 |
bool | useMatchedHits |
Friends | |
class | CompareDetByTraj |
Definition at line 125 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 138 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 130 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 132 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 134 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 135 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 129 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(), AlCaHLTBitMon_QueryRunRegistry::string, theMinHits, and useMatchedHits.
CRackTrajectoryBuilder::~CRackTrajectoryBuilder | ( | ) |
Definition at line 52 of file CRackTrajectoryBuilder.cc.
|
private |
do the old version ....
Definition at line 614 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 253 of file CRackTrajectoryBuilder.cc.
References TrajectorySeed::direction(), i, eostools::move(), query::result, and seedMeasurements().
Referenced by run(), and SortHits().
|
inline |
Definition at line 201 of file CRackTrajectoryBuilder.h.
References RHBuilder.
Referenced by cms::CosmicTrackFinder::produce().
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, AlCaHLTBitMon_QueryRunRegistry::string, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, and tracker.
Referenced by run().
|
private |
Definition at line 944 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 923 of file CRackTrajectoryBuilder.cc.
References TrackingRecHit::geographicalId(), BaseTrackerRecHit::localPosition(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by SortHits().
|
private |
Definition at line 900 of file CRackTrajectoryBuilder.cc.
References Trajectory::foundHits(), geometry, hits, 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(), TrajectoryFitter::fit(), Trajectory::foundHits(), hits, init(), innerState(), iseed, Propagator::propagate(), qualityFilter(), RHBuilder, Trajectory::seed(), seed_plus, SortHits(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, TrajectorySmoother::trajectories(), trajFit, and TrajectoryMeasurement::updatedState().
Referenced by cms::CosmicTrackFinder::produce().
|
private |
Definition at line 263 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), eostools::move(), TrajectorySeed::recHits(), query::result, RHBuilder, startingTSOS(), and GeomDet::surface().
Referenced by createStartingTrajectory().
|
private |
Definition at line 289 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, visualization-live-secondInstance_cfg::m, LocalTrajectoryError::matrix(), SiStripMatchedRecHit2D::monoHit(), TrajectorySeed::nHits(), Propagator::propagate(), DetId::rawId(), TrajectorySeed::recHits(), RHBuilder, alignCSCRings::s, seed_plus, startingTSOS(), SiStripMatchedRecHit2D::stereoHit(), thePropagator, tracker, TrajectoryMeasurement::updatedState(), useMatchedHits, HLT_25ns14e33_v1_cff::yMax, and HLT_25ns14e33_v1_cff::yMin.
Referenced by run().
|
private |
Definition at line 604 of file CRackTrajectoryBuilder.cc.
References magfield, TrajectorySeed::startingState(), and trajectoryStateTransform::transientState().
Referenced by seedMeasurements(), and SortHits().
|
private |
|
friend |
Definition at line 141 of file CRackTrajectoryBuilder.h.
Referenced by AddHit().
|
private |
Definition at line 261 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 241 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 256 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), run(), and SortHits().
|
private |
Definition at line 257 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), and CRackTrajectoryBuilder().
|
private |
Definition at line 266 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), and qualityFilter().
|
private |
Definition at line 264 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 239 of file CRackTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 251 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), hitBuilder(), init(), run(), seedMeasurements(), and SortHits().
|
private |
Definition at line 265 of file CRackTrajectoryBuilder.h.
Referenced by init(), run(), and SortHits().
|
private |
Definition at line 250 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 253 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 260 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 243 of file CRackTrajectoryBuilder.h.
Referenced by init(), innerState(), run(), and SortHits().
|
private |
Definition at line 244 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 252 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 249 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 240 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), and SortHits().
|
private |
Definition at line 262 of file CRackTrajectoryBuilder.h.
Referenced by run().
|
private |
Definition at line 258 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and SortHits().