CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
SeedFromConsecutiveHitsStraightLineCreator Class Reference

#include <SeedFromConsecutiveHitsStraightLineCreator.h>

Inheritance diagram for SeedFromConsecutiveHitsStraightLineCreator:
SeedFromConsecutiveHitsCreator SeedCreator

Public Member Functions

 SeedFromConsecutiveHitsStraightLineCreator (const edm::ParameterSet &cfg)
 
virtual ~SeedFromConsecutiveHitsStraightLineCreator ()
 
- Public Member Functions inherited from SeedFromConsecutiveHitsCreator
 SeedFromConsecutiveHitsCreator (const edm::ParameterSet &cfg)
 
 SeedFromConsecutiveHitsCreator (const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0)
 
virtual const TrajectorySeedtrajectorySeed (TrajectorySeedCollection &seedCollection, const SeedingHitSet &ordered, const TrackingRegion &region, const edm::EventSetup &es)
 
virtual ~SeedFromConsecutiveHitsCreator ()
 
- Public Member Functions inherited from SeedCreator
virtual ~SeedCreator ()
 

Protected Member Functions

virtual GlobalTrajectoryParameters initialKinematic (const SeedingHitSet &hits, const TrackingRegion &region, const edm::EventSetup &es) const
 
- Protected Member Functions inherited from SeedFromConsecutiveHitsCreator
virtual const TrajectorySeedbuildSeed (TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es) const
 
virtual bool checkHit (const TrajectoryStateOnSurface &, const TransientTrackingRecHit::ConstRecHitPointer &hit, const edm::EventSetup &es) const
 
virtual CurvilinearTrajectoryError initialError (const TrackingRegion &region, float sinTheta) const
 
virtual
TransientTrackingRecHit::RecHitPointer 
refitHit (const TransientTrackingRecHit::ConstRecHitPointer &hit, const TrajectoryStateOnSurface &state) const
 

Additional Inherited Members

- Protected Attributes inherited from SeedFromConsecutiveHitsCreator
double theBOFFMomentum
 
std::string thePropagatorLabel
 

Detailed Description

Definition at line 8 of file SeedFromConsecutiveHitsStraightLineCreator.h.

Constructor & Destructor Documentation

SeedFromConsecutiveHitsStraightLineCreator::SeedFromConsecutiveHitsStraightLineCreator ( const edm::ParameterSet cfg)
inline

Definition at line 11 of file SeedFromConsecutiveHitsStraightLineCreator.h.

11  :
SeedFromConsecutiveHitsCreator(const edm::ParameterSet &cfg)
virtual SeedFromConsecutiveHitsStraightLineCreator::~SeedFromConsecutiveHitsStraightLineCreator ( )
inlinevirtual

Definition at line 14 of file SeedFromConsecutiveHitsStraightLineCreator.h.

14 {}

Member Function Documentation

GlobalTrajectoryParameters SeedFromConsecutiveHitsStraightLineCreator::initialKinematic ( const SeedingHitSet hits,
const TrackingRegion region,
const edm::EventSetup es 
) const
protectedvirtual

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 11 of file SeedFromConsecutiveHitsStraightLineCreator.cc.

References edm::EventSetup::get(), TrackingRegion::origin(), PV3DBase< T, PVType, FrameType >::perp(), and lumiQueryAPI::q.

15 {
17 
18  const TransientTrackingRecHit::ConstRecHitPointer& tth1 = hits[0];
19  const TransientTrackingRecHit::ConstRecHitPointer& tth2 = hits[1];
20 
21  const GlobalPoint& vertexPos = region.origin();
23  es.get<IdealMagneticFieldRecord>().get(bfield);
24 
25  // Assume initial state is straight line passing through beam spot
26  // with direction given by innermost two seed hits (with big uncertainty)
27  GlobalVector initMomentum(tth2->globalPosition() - tth1->globalPosition());
28  double rescale = 1000./initMomentum.perp();
29  initMomentum *= rescale; // set to approximately infinite momentum
30  TrackCharge q = 1; // irrelevant, since infinite momentum
31  kine = GlobalTrajectoryParameters(vertexPos, initMomentum, q, &*bfield);
32 
33  return kine;
34 }
T perp() const
Definition: PV3DBase.h:66
virtual GlobalPoint origin() const =0
int TrackCharge
Definition: TrackCharge.h:4
const T & get() const
Definition: EventSetup.h:55