CMS 3D CMS Logo

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

#include <SeedFromConsecutiveHitsStraightLineCreator.h>

Inheritance diagram for SeedFromConsecutiveHitsStraightLineCreator:
SeedFromConsecutiveHitsCreator SeedCreator

Public Member Functions

 SeedFromConsecutiveHitsStraightLineCreator (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
 ~SeedFromConsecutiveHitsStraightLineCreator () override
 
- Public Member Functions inherited from SeedFromConsecutiveHitsCreator
void init (const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter) final
 
void makeSeed (TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits) final
 
 SeedFromConsecutiveHitsCreator (const edm::ParameterSet &, edm::ConsumesCollector &&)
 
 ~SeedFromConsecutiveHitsCreator () override
 
- Public Member Functions inherited from SeedCreator
virtual ~SeedCreator ()
 

Private Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from SeedFromConsecutiveHitsCreator
static void fillDescriptions (edm::ParameterSetDescription &desc)
 
static const char * fillDescriptionsLabel ()
 
- Protected Attributes inherited from SeedFromConsecutiveHitsCreator
TkClonerImpl cloner
 
const SeedComparitorfilter = nullptr
 
bool forceKinematicWithRegionDirection_
 
bool isBOFF = false
 
MagneticField const * magneticField_
 
const edm::ESGetToken
< MagneticField,
IdealMagneticFieldRecord
magneticFieldESToken_
 
std::string mfName_
 
float nomField
 
Propagator const * propagator_
 
const edm::ESGetToken
< Propagator,
TrackingComponentsRecord
propagatorESToken_
 
const TrackingRegionregion = nullptr
 
float theBOFFMomentum
 
float theMinOneOverPtError
 
float theOriginTransverseErrorMultiplier
 
std::string thePropagatorLabel
 
TrackerGeometry const * trackerGeometry_
 
const edm::ESGetToken
< TrackerGeometry,
TrackerDigiGeometryRecord
trackerGeometryESToken_
 
const edm::ESGetToken
< TransientTrackingRecHitBuilder,
TransientRecHitRecord
transientTrackingRecHitBuilderESToken_
 
std::string TTRHBuilder
 

Detailed Description

Definition at line 10 of file SeedFromConsecutiveHitsStraightLineCreator.h.

Constructor & Destructor Documentation

SeedFromConsecutiveHitsStraightLineCreator::SeedFromConsecutiveHitsStraightLineCreator ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 12 of file SeedFromConsecutiveHitsStraightLineCreator.h.

SeedFromConsecutiveHitsCreator(const edm::ParameterSet &, edm::ConsumesCollector &&)
def move
Definition: eostools.py:511
SeedFromConsecutiveHitsStraightLineCreator::~SeedFromConsecutiveHitsStraightLineCreator ( )
inlineoverride

Definition at line 15 of file SeedFromConsecutiveHitsStraightLineCreator.h.

15 {}

Member Function Documentation

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

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 4 of file SeedFromConsecutiveHitsStraightLineCreator.cc.

References SeedFromConsecutiveHitsCreator::magneticField_, TrackingRegion::origin(), PV3DBase< T, PVType, FrameType >::perp(), submitPVResolutionJobs::q, and SeedFromConsecutiveHitsCreator::region.

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