#include <DualBzeroReferenceTrajectory.h>
Public Types | |
typedef TransientTrackingRecHit::ConstRecHitContainer | ConstRecHitContainer |
Public Member Functions | |
virtual DualBzeroReferenceTrajectory * | clone () const |
DualBzeroReferenceTrajectory (const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, const MagneticField *magField, MaterialEffects materialEffects, PropagationDirection propDir, double mass, double momentumEstimate, bool useBeamSpot, const reco::BeamSpot &beamSpot) | |
virtual | ~DualBzeroReferenceTrajectory () |
Protected Member Functions | |
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 |
virtual AlgebraicVector | extractParameters (const TrajectoryStateOnSurface &referenceTsos) const |
Protected Attributes | |
double | theMomentumEstimate |
Definition at line 38 of file DualBzeroReferenceTrajectory.h.
typedef TransientTrackingRecHit::ConstRecHitContainer DualBzeroReferenceTrajectory::ConstRecHitContainer |
Reimplemented from DualReferenceTrajectory.
Definition at line 43 of file DualBzeroReferenceTrajectory.h.
DualBzeroReferenceTrajectory::DualBzeroReferenceTrajectory | ( | const TrajectoryStateOnSurface & | referenceTsos, |
const ConstRecHitContainer & | forwardRecHits, | ||
const ConstRecHitContainer & | backwardRecHits, | ||
const MagneticField * | magField, | ||
MaterialEffects | materialEffects, | ||
PropagationDirection | propDir, | ||
double | mass, | ||
double | momentumEstimate, | ||
bool | useBeamSpot, | ||
const reco::BeamSpot & | beamSpot | ||
) |
Definition at line 13 of file DualBzeroReferenceTrajectory.cc.
References construct(), and ReferenceTrajectoryBase::theValidityFlag.
Referenced by clone().
: DualReferenceTrajectory(referenceTsos.localParameters().mixedFormatVector().kSize - 1, numberOfUsedRecHits(forwardRecHits) + numberOfUsedRecHits(backwardRecHits) - 1), theMomentumEstimate(momentumEstimate) { theValidityFlag = DualReferenceTrajectory::construct(referenceTsos, forwardRecHits, backwardRecHits, mass, materialEffects, propDir, magField, useBeamSpot, beamSpot); }
virtual DualBzeroReferenceTrajectory::~DualBzeroReferenceTrajectory | ( | ) | [inline, virtual] |
Definition at line 56 of file DualBzeroReferenceTrajectory.h.
{}
virtual DualBzeroReferenceTrajectory* DualBzeroReferenceTrajectory::clone | ( | void | ) | const [inline, virtual] |
Reimplemented from DualReferenceTrajectory.
Definition at line 58 of file DualBzeroReferenceTrajectory.h.
References DualBzeroReferenceTrajectory().
{ return new DualBzeroReferenceTrajectory(*this); }
ReferenceTrajectory * DualBzeroReferenceTrajectory::construct | ( | const TrajectoryStateOnSurface & | referenceTsos, |
const ConstRecHitContainer & | recHits, | ||
double | mass, | ||
MaterialEffects | materialEffects, | ||
const PropagationDirection | propDir, | ||
const MagneticField * | magField, | ||
bool | useBeamSpot, | ||
const reco::BeamSpot & | beamSpot | ||
) | const [protected, virtual] |
Reimplemented from DualReferenceTrajectory.
Definition at line 37 of file DualBzeroReferenceTrajectory.cc.
References ReferenceTrajectoryBase::breakPoints, Exception, and theMomentumEstimate.
Referenced by DualBzeroReferenceTrajectory().
{ if (materialEffects >= breakPoints) throw cms::Exception("BadConfig") << "[DualBzeroReferenceTrajectory::construct] Wrong MaterialEffects: " << materialEffects; return new BzeroReferenceTrajectory(referenceTsos, recHits, false, magField, materialEffects, propDir, mass, theMomentumEstimate, useBeamSpot, beamSpot); }
AlgebraicVector DualBzeroReferenceTrajectory::extractParameters | ( | const TrajectoryStateOnSurface & | referenceTsos | ) | const [protected, virtual] |
Reimplemented from DualReferenceTrajectory.
Definition at line 56 of file DualBzeroReferenceTrajectory.cc.
References TrajectoryStateOnSurface::localParameters(), and LocalTrajectoryParameters::mixedFormatVector().
{ AlgebraicVector param = asHepVector<5>( referenceTsos.localParameters().mixedFormatVector() ); return param.sub( 2, 5 ); }
double DualBzeroReferenceTrajectory::theMomentumEstimate [protected] |
Definition at line 72 of file DualBzeroReferenceTrajectory.h.
Referenced by construct().