#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, 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 621 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), chi2cut, Trajectory::chiSquared(), CompareDetByTraj, gather_cfg::cout, debug_info, fastPropagation, spr::find(), TrackingRecHit::geographicalId(), TrajectoryStateOnSurface::globalPosition(), hits, TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), Propagator::propagate(), Trajectory::push(), DetId::rawId(), RHBuilder, theEstimator, theUpdator, tracker, 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, AlCaHLTBitMon_QueryRunRegistry::string, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, and tracker.
Referenced by run().
|
private |
Definition at line 952 of file CRackTrajectoryBuilder.cc.
References alongMomentum, funct::C, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, Trajectory::direction(), Trajectory::foundHits(), i, TrajectoryStateOnSurface::localParameters(), Trajectory::measurements(), oppositeToMomentum, TrajectoryMeasurement::recHit(), TrajectoryStateOnSurface::surface(), thePropagator, and TrajectoryMeasurement::updatedState().
Referenced by run().
|
private |
|
private |
Definition at line 907 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(), Trajectory::foundHits(), hits, init(), innerState(), iseed, qualityFilter(), Trajectory::recHits(), RHBuilder, Trajectory::seed(), seed_plus, SortHits(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, 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(), TrajectoryStateOnSurface::globalPosition(), hits, isDifferentStripReHit2D(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localError(), LogDebug, m, LocalTrajectoryError::matrix(), TrajectorySeed::nHits(), TrajectorySeed::recHits(), RHBuilder, alignCSCRings::s, seed_plus, startingTSOS(), thePropagator, tracker, TrajectoryMeasurement::updatedState(), and useMatchedHits.
Referenced by run().
|
private |
Definition at line 611 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 256 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 236 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 251 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), run(), and SortHits().
|
private |
Definition at line 252 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), and CRackTrajectoryBuilder().
|
private |
Definition at line 261 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), and qualityFilter().
|
private |
Definition at line 259 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 234 of file CRackTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 246 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), seedMeasurements(), and SortHits().
|
private |
Definition at line 260 of file CRackTrajectoryBuilder.h.
Referenced by init(), run(), and SortHits().
|
private |
Definition at line 245 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 248 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 255 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 238 of file CRackTrajectoryBuilder.h.
Referenced by init(), innerState(), run(), and SortHits().
|
private |
Definition at line 239 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 247 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 244 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 235 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), and SortHits().
|
private |
Definition at line 257 of file CRackTrajectoryBuilder.h.
Referenced by run().
|
private |
Definition at line 253 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and SortHits().