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, const SeedComparitor *filter)
 
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 SeedComparitor *filter, bool &passesFilter) const
 
- Protected Member Functions inherited from SeedFromConsecutiveHitsCreator
virtual const TrajectorySeedbuildSeed (TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es, const SeedComparitor *filter) const
 
virtual bool checkHit (const TrajectoryStateOnSurface &tsos, const TransientTrackingRecHit::ConstRecHitPointer &hit, const edm::EventSetup &es, const SeedComparitor *filter) 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 SeedComparitor filter,
bool &  passesFilter 
) const
protectedvirtual

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 12 of file SeedFromConsecutiveHitsTripletOnlyCreator.cc.

References abs, SeedComparitor::compatible(), alignCSCRings::e, edm::EventSetup::get(), and SeedFromConsecutiveHitsCreator::theBOFFMomentum.

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