CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

KalmanAlignmentSetup Class Reference

#include <KalmanAlignmentSetup.h>

List of all members.

Public Types

typedef
TransientTrackingRecHit::ConstRecHitPointer 
ConstRecHitPointer
enum  SortingDirection { sortInsideOut, sortOutsideIn, sortUpsideDown, sortDownsideUp }
typedef int SubDetId

Public Member Functions

KalmanAlignmentUpdatoralignmentUpdator (void) const
const TrajectoryFitterexternalFitter (void) const
const PropagatorexternalPropagator (void) const
const SortingDirection externalSortingDirection (void) const
const TrajectoryFitterfitter (void) const
const std::vector< SubDetId > & getExternalTrackingSubDetIds (void) const
const std::vector< SubDetId > & getTrackingSubDetIds (void) const
const std::string id (void) const
 KalmanAlignmentSetup (const KalmanAlignmentSetup &setup)
 KalmanAlignmentSetup (const std::string &id, const TrajectoryFitter *fitter, const Propagator *propagator, const std::vector< SubDetId > &trackingIds, const unsigned int minTrackingHits, const SortingDirection sortingDir, const TrajectoryFitter *externalFitter, const Propagator *externalPropagator, const std::vector< SubDetId > &externalIds, const unsigned int minExternalHits, const SortingDirection externalSortingDir, TrajectoryFactoryBase *trajectoryFactory, KalmanAlignmentUpdator *alignmentUpdator, KalmanAlignmentMetricsUpdator *metricsUpdator)
KalmanAlignmentMetricsUpdatormetricsUpdator (void) const
const unsigned int minExternalHits (void) const
const unsigned int minTrackingHits (void) const
const Propagatorpropagator (void) const
const SortingDirection sortingDirection (void) const
TrajectoryFactoryBasetrajectoryFactory (void) const
bool useForExternalTracking (const ConstRecHitPointer &recHit) const
bool useForTracking (const ConstRecHitPointer &recHit) const
 ~KalmanAlignmentSetup (void)

Private Attributes

KalmanAlignmentUpdatortheAlignmentUpdator
TrajectoryFittertheExternalFitter
PropagatortheExternalPropagator
SortingDirection theExternalSortingDir
std::vector< SubDetIdtheExternalTrackingSubDetIds
TrajectoryFittertheFitter
std::string theId
KalmanAlignmentMetricsUpdatortheMetricsUpdator
unsigned int theMinExternalHits
unsigned int theMinTrackingHits
PropagatorthePropagator
SortingDirection theSortingDir
std::vector< SubDetIdtheTrackingSubDetIds
TrajectoryFactoryBasetheTrajectoryFactory

Detailed Description

Definition at line 16 of file KalmanAlignmentSetup.h.


Member Typedef Documentation

Definition at line 22 of file KalmanAlignmentSetup.h.

Definition at line 21 of file KalmanAlignmentSetup.h.


Member Enumeration Documentation

Enumerator:
sortInsideOut 
sortOutsideIn 
sortUpsideDown 
sortDownsideUp 

Definition at line 24 of file KalmanAlignmentSetup.h.


Constructor & Destructor Documentation

KalmanAlignmentSetup::KalmanAlignmentSetup ( const std::string &  id,
const TrajectoryFitter fitter,
const Propagator propagator,
const std::vector< SubDetId > &  trackingIds,
const unsigned int  minTrackingHits,
const SortingDirection  sortingDir,
const TrajectoryFitter externalFitter,
const Propagator externalPropagator,
const std::vector< SubDetId > &  externalIds,
const unsigned int  minExternalHits,
const SortingDirection  externalSortingDir,
TrajectoryFactoryBase trajectoryFactory,
KalmanAlignmentUpdator alignmentUpdator,
KalmanAlignmentMetricsUpdator metricsUpdator 
)

Definition at line 10 of file KalmanAlignmentSetup.cc.

                                                                                                            :
  theId( id ),
  theFitter( fitter->clone() ),
  thePropagator( propagator->clone() ),
  theTrackingSubDetIds( trackingIds ),
  theMinTrackingHits( minTrackingHits ),
  theSortingDir( sortingDir ),
  theExternalFitter( externalFitter->clone() ),
  theExternalPropagator( externalPropagator->clone() ),
  theExternalTrackingSubDetIds( externalIds ),
  theMinExternalHits( minExternalHits ),
  theExternalSortingDir( externalSortingDir ),
  theTrajectoryFactory( trajectoryFactory ),
  theAlignmentUpdator( alignmentUpdator ),
  theMetricsUpdator( metricsUpdator )
{}
KalmanAlignmentSetup::KalmanAlignmentSetup ( const KalmanAlignmentSetup setup)
KalmanAlignmentSetup::~KalmanAlignmentSetup ( void  )

Member Function Documentation

KalmanAlignmentUpdator* KalmanAlignmentSetup::alignmentUpdator ( void  ) const [inline]

Definition at line 66 of file KalmanAlignmentSetup.h.

References theAlignmentUpdator.

{ return theAlignmentUpdator; }
const TrajectoryFitter* KalmanAlignmentSetup::externalFitter ( void  ) const [inline]

Definition at line 48 of file KalmanAlignmentSetup.h.

References theExternalFitter.

{ return theExternalFitter; }
const Propagator* KalmanAlignmentSetup::externalPropagator ( void  ) const [inline]

Definition at line 51 of file KalmanAlignmentSetup.h.

References theExternalPropagator.

const SortingDirection KalmanAlignmentSetup::externalSortingDirection ( void  ) const [inline]

Definition at line 60 of file KalmanAlignmentSetup.h.

References theExternalSortingDir.

const TrajectoryFitter* KalmanAlignmentSetup::fitter ( void  ) const [inline]

Definition at line 47 of file KalmanAlignmentSetup.h.

References theFitter.

{ return theFitter; }
const std::vector< SubDetId >& KalmanAlignmentSetup::getExternalTrackingSubDetIds ( void  ) const [inline]

Definition at line 54 of file KalmanAlignmentSetup.h.

References theExternalTrackingSubDetIds.

const std::vector< SubDetId >& KalmanAlignmentSetup::getTrackingSubDetIds ( void  ) const [inline]

Definition at line 53 of file KalmanAlignmentSetup.h.

References theTrackingSubDetIds.

const std::string KalmanAlignmentSetup::id ( void  ) const [inline]

Definition at line 45 of file KalmanAlignmentSetup.h.

References theId.

{ return theId; }
KalmanAlignmentMetricsUpdator* KalmanAlignmentSetup::metricsUpdator ( void  ) const [inline]

Definition at line 67 of file KalmanAlignmentSetup.h.

References theMetricsUpdator.

{ return theMetricsUpdator; }
const unsigned int KalmanAlignmentSetup::minExternalHits ( void  ) const [inline]

Definition at line 57 of file KalmanAlignmentSetup.h.

References theMinExternalHits.

{ return theMinExternalHits; }
const unsigned int KalmanAlignmentSetup::minTrackingHits ( void  ) const [inline]

Definition at line 56 of file KalmanAlignmentSetup.h.

References theMinTrackingHits.

{ return theMinTrackingHits; }
const Propagator* KalmanAlignmentSetup::propagator ( void  ) const [inline]

Definition at line 50 of file KalmanAlignmentSetup.h.

References thePropagator.

{ return thePropagator; }
const SortingDirection KalmanAlignmentSetup::sortingDirection ( void  ) const [inline]

Definition at line 59 of file KalmanAlignmentSetup.h.

References theSortingDir.

{ return theSortingDir; }
TrajectoryFactoryBase* KalmanAlignmentSetup::trajectoryFactory ( void  ) const [inline]

Definition at line 65 of file KalmanAlignmentSetup.h.

References theTrajectoryFactory.

bool KalmanAlignmentSetup::useForExternalTracking ( const ConstRecHitPointer recHit) const

Definition at line 97 of file KalmanAlignmentSetup.cc.

References spr::find(), and theExternalTrackingSubDetIds.

{

  const DetId detId( recHit->det()->geographicalId() );
  const SubDetId subdetId( detId.subdetId() );

//   const GlobalPoint position( recHit->det()->position() );
//   if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false;

  std::vector< SubDetId >::const_iterator itFindSubDetId =
    std::find( theExternalTrackingSubDetIds.begin(), theExternalTrackingSubDetIds.end(), subdetId );

//   bool doubleSided = false;
//   if ( subdetId == 3 ) 
//   { 
//     TIBDetId tibid( detId.rawId() ); 
//     if ( tibid.layer() < 3 ) doubleSided = true;
//   }
//   else if ( subdetId == 5 )
//   { 
//     TOBDetId tobid( detId.rawId() ); 
//     if ( tobid.layer() < 3 ) doubleSided = true;
//   }

  return ( itFindSubDetId != theExternalTrackingSubDetIds.end() );// && !doubleSided;
}
bool KalmanAlignmentSetup::useForTracking ( const ConstRecHitPointer recHit) const

Definition at line 69 of file KalmanAlignmentSetup.cc.

References spr::find(), and theTrackingSubDetIds.

{
  const DetId detId( recHit->det()->geographicalId() );
  const SubDetId subdetId( detId.subdetId() );

//   const GlobalPoint position( recHit->det()->position() );
//   if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false;

  std::vector< SubDetId >::const_iterator itFindSubDetId =
    std::find( theTrackingSubDetIds.begin(), theTrackingSubDetIds.end(), subdetId );

//   bool doubleSided = false;
//   if ( subdetId == 3 ) 
//   { 
//     TIBDetId tibid( detId.rawId() ); 
//     if ( tibid.layer() < 3 ) doubleSided = true;
//   }
//   else if ( subdetId == 5 )
//   { 
//     TOBDetId tobid( detId.rawId() ); 
//     if ( tobid.layer() < 3 ) doubleSided = true;
//   }

  return ( itFindSubDetId != theTrackingSubDetIds.end() );// && doubleSided;

}

Member Data Documentation

Definition at line 86 of file KalmanAlignmentSetup.h.

Referenced by alignmentUpdator().

Definition at line 79 of file KalmanAlignmentSetup.h.

Referenced by externalFitter(), and ~KalmanAlignmentSetup().

Definition at line 80 of file KalmanAlignmentSetup.h.

Referenced by externalPropagator(), and ~KalmanAlignmentSetup().

Definition at line 83 of file KalmanAlignmentSetup.h.

Referenced by externalSortingDirection().

Definition at line 81 of file KalmanAlignmentSetup.h.

Referenced by getExternalTrackingSubDetIds(), and useForExternalTracking().

Definition at line 73 of file KalmanAlignmentSetup.h.

Referenced by fitter(), and ~KalmanAlignmentSetup().

std::string KalmanAlignmentSetup::theId [private]

Definition at line 71 of file KalmanAlignmentSetup.h.

Referenced by id().

Definition at line 87 of file KalmanAlignmentSetup.h.

Referenced by metricsUpdator().

Definition at line 82 of file KalmanAlignmentSetup.h.

Referenced by minExternalHits().

Definition at line 76 of file KalmanAlignmentSetup.h.

Referenced by minTrackingHits().

Definition at line 74 of file KalmanAlignmentSetup.h.

Referenced by propagator(), and ~KalmanAlignmentSetup().

Definition at line 77 of file KalmanAlignmentSetup.h.

Referenced by sortingDirection().

Definition at line 75 of file KalmanAlignmentSetup.h.

Referenced by getTrackingSubDetIds(), and useForTracking().

Definition at line 85 of file KalmanAlignmentSetup.h.

Referenced by trajectoryFactory().