#include <KalmanAlignmentSetup.h>
Definition at line 16 of file KalmanAlignmentSetup.h.
Definition at line 22 of file KalmanAlignmentSetup.h.
typedef int KalmanAlignmentSetup::SubDetId |
Definition at line 21 of file KalmanAlignmentSetup.h.
Definition at line 24 of file KalmanAlignmentSetup.h.
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 | ) |
Definition at line 41 of file KalmanAlignmentSetup.cc.
: theId( setup.id() ), theFitter( setup.fitter()->clone() ), thePropagator( setup.propagator()->clone() ), theTrackingSubDetIds( setup.getTrackingSubDetIds() ), theMinTrackingHits( setup.minTrackingHits() ), theSortingDir( setup.sortingDirection() ), theExternalFitter( setup.externalFitter()->clone() ), theExternalPropagator( setup.externalPropagator()->clone() ), theExternalTrackingSubDetIds( setup.getExternalTrackingSubDetIds() ), theMinExternalHits( setup.minExternalHits() ), theExternalSortingDir( setup.externalSortingDirection() ), theTrajectoryFactory( setup.trajectoryFactory() ), theAlignmentUpdator( setup.alignmentUpdator() ), theMetricsUpdator( setup.metricsUpdator() ) {}
KalmanAlignmentSetup::~KalmanAlignmentSetup | ( | void | ) |
Definition at line 59 of file KalmanAlignmentSetup.cc.
References theExternalFitter, theExternalPropagator, theFitter, and thePropagator.
{ if ( theFitter ) delete theFitter; if ( theExternalFitter ) delete theExternalFitter; if ( thePropagator ) delete thePropagator; if ( theExternalPropagator ) delete theExternalPropagator; }
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.
{ return theExternalPropagator; }
const SortingDirection KalmanAlignmentSetup::externalSortingDirection | ( | void | ) | const [inline] |
Definition at line 60 of file KalmanAlignmentSetup.h.
References theExternalSortingDir.
{ return theExternalSortingDir; }
const TrajectoryFitter* KalmanAlignmentSetup::fitter | ( | void | ) | const [inline] |
const std::vector< SubDetId >& KalmanAlignmentSetup::getExternalTrackingSubDetIds | ( | void | ) | const [inline] |
Definition at line 54 of file KalmanAlignmentSetup.h.
References theExternalTrackingSubDetIds.
{ return theExternalTrackingSubDetIds; }
const std::vector< SubDetId >& KalmanAlignmentSetup::getTrackingSubDetIds | ( | void | ) | const [inline] |
Definition at line 53 of file KalmanAlignmentSetup.h.
References theTrackingSubDetIds.
{ return theTrackingSubDetIds; }
const std::string KalmanAlignmentSetup::id | ( | void | ) | const [inline] |
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.
{ return 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; }
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().
std::vector< SubDetId > KalmanAlignmentSetup::theExternalTrackingSubDetIds [private] |
Definition at line 81 of file KalmanAlignmentSetup.h.
Referenced by getExternalTrackingSubDetIds(), and useForExternalTracking().
TrajectoryFitter* KalmanAlignmentSetup::theFitter [private] |
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().
unsigned int KalmanAlignmentSetup::theMinExternalHits [private] |
Definition at line 82 of file KalmanAlignmentSetup.h.
Referenced by minExternalHits().
unsigned int KalmanAlignmentSetup::theMinTrackingHits [private] |
Definition at line 76 of file KalmanAlignmentSetup.h.
Referenced by minTrackingHits().
Propagator* KalmanAlignmentSetup::thePropagator [private] |
Definition at line 74 of file KalmanAlignmentSetup.h.
Referenced by propagator(), and ~KalmanAlignmentSetup().
Definition at line 77 of file KalmanAlignmentSetup.h.
Referenced by sortingDirection().
std::vector< SubDetId > KalmanAlignmentSetup::theTrackingSubDetIds [private] |
Definition at line 75 of file KalmanAlignmentSetup.h.
Referenced by getTrackingSubDetIds(), and useForTracking().
Definition at line 85 of file KalmanAlignmentSetup.h.
Referenced by trajectoryFactory().