CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private 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
virtual void init (const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter)
 
virtual void makeSeed (TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits)
 
 SeedFromConsecutiveHitsCreator (const edm::ParameterSet &cfg)
 
 SeedFromConsecutiveHitsCreator (const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0, double aOriginTransverseErrorMultiplier=1.0, double aMinOneOverPtError=1.0, const std::string &bname="WithTrackAngle")
 
virtual ~SeedFromConsecutiveHitsCreator ()
 
- Public Member Functions inherited from SeedCreator
virtual ~SeedCreator ()
 

Private Member Functions

virtual bool initialKinematic (GlobalTrajectoryParameters &kine, const SeedingHitSet &hits) const
 

Additional Inherited Members

- Protected Attributes inherited from SeedFromConsecutiveHitsCreator
edm::ESHandle< MagneticFieldbfield
 
TkClonerImpl cloner
 
const SeedComparitorfilter = 0
 
bool forceKinematicWithRegionDirection_
 
bool isBOFF = false
 
std::string mfName_
 
float nomField
 
edm::ESHandle< PropagatorpropagatorHandle
 
const TrackingRegionregion = 0
 
double theBOFFMomentum
 
double theMinOneOverPtError
 
double theOriginTransverseErrorMultiplier
 
std::string thePropagatorLabel
 
edm::ESHandle< TrackerGeometrytracker
 
std::string TTRHBuilder
 
bool useSimpleMF_
 

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

bool SeedFromConsecutiveHitsStraightLineCreator::initialKinematic ( GlobalTrajectoryParameters kine,
const SeedingHitSet hits 
) const
privatevirtual

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 6 of file SeedFromConsecutiveHitsStraightLineCreator.cc.

References SeedFromConsecutiveHitsCreator::bfield, SeedComparitor::compatible(), SeedFromConsecutiveHitsCreator::filter, TrackingRegion::origin(), PV3DBase< T, PVType, FrameType >::perp(), lumiQueryAPI::q, and SeedFromConsecutiveHitsCreator::region.

7  {
8 
9  const SeedingHitSet::ConstRecHitPointer& tth1 = hits[0];
10  const SeedingHitSet::ConstRecHitPointer& tth2 = hits[1];
11 
12  const GlobalPoint& vertexPos = region->origin();
13 
14  // Assume initial state is straight line passing through beam spot
15  // with direction given by innermost two seed hits (with big uncertainty)
16  GlobalVector initMomentum(tth2->globalPosition() - tth1->globalPosition());
17  double rescale = 1000./initMomentum.perp();
18  initMomentum *= rescale; // set to approximately infinite momentum
19  TrackCharge q = 1; // irrelevant, since infinite momentum
20  kine = GlobalTrajectoryParameters(vertexPos, initMomentum, q, &*bfield);
21 
22  return (filter ? filter->compatible(hits, kine, *region) : true);
23 
24 }
T perp() const
Definition: PV3DBase.h:72
GlobalPoint const & origin() const
virtual bool compatible(const SeedingHitSet &hits, const TrackingRegion &region) const =0
int TrackCharge
Definition: TrackCharge.h:4
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11