CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
SeedFromConsecutiveHitsTripletOnlyCreator Class Referencefinal

#include <SeedFromConsecutiveHitsTripletOnlyCreator.h>

Inheritance diagram for SeedFromConsecutiveHitsTripletOnlyCreator:
SeedFromConsecutiveHitsCreator SeedCreator

Public Member Functions

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

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &desc)
 
static const char * fillDescriptionsLabel ()
 
- Static Public Member Functions inherited from SeedFromConsecutiveHitsCreator
static void fillDescriptions (edm::ParameterSetDescription &desc)
 
static const char * fillDescriptionsLabel ()
 

Private Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 7 of file SeedFromConsecutiveHitsTripletOnlyCreator.h.

Constructor & Destructor Documentation

◆ SeedFromConsecutiveHitsTripletOnlyCreator()

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

◆ ~SeedFromConsecutiveHitsTripletOnlyCreator()

SeedFromConsecutiveHitsTripletOnlyCreator::~SeedFromConsecutiveHitsTripletOnlyCreator ( )
inlineoverride

Definition at line 16 of file SeedFromConsecutiveHitsTripletOnlyCreator.h.

16 {}

Member Function Documentation

◆ fillDescriptions()

static void SeedFromConsecutiveHitsTripletOnlyCreator::fillDescriptions ( edm::ParameterSetDescription desc)
inlinestatic

◆ fillDescriptionsLabel()

static const char* SeedFromConsecutiveHitsTripletOnlyCreator::fillDescriptionsLabel ( )
inlinestatic

Definition at line 14 of file SeedFromConsecutiveHitsTripletOnlyCreator.h.

14 { return "ConsecutiveHitsTripletOnly"; }

◆ initialKinematic()

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

Reimplemented from SeedFromConsecutiveHitsCreator.

Definition at line 13 of file SeedFromConsecutiveHitsTripletOnlyCreator.cc.

14  {
17 
18  if (hits.size() == 3 &&
19  !(trackerHitRTTI::isSingleType(*hits[2]) && (hits[2]->geographicalId().subdetId() == SiStripDetId::TID ||
20  hits[2]->geographicalId().subdetId() == SiStripDetId::TEC))) {
21  //if 3rd hit is mono and endcap pT is not well defined so take initial state from pair
23  FastHelix helix(tth3->globalPosition(),
24  tth2->globalPosition(),
25  tth1->globalPosition(),
26  nomField,
27  &*bfield,
28  tth1->globalPosition());
29  kine = helix.stateAtVertex();
30  if
31  UNLIKELY(isBOFF && (theBOFFMomentum > 0)) {
33  kine.position(), kine.momentum().unit() * theBOFFMomentum, kine.charge(), &*bfield);
34  }
35  return (filter ? filter->compatible(hits, kine, helix) : true);
36  }
37 
38  const GlobalPoint& vertexPos = region->origin();
39 
40  FastHelix helix(tth2->globalPosition(), tth1->globalPosition(), vertexPos, nomField, &*bfield);
41  if (helix.isValid()) {
42  kine = helix.stateAtVertex();
43  } else {
44  GlobalVector initMomentum(tth2->globalPosition() - vertexPos);
45  initMomentum *= (100. / initMomentum.perp());
46  kine = GlobalTrajectoryParameters(vertexPos, initMomentum, 1, &*bfield);
47  }
48 
49  if
50  UNLIKELY(isBOFF && (theBOFFMomentum > 0)) {
52  kine.position(), kine.momentum().unit() * theBOFFMomentum, kine.charge(), &*bfield);
53  }
54  return (filter ? filter->compatible(hits, kine, helix) : true);
55 }

References SeedFromConsecutiveHitsCreator::bfield, GlobalTrajectoryParameters::charge(), SeedComparitor::compatible(), SeedFromConsecutiveHitsCreator::filter, hfClusterShapes_cfi::hits, SeedFromConsecutiveHitsCreator::isBOFF, trackerHitRTTI::isSingleType(), GlobalTrajectoryParameters::momentum(), SeedFromConsecutiveHitsCreator::nomField, TrackingRegion::origin(), GlobalTrajectoryParameters::position(), SeedFromConsecutiveHitsCreator::region, SiStripDetId::TEC, SeedFromConsecutiveHitsCreator::theBOFFMomentum, SiStripDetId::TID, Vector3DBase< T, FrameTag >::unit(), and UNLIKELY.

Vector3DBase
Definition: Vector3DBase.h:8
TrackingRegion::origin
GlobalPoint const & origin() const
Definition: TrackingRegion.h:74
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
FastHelix
Definition: FastHelix.h:26
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:10
SeedFromConsecutiveHitsCreator::theBOFFMomentum
float theBOFFMomentum
Definition: SeedFromConsecutiveHitsCreator.h:64
SeedFromConsecutiveHitsCreator::isBOFF
bool isBOFF
Definition: SeedFromConsecutiveHitsCreator.h:74
SeedFromConsecutiveHitsCreator::filter
const SeedComparitor * filter
Definition: SeedFromConsecutiveHitsCreator.h:69
SeedComparitor::compatible
virtual bool compatible(const SeedingHitSet &hits) const =0
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
FastHelix::stateAtVertex
GlobalTrajectoryParameters stateAtVertex() const
Definition: FastHelix.h:59
SeedFromConsecutiveHitsCreator::bfield
edm::ESHandle< MagneticField > bfield
Definition: SeedFromConsecutiveHitsCreator.h:72
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
Point3DBase< float, GlobalTag >
SiStripDetId::TEC
static constexpr auto TEC
Definition: SiStripDetId.h:40
SeedFromConsecutiveHitsCreator::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc)
Definition: SeedFromConsecutiveHitsCreator.cc:30
SeedFromConsecutiveHitsCreator::region
const TrackingRegion * region
Definition: SeedFromConsecutiveHitsCreator.h:68
SeedFromConsecutiveHitsCreator::SeedFromConsecutiveHitsCreator
SeedFromConsecutiveHitsCreator(const edm::ParameterSet &cfg)
Definition: SeedFromConsecutiveHitsCreator.h:26
looper.cfg
cfg
Definition: looper.py:297
SiStripDetId::TID
static constexpr auto TID
Definition: SiStripDetId.h:38
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SeedFromConsecutiveHitsCreator::nomField
float nomField
Definition: SeedFromConsecutiveHitsCreator.h:73
trackerHitRTTI::isSingleType
bool isSingleType(TrackingRecHit const &hit)
Definition: trackerHitRTTI.h:35