#include <CRackTrajectoryBuilder.h>
Classes | |
class | CompareDetByTraj |
Public Member Functions | |
CRackTrajectoryBuilder (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... | |
~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 | |
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > | builderToken_ |
double | chi2cut |
bool | debug_info |
bool | fastPropagation |
std::string | geometry |
TransientTrackingRecHit::RecHitContainer | hits |
const MagneticField * | magfield |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | magfieldToken_ |
const TransientTrackingRecHitBuilder * | RHBuilder |
bool | seed_plus |
Chi2MeasurementEstimator * | theEstimator |
const KFTrajectoryFitter * | theFitter |
int | theMinHits |
PropagatorWithMaterial * | thePropagator |
PropagatorWithMaterial * | thePropagatorOp |
const KFTrajectorySmoother * | theSmoother |
KFUpdator * | theUpdator |
const TrackerGeometry * | tracker |
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | trackerToken_ |
std::vector< Trajectory > | trajFit |
bool | useMatchedHits |
Friends | |
class | CompareDetByTraj |
Definition at line 122 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 134 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 126 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 128 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 130 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 131 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 125 of file CRackTrajectoryBuilder.h.
CRackTrajectoryBuilder::CRackTrajectoryBuilder | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 29 of file CRackTrajectoryBuilder.cc.
References chi2cut, debug_info, fastPropagation, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), AlCaHLTBitMon_QueryRunRegistry::string, theMinHits, and useMatchedHits.
CRackTrajectoryBuilder::~CRackTrajectoryBuilder | ( | ) |
Definition at line 47 of file CRackTrajectoryBuilder.cc.
|
private |
do the old version ....
Definition at line 472 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), chi2cut, Trajectory::chiSquared(), CompareDetByTraj, gather_cfg::cout, debug_info, fastPropagation, spr::find(), TrackingRecHit::geographicalId(), TrajectoryStateOnSurface::globalPosition(), hits, TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), Propagator::propagate(), Trajectory::push(), DetId::rawId(), RHBuilder, GeomDet::surface(), theEstimator, theUpdator, tracker, KFUpdator::update(), and TrajectoryMeasurement::updatedState().
Referenced by run().
Trajectory CRackTrajectoryBuilder::createStartingTrajectory | ( | const TrajectorySeed & | seed | ) | const |
Definition at line 212 of file CRackTrajectoryBuilder.cc.
References mps_fire::i, eostools::move(), mps_fire::result, fileCollector::seed, and seedMeasurements().
Referenced by run(), and SortHits().
|
inline |
Definition at line 192 of file CRackTrajectoryBuilder.h.
References RHBuilder.
Referenced by cms::CosmicTrackFinder::produce().
void CRackTrajectoryBuilder::init | ( | const edm::EventSetup & | es, |
bool | seedplus | ||
) |
Definition at line 51 of file CRackTrajectoryBuilder.cc.
References alongMomentum, builderToken_, chi2cut, Chi2MeasurementEstimator_cfi::Chi2MeasurementEstimator, edm::EventSetup::getData(), magfield, magfieldToken_, oppositeToMomentum, RHBuilder, seed_plus, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, and trackerToken_.
Referenced by run().
|
private |
Definition at line 791 of file CRackTrajectoryBuilder.cc.
References alongMomentum, correctionTermsCaloMet_cff::C, Chi2MeasurementEstimator_cfi::Chi2MeasurementEstimator, Trajectory::direction(), Trajectory::foundHits(), mps_fire::i, sistrip::SpyUtilities::isValid(), TrajectoryStateOnSurface::localParameters(), PropagatorWithMaterial::magneticField(), Trajectory::measurements(), TrackingDataMCValidation_Standalone_cff::nhits, oppositeToMomentum, rpcPointValidation_cfi::recHit, TrajectoryMeasurement::recHit(), TrajectoryStateOnSurface::surface(), thePropagator, and TrajectoryMeasurement::updatedState().
Referenced by run().
|
private |
Definition at line 774 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 751 of file CRackTrajectoryBuilder.cc.
References Trajectory::foundHits(), 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 80 of file CRackTrajectoryBuilder.cc.
References AddHit(), alongMomentum, TransientTrackingRecHitBuilder::build(), gather_cfg::cout, createStartingTrajectory(), debug_info, Trajectory::firstMeasurement(), Trajectory::foundHits(), hits, TrackerGeometry::idToDet(), init(), innerState(), iseed, sistrip::SpyUtilities::isValid(), PropagatorWithMaterial::propagate(), qualityFilter(), Trajectory::recHits(), groupFilesInBlocks::reverse, 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 220 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), rpcPointValidation_cfi::recHit, mps_fire::result, RHBuilder, fileCollector::seed, startingTSOS(), and GeomDet::surface().
Referenced by createStartingTrajectory().
|
private |
Definition at line 241 of file CRackTrajectoryBuilder.cc.
References TransientTrackingRecHitBuilder::build(), gather_cfg::cout, createStartingTrajectory(), edmNew::DetSetVector< T >::data(), debug_info, spr::find(), TrackingRecHit::geographicalId(), TrajectoryStateOnSurface::globalPosition(), hits, TrackerGeometry::idToDet(), isDifferentStripReHit2D(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localError(), LogDebug, visualization-live-secondInstance_cfg::m, LocalTrajectoryError::matrix(), SiStripMatchedRecHit2D::monoHit(), PropagatorWithMaterial::propagate(), DetId::rawId(), RHBuilder, alignCSCRings::s, fileCollector::seed, seed_plus, startingTSOS(), SiStripMatchedRecHit2D::stereoHit(), thePropagator, tracker, TrajectoryMeasurement::updatedState(), useMatchedHits, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
Referenced by run().
|
private |
Definition at line 465 of file CRackTrajectoryBuilder.cc.
References magfield, fileCollector::seed, and trajectoryStateTransform::transientState().
Referenced by seedMeasurements(), and SortHits().
|
private |
|
friend |
Definition at line 137 of file CRackTrajectoryBuilder.h.
Referenced by AddHit().
|
private |
Definition at line 220 of file CRackTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 242 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), and init().
|
private |
Definition at line 237 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), CRackTrajectoryBuilder(), run(), and SortHits().
|
private |
Definition at line 238 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), and CRackTrajectoryBuilder().
|
private |
Definition at line 247 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 245 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), qualityFilter(), run(), and SortHits().
|
private |
Definition at line 221 of file CRackTrajectoryBuilder.h.
Referenced by init(), and startingTSOS().
|
private |
Definition at line 218 of file CRackTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 232 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), hitBuilder(), init(), run(), seedMeasurements(), and SortHits().
|
private |
Definition at line 246 of file CRackTrajectoryBuilder.h.
Referenced by init(), run(), and SortHits().
|
private |
Definition at line 231 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 234 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 241 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and qualityFilter().
|
private |
Definition at line 224 of file CRackTrajectoryBuilder.h.
Referenced by init(), innerState(), run(), and SortHits().
|
private |
Definition at line 225 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 233 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 230 of file CRackTrajectoryBuilder.h.
|
private |
Definition at line 222 of file CRackTrajectoryBuilder.h.
Referenced by AddHit(), init(), run(), and SortHits().
|
private |
Definition at line 219 of file CRackTrajectoryBuilder.h.
Referenced by init().
|
private |
Definition at line 243 of file CRackTrajectoryBuilder.h.
Referenced by run().
|
private |
Definition at line 239 of file CRackTrajectoryBuilder.h.
Referenced by CRackTrajectoryBuilder(), and SortHits().