#include <CosmicTrajectoryBuilder.h>
Public Member Functions | |
CosmicTrajectoryBuilder (const edm::ParameterSet &conf, edm::ConsumesCollector iC) | |
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... | |
~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 | |
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > | builderToken_ |
double | chi2cut |
std::string | geometry |
TkClonerImpl | hitCloner |
TransientTrackingRecHit::RecHitContainer | hits |
const MagneticField * | magfield |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | magfieldToken_ |
const TransientTrackingRecHitBuilder * | RHBuilder |
bool | seed_plus |
Chi2MeasurementEstimator * | theEstimator |
KFTrajectoryFitter * | theFitter |
int | theMinHits |
PropagatorWithMaterial * | thePropagator |
PropagatorWithMaterial * | thePropagatorOp |
KFTrajectorySmoother * | theSmoother |
KFUpdator * | theUpdator |
const TrackerGeometry * | tracker |
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | trackerToken_ |
std::vector< Trajectory > | trajFit |
Definition at line 74 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 76 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 75 of file CosmicTrajectoryBuilder.h.
CosmicTrajectoryBuilder::CosmicTrajectoryBuilder | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 20 of file CosmicTrajectoryBuilder.cc.
References chi2cut, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and theMinHits.
CosmicTrajectoryBuilder::~CosmicTrajectoryBuilder | ( | ) |
Definition at line 34 of file CosmicTrajectoryBuilder.cc.
|
private |
Definition at line 190 of file CosmicTrajectoryBuilder.cc.
References funct::abs(), TransientTrackingRecHitBuilder::build(), chi2cut, Trajectory::chiSquared(), Trajectory::firstMeasurement(), Trajectory::foundHits(), TrajectoryStateOnSurface::globalPosition(), hits, TrackerGeometry::idToDet(), sistrip::SpyUtilities::isValid(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localPosition(), LogDebug, PropagatorWithMaterial::propagate(), Trajectory::push(), qualityFilter(), RHBuilder, Trajectory::seed(), GeomDet::surface(), theEstimator, theFitter, thePropagator, thePropagatorOp, theUpdator, tracker, trajFit, KFUpdator::update(), 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 110 of file CosmicTrajectoryBuilder.cc.
References mps_fire::i, eostools::move(), mps_fire::result, fileCollector::seed, and seedMeasurements().
Referenced by run().
|
inline |
Definition at line 96 of file CosmicTrajectoryBuilder.h.
References RHBuilder.
Referenced by cms::CosmicTrackFinder::produce().
void CosmicTrajectoryBuilder::init | ( | const edm::EventSetup & | es, |
bool | seedplus | ||
) |
Definition at line 36 of file CosmicTrajectoryBuilder.cc.
References alongMomentum, builderToken_, chi2cut, Chi2MeasurementEstimator_cfi::Chi2MeasurementEstimator, edm::EventSetup::getData(), hitCloner, magfield, magfieldToken_, oppositeToMomentum, RHBuilder, seed_plus, KFTrajectorySmoother::setHitCloner(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, and trackerToken_.
Referenced by run().
|
private |
Definition at line 269 of file CosmicTrajectoryBuilder.cc.
References Trajectory::foundHits(), 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 66 of file CosmicTrajectoryBuilder.cc.
References AddHit(), alongMomentum, createStartingTrajectory(), hits, init(), iseed, SortHits(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, TrajectorySmoother::trajectories(), and trajFit.
Referenced by cms::CosmicTrackFinder::produce().
|
private |
Definition at line 118 of file CosmicTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), rpcPointValidation_cfi::recHit, mps_fire::result, RHBuilder, fileCollector::seed, startingTSOS(), and GeomDet::surface().
Referenced by createStartingTrajectory().
|
private |
Definition at line 138 of file CosmicTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), edmNew::DetSetVector< T >::data(), hits, LogDebug, rpcPointValidation_cfi::recHit, RHBuilder, fileCollector::seed, seed_plus, and tracker.
Referenced by run().
|
private |
Definition at line 183 of file CosmicTrajectoryBuilder.cc.
References magfield, fileCollector::seed, and trajectoryStateTransform::transientState().
Referenced by seedMeasurements().
|
private |
|
private |
Definition at line 117 of file CosmicTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 131 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), CosmicTrajectoryBuilder(), and init().
|
private |
Definition at line 136 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 126 of file CosmicTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 134 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 118 of file CosmicTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 115 of file CosmicTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 125 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), hitBuilder(), init(), seedMeasurements(), and SortHits().
|
private |
Definition at line 135 of file CosmicTrajectoryBuilder.h.
Referenced by init(), and SortHits().
|
private |
Definition at line 124 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 128 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 130 of file CosmicTrajectoryBuilder.h.
Referenced by CosmicTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 121 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 122 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 127 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 123 of file CosmicTrajectoryBuilder.h.
|
private |
Definition at line 119 of file CosmicTrajectoryBuilder.h.
Referenced by AddHit(), init(), and SortHits().
|
private |
Definition at line 116 of file CosmicTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 132 of file CosmicTrajectoryBuilder.h.