CMS 3D CMS Logo

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)
 
 ~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 &cfg)
 
 ~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
edm::ESHandle< MagneticFieldbfield
 
TkClonerImpl cloner
 
const SeedComparitorfilter = 0
 
bool forceKinematicWithRegionDirection_
 
bool isBOFF = false
 
std::string mfName_
 
float nomField
 
edm::ESHandle< PropagatorpropagatorHandle
 
const TrackingRegionregion = 0
 
float theBOFFMomentum
 
float theMinOneOverPtError
 
float theOriginTransverseErrorMultiplier
 
std::string thePropagatorLabel
 
edm::ESHandle< TrackerGeometrytracker
 
std::string TTRHBuilder
 

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)
SeedFromConsecutiveHitsStraightLineCreator::~SeedFromConsecutiveHitsStraightLineCreator ( )
inlineoverride

Member Function Documentation

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

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 6 of file SeedFromConsecutiveHitsStraightLineCreator.cc.

References SeedFromConsecutiveHitsCreator::bfield, TrackingRegion::origin(), lumiQueryAPI::q, SeedFromConsecutiveHitsCreator::region, and MuonErrorMatrixAdjuster_cfi::rescale.

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 true;
23 
24 }
GlobalPoint const & origin() const
int TrackCharge
Definition: TrackCharge.h:4
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11
edm::ESHandle< MagneticField > bfield