#include <Alignment/KalmanAlignmentAlgorithm/interface/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.
00024 { sortInsideOut, sortOutsideIn, sortUpsideDown, sortDownsideUp };
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.
00023 : 00024 theId( id ), 00025 theFitter( fitter->clone() ), 00026 thePropagator( propagator->clone() ), 00027 theTrackingSubDetIds( trackingIds ), 00028 theMinTrackingHits( minTrackingHits ), 00029 theSortingDir( sortingDir ), 00030 theExternalFitter( externalFitter->clone() ), 00031 theExternalPropagator( externalPropagator->clone() ), 00032 theExternalTrackingSubDetIds( externalIds ), 00033 theMinExternalHits( minExternalHits ), 00034 theExternalSortingDir( externalSortingDir ), 00035 theTrajectoryFactory( trajectoryFactory ), 00036 theAlignmentUpdator( alignmentUpdator ), 00037 theMetricsUpdator( metricsUpdator ) 00038 {}
KalmanAlignmentSetup::KalmanAlignmentSetup | ( | const KalmanAlignmentSetup & | setup | ) |
Definition at line 41 of file KalmanAlignmentSetup.cc.
00041 : 00042 theId( setup.id() ), 00043 theFitter( setup.fitter()->clone() ), 00044 thePropagator( setup.propagator()->clone() ), 00045 theTrackingSubDetIds( setup.getTrackingSubDetIds() ), 00046 theMinTrackingHits( setup.minTrackingHits() ), 00047 theSortingDir( setup.sortingDirection() ), 00048 theExternalFitter( setup.externalFitter()->clone() ), 00049 theExternalPropagator( setup.externalPropagator()->clone() ), 00050 theExternalTrackingSubDetIds( setup.getExternalTrackingSubDetIds() ), 00051 theMinExternalHits( setup.minExternalHits() ), 00052 theExternalSortingDir( setup.externalSortingDirection() ), 00053 theTrajectoryFactory( setup.trajectoryFactory() ), 00054 theAlignmentUpdator( setup.alignmentUpdator() ), 00055 theMetricsUpdator( setup.metricsUpdator() ) 00056 {}
KalmanAlignmentSetup::~KalmanAlignmentSetup | ( | void | ) |
Definition at line 59 of file KalmanAlignmentSetup.cc.
References theExternalFitter, theExternalPropagator, theFitter, and thePropagator.
00060 { 00061 if ( theFitter ) delete theFitter; 00062 if ( theExternalFitter ) delete theExternalFitter; 00063 00064 if ( thePropagator ) delete thePropagator; 00065 if ( theExternalPropagator ) delete theExternalPropagator; 00066 }
KalmanAlignmentUpdator* KalmanAlignmentSetup::alignmentUpdator | ( | void | ) | const [inline] |
Definition at line 66 of file KalmanAlignmentSetup.h.
References theAlignmentUpdator.
00066 { return theAlignmentUpdator; }
const TrajectoryFitter* KalmanAlignmentSetup::externalFitter | ( | void | ) | const [inline] |
Definition at line 48 of file KalmanAlignmentSetup.h.
References theExternalFitter.
00048 { return theExternalFitter; }
const Propagator* KalmanAlignmentSetup::externalPropagator | ( | void | ) | const [inline] |
Definition at line 51 of file KalmanAlignmentSetup.h.
References theExternalPropagator.
00051 { return theExternalPropagator; }
const SortingDirection KalmanAlignmentSetup::externalSortingDirection | ( | void | ) | const [inline] |
Definition at line 60 of file KalmanAlignmentSetup.h.
References theExternalSortingDir.
00060 { return theExternalSortingDir; }
const TrajectoryFitter* KalmanAlignmentSetup::fitter | ( | void | ) | const [inline] |
Definition at line 47 of file KalmanAlignmentSetup.h.
References theFitter.
00047 { return theFitter; }
const std::vector< SubDetId >& KalmanAlignmentSetup::getExternalTrackingSubDetIds | ( | void | ) | const [inline] |
Definition at line 54 of file KalmanAlignmentSetup.h.
References theExternalTrackingSubDetIds.
00054 { return theExternalTrackingSubDetIds; }
Definition at line 53 of file KalmanAlignmentSetup.h.
References theTrackingSubDetIds.
00053 { 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.
00067 { return theMetricsUpdator; }
Definition at line 57 of file KalmanAlignmentSetup.h.
References theMinExternalHits.
00057 { return theMinExternalHits; }
Definition at line 56 of file KalmanAlignmentSetup.h.
References theMinTrackingHits.
00056 { return theMinTrackingHits; }
const Propagator* KalmanAlignmentSetup::propagator | ( | void | ) | const [inline] |
Definition at line 50 of file KalmanAlignmentSetup.h.
References thePropagator.
00050 { return thePropagator; }
const SortingDirection KalmanAlignmentSetup::sortingDirection | ( | void | ) | const [inline] |
Definition at line 59 of file KalmanAlignmentSetup.h.
References theSortingDir.
00059 { return theSortingDir; }
TrajectoryFactoryBase* KalmanAlignmentSetup::trajectoryFactory | ( | void | ) | const [inline] |
Definition at line 65 of file KalmanAlignmentSetup.h.
References theTrajectoryFactory.
00065 { return theTrajectoryFactory; }
bool KalmanAlignmentSetup::useForExternalTracking | ( | const ConstRecHitPointer & | recHit | ) | const |
Definition at line 97 of file KalmanAlignmentSetup.cc.
References detId, find(), DetId::subdetId(), and theExternalTrackingSubDetIds.
00098 { 00099 00100 const DetId detId( recHit->det()->geographicalId() ); 00101 const SubDetId subdetId( detId.subdetId() ); 00102 00103 // const GlobalPoint position( recHit->det()->position() ); 00104 // if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false; 00105 00106 std::vector< SubDetId >::const_iterator itFindSubDetId = 00107 std::find( theExternalTrackingSubDetIds.begin(), theExternalTrackingSubDetIds.end(), subdetId ); 00108 00109 // bool doubleSided = false; 00110 // if ( subdetId == 3 ) 00111 // { 00112 // TIBDetId tibid( detId.rawId() ); 00113 // if ( tibid.layer() < 3 ) doubleSided = true; 00114 // } 00115 // else if ( subdetId == 5 ) 00116 // { 00117 // TOBDetId tobid( detId.rawId() ); 00118 // if ( tobid.layer() < 3 ) doubleSided = true; 00119 // } 00120 00121 return ( itFindSubDetId != theExternalTrackingSubDetIds.end() );// && !doubleSided; 00122 }
bool KalmanAlignmentSetup::useForTracking | ( | const ConstRecHitPointer & | recHit | ) | const |
Definition at line 69 of file KalmanAlignmentSetup.cc.
References detId, find(), DetId::subdetId(), and theTrackingSubDetIds.
00070 { 00071 const DetId detId( recHit->det()->geographicalId() ); 00072 const SubDetId subdetId( detId.subdetId() ); 00073 00074 // const GlobalPoint position( recHit->det()->position() ); 00075 // if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false; 00076 00077 std::vector< SubDetId >::const_iterator itFindSubDetId = 00078 std::find( theTrackingSubDetIds.begin(), theTrackingSubDetIds.end(), subdetId ); 00079 00080 // bool doubleSided = false; 00081 // if ( subdetId == 3 ) 00082 // { 00083 // TIBDetId tibid( detId.rawId() ); 00084 // if ( tibid.layer() < 3 ) doubleSided = true; 00085 // } 00086 // else if ( subdetId == 5 ) 00087 // { 00088 // TOBDetId tobid( detId.rawId() ); 00089 // if ( tobid.layer() < 3 ) doubleSided = true; 00090 // } 00091 00092 return ( itFindSubDetId != theTrackingSubDetIds.end() );// && doubleSided; 00093 00094 }
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().
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] |
unsigned int KalmanAlignmentSetup::theMinExternalHits [private] |
unsigned int KalmanAlignmentSetup::theMinTrackingHits [private] |
Propagator* KalmanAlignmentSetup::thePropagator [private] |
Definition at line 74 of file KalmanAlignmentSetup.h.
Referenced by propagator(), and ~KalmanAlignmentSetup().
std::vector< SubDetId > KalmanAlignmentSetup::theTrackingSubDetIds [private] |
Definition at line 75 of file KalmanAlignmentSetup.h.
Referenced by getTrackingSubDetIds(), and useForTracking().