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
SeedFromConsecutiveHitsTripletOnlyCreator Class Reference

#include <SeedFromConsecutiveHitsTripletOnlyCreator.h>

Inheritance diagram for SeedFromConsecutiveHitsTripletOnlyCreator:
SeedFromConsecutiveHitsCreator SeedCreator

Public Member Functions

 SeedFromConsecutiveHitsTripletOnlyCreator (const edm::ParameterSet &cfg)
 
virtual ~SeedFromConsecutiveHitsTripletOnlyCreator ()
 
- 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 SeedFromConsecutiveHitsTripletOnlyCreator.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file SeedFromConsecutiveHitsTripletOnlyCreator.h.

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

Definition at line 14 of file SeedFromConsecutiveHitsTripletOnlyCreator.h.

14 {}

Member Function Documentation

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

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 12 of file SeedFromConsecutiveHitsTripletOnlyCreator.cc.

References abs, ExpressReco_HICollisions_FallBack::e, edm::EventSetup::get(), and SeedFromConsecutiveHitsCreator::theBOFFMomentum.

16 {
18 
19  const TransientTrackingRecHit::ConstRecHitPointer& tth1 = hits[0];
20  const TransientTrackingRecHit::ConstRecHitPointer& tth2 = hits[1];
21  const TransientTrackingRecHit::ConstRecHitPointer& tth3 = hits[2];
22 
23  FastHelix helix(tth3->globalPosition(), tth2->globalPosition(), tth1->globalPosition(), es, tth1->globalPosition());
24  kine = helix.stateAtVertex().parameters();
25 
27  es.get<IdealMagneticFieldRecord>().get(bfield);
28  bool isBOFF = ( std::abs(bfield->inTesla(GlobalPoint(0,0,0)).z()) < 1e-3 );
29  if (isBOFF && (theBOFFMomentum > 0)) {
30  kine = GlobalTrajectoryParameters(kine.position(),
31  kine.momentum().unit() * theBOFFMomentum,
32  kine.charge(),
33  &*bfield);
34  }
35  return kine;
36 }
#define abs(x)
Definition: mlp_lapack.h:159
const T & get() const
Definition: EventSetup.h:55