CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DualBzeroReferenceTrajectory Class Reference

#include <DualBzeroReferenceTrajectory.h>

Inheritance diagram for DualBzeroReferenceTrajectory:
DualReferenceTrajectory ReferenceTrajectoryBase ReferenceCounted

Public Types

typedef
TransientTrackingRecHit::ConstRecHitContainer 
ConstRecHitContainer
 
- Public Types inherited from DualReferenceTrajectory
typedef
TransientTrackingRecHit::ConstRecHitContainer 
ConstRecHitContainer
 
- Public Types inherited from ReferenceTrajectoryBase
enum  MaterialEffects {
  none, multipleScattering, energyLoss, combined,
  breakPoints, brokenLinesCoarse, brokenLinesFine
}
 
typedef
ReferenceCountingPointer
< ReferenceTrajectoryBase
ReferenceTrajectoryPtr
 

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 ()
 
- Public Member Functions inherited from DualReferenceTrajectory
 DualReferenceTrajectory (const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, const MagneticField *magField, MaterialEffects materialEffects, PropagationDirection propDir, double mass, bool useBeamSpot, const reco::BeamSpot &beamSpot)
 
virtual ~DualReferenceTrajectory ()
 
- Public Member Functions inherited from ReferenceTrajectoryBase
const AlgebraicMatrixderivatives () const
 
bool isValid ()
 
const AlgebraicMatrixlocalToTrajectory () const
 
const AlgebraicSymMatrixmeasurementErrors () const
 
const AlgebraicVectormeasurements () const
 
unsigned int numberOfHitMeas () const
 
unsigned int numberOfHits () const
 
unsigned int numberOfPar () const
 
unsigned int numberOfVirtualMeas () const
 
unsigned int numberOfVirtualPar () const
 
const AlgebraicSymMatrixparameterErrors () const
 
bool parameterErrorsAvailable () const
 
const AlgebraicVectorparameters () const
 
const
TransientTrackingRecHit::ConstRecHitContainer
recHits () const
 
void setParameterErrors (const AlgebraicSymMatrix &error)
 
const AlgebraicSymMatrixtrajectoryPositionErrors () const
 
const AlgebraicVectortrajectoryPositions () const
 
const std::vector
< TrajectoryStateOnSurface > & 
trajectoryStates () const
 
const AlgebraicMatrixtrajectoryToCurv () const
 
virtual ~ReferenceTrajectoryBase ()
 

Protected Member Functions

virtual ReferenceTrajectoryconstruct (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 Member Functions inherited from DualReferenceTrajectory
virtual bool construct (const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, double mass, MaterialEffects materialEffects, const PropagationDirection propDir, const MagneticField *magField, bool useBeamSpot, const reco::BeamSpot &beamSpot)
 
 DualReferenceTrajectory (unsigned int nPar, unsigned int nHits)
 
const PropagationDirection oppositeDirection (const PropagationDirection propDir) const
 
- Protected Member Functions inherited from ReferenceTrajectoryBase
unsigned int numberOfUsedRecHits (const TransientTrackingRecHit::ConstRecHitContainer &recHits) const
 
 ReferenceTrajectoryBase (unsigned int nPar, unsigned int nHits, unsigned int nVirtualPar, unsigned int nVirtualMeas)
 
bool useRecHit (const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
 

Protected Attributes

double theMomentumEstimate
 
- Protected Attributes inherited from ReferenceTrajectoryBase
AlgebraicMatrix theDerivatives
 
AlgebraicMatrix theInnerLocalToTrajectory
 
AlgebraicMatrix theInnerTrajectoryToCurvilinear
 
AlgebraicVector theMeasurements
 
AlgebraicSymMatrix theMeasurementsCov
 
unsigned int theNumberOfHits
 
unsigned int theNumberOfPars
 
unsigned int theNumberOfVirtualMeas
 
unsigned int theNumberOfVirtualPars
 
bool theParamCovFlag
 
AlgebraicSymMatrix theParameterCov
 
AlgebraicVector theParameters
 
TransientTrackingRecHit::ConstRecHitContainer theRecHits
 
AlgebraicSymMatrix theTrajectoryPositionCov
 
AlgebraicVector theTrajectoryPositions
 
std::vector
< TrajectoryStateOnSurface
theTsosVec
 
bool theValidityFlag
 

Additional Inherited Members

- Static Protected Attributes inherited from ReferenceTrajectoryBase
static const unsigned int nMeasPerHit = 2
 

Detailed Description

Definition at line 38 of file DualBzeroReferenceTrajectory.h.

Member Typedef Documentation

Definition at line 43 of file DualBzeroReferenceTrajectory.h.

Constructor & Destructor Documentation

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 DualReferenceTrajectory::construct(), and ReferenceTrajectoryBase::theValidityFlag.

Referenced by clone().

23  : DualReferenceTrajectory(referenceTsos.localParameters().mixedFormatVector().kSize - 1,
24  numberOfUsedRecHits(forwardRecHits) + numberOfUsedRecHits(backwardRecHits) - 1),
25  theMomentumEstimate(momentumEstimate)
26 {
28  forwardRecHits,
29  backwardRecHits,
30  mass, materialEffects,
31  propDir, magField,
32  useBeamSpot, beamSpot);
33 }
const LocalTrajectoryParameters & localParameters() const
DualReferenceTrajectory(const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, const MagneticField *magField, MaterialEffects materialEffects, PropagationDirection propDir, double mass, bool useBeamSpot, const reco::BeamSpot &beamSpot)
unsigned int numberOfUsedRecHits(const TransientTrackingRecHit::ConstRecHitContainer &recHits) const
AlgebraicVector5 mixedFormatVector() const
tuple mass
Definition: scaleCards.py:27
virtual bool construct(const TrajectoryStateOnSurface &referenceTsos, const ConstRecHitContainer &forwardRecHits, const ConstRecHitContainer &backwardRecHits, double mass, MaterialEffects materialEffects, const PropagationDirection propDir, const MagneticField *magField, bool useBeamSpot, const reco::BeamSpot &beamSpot)
virtual DualBzeroReferenceTrajectory::~DualBzeroReferenceTrajectory ( )
inlinevirtual

Definition at line 56 of file DualBzeroReferenceTrajectory.h.

56 {}

Member Function Documentation

virtual DualBzeroReferenceTrajectory* DualBzeroReferenceTrajectory::clone ( void  ) const
inlinevirtual

Reimplemented from DualReferenceTrajectory.

Definition at line 58 of file DualBzeroReferenceTrajectory.h.

References DualBzeroReferenceTrajectory().

58 { return new DualBzeroReferenceTrajectory(*this); }
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)
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
protectedvirtual

Reimplemented from DualReferenceTrajectory.

Definition at line 37 of file DualBzeroReferenceTrajectory.cc.

References ReferenceTrajectoryBase::breakPoints, edm::hlt::Exception, and theMomentumEstimate.

44 {
45  if (materialEffects >= breakPoints) throw cms::Exception("BadConfig")
46  << "[DualBzeroReferenceTrajectory::construct] Wrong MaterialEffects: " << materialEffects;
47 
48  return new BzeroReferenceTrajectory(referenceTsos, recHits,
49  false, magField,
50  materialEffects, propDir,
51  mass, theMomentumEstimate, useBeamSpot, beamSpot);
52 }
const TransientTrackingRecHit::ConstRecHitContainer & recHits() const
tuple mass
Definition: scaleCards.py:27
AlgebraicVector DualBzeroReferenceTrajectory::extractParameters ( const TrajectoryStateOnSurface referenceTsos) const
protectedvirtual

Reimplemented from DualReferenceTrajectory.

Definition at line 56 of file DualBzeroReferenceTrajectory.cc.

References TrajectoryStateOnSurface::localParameters(), and LocalTrajectoryParameters::mixedFormatVector().

57 {
58  AlgebraicVector param = asHepVector<5>( referenceTsos.localParameters().mixedFormatVector() );
59  return param.sub( 2, 5 );
60 }
const LocalTrajectoryParameters & localParameters() const
CLHEP::HepVector AlgebraicVector
AlgebraicVector5 mixedFormatVector() const

Member Data Documentation

double DualBzeroReferenceTrajectory::theMomentumEstimate
protected

Definition at line 72 of file DualBzeroReferenceTrajectory.h.

Referenced by construct().