CMS 3D CMS Logo

DualBzeroReferenceTrajectory.cc
Go to the documentation of this file.
1 
2 
4 
6 
9 
11 
13  const ConstRecHitContainer& forwardRecHits,
14  const ConstRecHitContainer& backwardRecHits,
15  const MagneticField* magField,
16  const reco::BeamSpot& beamSpot,
18  : DualReferenceTrajectory(tsos.localParameters().mixedFormatVector().kSize - 1,
19  numberOfUsedRecHits(forwardRecHits) + numberOfUsedRecHits(backwardRecHits) - 1,
20  config),
21  theMomentumEstimate(config.momentumEstimate) {
22  theValidityFlag = construct(tsos, forwardRecHits, backwardRecHits, magField, beamSpot);
23 }
24 
27  double mass,
28  MaterialEffects materialEffects,
29  const PropagationDirection propDir,
30  const MagneticField* magField,
31  bool useBeamSpot,
32  const reco::BeamSpot& beamSpot) const {
33  if (materialEffects >= breakPoints)
34  throw cms::Exception("BadConfig") << "[DualBzeroReferenceTrajectory::construct] Wrong MaterialEffects: "
35  << materialEffects;
36 
38  config.useBeamSpot = useBeamSpot;
39  config.hitsAreReverse = false;
40  return new BzeroReferenceTrajectory(referenceTsos, recHits, magField, beamSpot, config);
41 }
42 
44  AlgebraicVector param = asHepVector<5>(referenceTsos.localParameters().mixedFormatVector());
45  return param.sub(2, 5);
46 }
ReferenceTrajectoryBase::recHits
const TransientTrackingRecHit::ConstRecHitContainer & recHits() const
Definition: ReferenceTrajectoryBase.h:215
TrajectoryStateOnSurface.h
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
AlgebraicObjects.h
DualReferenceTrajectory
Definition: DualReferenceTrajectory.h:37
ReferenceTrajectoryBase::Config
Definition: ReferenceTrajectoryBase.h:121
MaterialEffects
Definition: MaterialEffects.h:51
DualBzeroReferenceTrajectory::theMomentumEstimate
double theMomentumEstimate
Definition: DualBzeroReferenceTrajectory.h:66
config
Definition: config.py:1
LocalTrajectoryParameters.h
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
reco::BeamSpot
Definition: BeamSpot.h:21
looper.config
config
Definition: looper.py:291
DualBzeroReferenceTrajectory.h
BzeroReferenceTrajectory.h
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
TrajectoryStateOnSurface::localParameters
const LocalTrajectoryParameters & localParameters() const
Definition: TrajectoryStateOnSurface.h:73
DualBzeroReferenceTrajectory::construct
virtual ReferenceTrajectory * construct(const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &recHits, double mass, MaterialEffects materialEffects, const PropagationDirection propDir, const MagneticField *magField, bool useBeamSpot, const reco::BeamSpot &beamSpot) const
Definition: DualBzeroReferenceTrajectory.cc:25
ReferenceTrajectoryBase::breakPoints
Definition: ReferenceTrajectoryBase.h:114
LocalTrajectoryParameters::mixedFormatVector
AlgebraicVector5 mixedFormatVector() const
Definition: LocalTrajectoryParameters.h:135
DualBzeroReferenceTrajectory::DualBzeroReferenceTrajectory
DualBzeroReferenceTrajectory(const TrajectoryStateOnSurface &tsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, const MagneticField *magField, const reco::BeamSpot &beamSpot, const ReferenceTrajectoryBase::Config &config)
Definition: DualBzeroReferenceTrajectory.cc:12
HLT_2018_cff.useBeamSpot
useBeamSpot
Definition: HLT_2018_cff.py:25058
ReferenceTrajectory
Definition: ReferenceTrajectory.h:55
Exception
Definition: hltDiff.cc:246
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
DualBzeroReferenceTrajectory::ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: DualBzeroReferenceTrajectory.h:39
BzeroReferenceTrajectory
Definition: BzeroReferenceTrajectory.h:35
MagneticField
Definition: MagneticField.h:19
DualBzeroReferenceTrajectory::extractParameters
AlgebraicVector extractParameters(const TrajectoryStateOnSurface &referenceTsos) const override
Definition: DualBzeroReferenceTrajectory.cc:43
ReferenceTrajectoryBase::theValidityFlag
bool theValidityFlag
Definition: ReferenceTrajectoryBase.h:235