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 | Private Attributes
KalmanAlignmentSetup Class Reference

#include <KalmanAlignmentSetup.h>

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 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)
 
 KalmanAlignmentSetup (const KalmanAlignmentSetup &setup)
 
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

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.

23  :
24  theId( id ),
25  theFitter( fitter->clone() ),
26  thePropagator( propagator->clone() ),
27  theTrackingSubDetIds( trackingIds ),
29  theSortingDir( sortingDir ),
30  theExternalFitter( externalFitter->clone() ),
31  theExternalPropagator( externalPropagator->clone() ),
32  theExternalTrackingSubDetIds( externalIds ),
34  theExternalSortingDir( externalSortingDir ),
35  theTrajectoryFactory( trajectoryFactory ),
36  theAlignmentUpdator( alignmentUpdator ),
37  theMetricsUpdator( metricsUpdator )
38 {}
SortingDirection theExternalSortingDir
TrajectoryFactoryBase * theTrajectoryFactory
Propagator * theExternalPropagator
virtual Propagator * clone() const =0
const unsigned int minExternalHits(void) const
virtual TrajectoryFitter * clone() const =0
std::vector< SubDetId > theExternalTrackingSubDetIds
KalmanAlignmentMetricsUpdator * theMetricsUpdator
KalmanAlignmentUpdator * theAlignmentUpdator
TrajectoryFitter * theFitter
const unsigned int minTrackingHits(void) const
TrajectoryFitter * theExternalFitter
SortingDirection theSortingDir
std::vector< SubDetId > theTrackingSubDetIds
KalmanAlignmentSetup::KalmanAlignmentSetup ( const KalmanAlignmentSetup setup)

Definition at line 41 of file KalmanAlignmentSetup.cc.

41  :
42  theId( setup.id() ),
43  theFitter( setup.fitter()->clone() ),
44  thePropagator( setup.propagator()->clone() ),
56 {}
SortingDirection theExternalSortingDir
const std::string id(void) const
TrajectoryFactoryBase * theTrajectoryFactory
const Propagator * propagator(void) const
Propagator * theExternalPropagator
virtual Propagator * clone() const =0
const TrajectoryFitter * fitter(void) const
KalmanAlignmentMetricsUpdator * metricsUpdator(void) const
const std::vector< SubDetId > & getTrackingSubDetIds(void) const
TrajectoryFactoryBase * trajectoryFactory(void) const
const unsigned int minExternalHits(void) const
const std::vector< SubDetId > & getExternalTrackingSubDetIds(void) const
virtual TrajectoryFitter * clone() const =0
std::vector< SubDetId > theExternalTrackingSubDetIds
const TrajectoryFitter * externalFitter(void) const
KalmanAlignmentUpdator * alignmentUpdator(void) const
KalmanAlignmentMetricsUpdator * theMetricsUpdator
KalmanAlignmentUpdator * theAlignmentUpdator
const SortingDirection sortingDirection(void) const
TrajectoryFitter * theFitter
const unsigned int minTrackingHits(void) const
const Propagator * externalPropagator(void) const
TrajectoryFitter * theExternalFitter
const SortingDirection externalSortingDirection(void) const
SortingDirection theSortingDir
std::vector< SubDetId > theTrackingSubDetIds
KalmanAlignmentSetup::~KalmanAlignmentSetup ( void  )

Definition at line 59 of file KalmanAlignmentSetup.cc.

References theExternalFitter, theExternalPropagator, theFitter, and thePropagator.

60 {
61  if ( theFitter ) delete theFitter;
63 
64  if ( thePropagator ) delete thePropagator;
66 }
Propagator * theExternalPropagator
TrajectoryFitter * theFitter
TrajectoryFitter * theExternalFitter

Member Function Documentation

KalmanAlignmentUpdator* KalmanAlignmentSetup::alignmentUpdator ( void  ) const
inline

Definition at line 66 of file KalmanAlignmentSetup.h.

References theAlignmentUpdator.

66 { return theAlignmentUpdator; }
KalmanAlignmentUpdator * theAlignmentUpdator
const TrajectoryFitter* KalmanAlignmentSetup::externalFitter ( void  ) const
inline

Definition at line 48 of file KalmanAlignmentSetup.h.

References theExternalFitter.

48 { return theExternalFitter; }
TrajectoryFitter * theExternalFitter
const Propagator* KalmanAlignmentSetup::externalPropagator ( void  ) const
inline

Definition at line 51 of file KalmanAlignmentSetup.h.

References theExternalPropagator.

51 { return theExternalPropagator; }
Propagator * theExternalPropagator
const SortingDirection KalmanAlignmentSetup::externalSortingDirection ( void  ) const
inline

Definition at line 60 of file KalmanAlignmentSetup.h.

References theExternalSortingDir.

60 { return theExternalSortingDir; }
SortingDirection theExternalSortingDir
const TrajectoryFitter* KalmanAlignmentSetup::fitter ( void  ) const
inline

Definition at line 47 of file KalmanAlignmentSetup.h.

References theFitter.

47 { return theFitter; }
TrajectoryFitter * theFitter
const std::vector< SubDetId >& KalmanAlignmentSetup::getExternalTrackingSubDetIds ( void  ) const
inline

Definition at line 54 of file KalmanAlignmentSetup.h.

References theExternalTrackingSubDetIds.

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

Definition at line 53 of file KalmanAlignmentSetup.h.

References theTrackingSubDetIds.

53 { return theTrackingSubDetIds; }
std::vector< SubDetId > theTrackingSubDetIds
const std::string KalmanAlignmentSetup::id ( void  ) const
inline

Definition at line 45 of file KalmanAlignmentSetup.h.

References theId.

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

Definition at line 67 of file KalmanAlignmentSetup.h.

References theMetricsUpdator.

67 { return theMetricsUpdator; }
KalmanAlignmentMetricsUpdator * theMetricsUpdator
const unsigned int KalmanAlignmentSetup::minExternalHits ( void  ) const
inline

Definition at line 57 of file KalmanAlignmentSetup.h.

References theMinExternalHits.

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

Definition at line 56 of file KalmanAlignmentSetup.h.

References theMinTrackingHits.

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

Definition at line 50 of file KalmanAlignmentSetup.h.

References thePropagator.

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

Definition at line 59 of file KalmanAlignmentSetup.h.

References theSortingDir.

59 { return theSortingDir; }
SortingDirection theSortingDir
TrajectoryFactoryBase* KalmanAlignmentSetup::trajectoryFactory ( void  ) const
inline

Definition at line 65 of file KalmanAlignmentSetup.h.

References theTrajectoryFactory.

65 { return theTrajectoryFactory; }
TrajectoryFactoryBase * theTrajectoryFactory
bool KalmanAlignmentSetup::useForExternalTracking ( const ConstRecHitPointer recHit) const

Definition at line 97 of file KalmanAlignmentSetup.cc.

References spr::find(), and theExternalTrackingSubDetIds.

98 {
99 
100  const DetId detId( recHit->det()->geographicalId() );
101  const SubDetId subdetId( detId.subdetId() );
102 
103 // const GlobalPoint position( recHit->det()->position() );
104 // if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false;
105 
106  std::vector< SubDetId >::const_iterator itFindSubDetId =
108 
109 // bool doubleSided = false;
110 // if ( subdetId == 3 )
111 // {
112 // TIBDetId tibid( detId.rawId() );
113 // if ( tibid.layer() < 3 ) doubleSided = true;
114 // }
115 // else if ( subdetId == 5 )
116 // {
117 // TOBDetId tobid( detId.rawId() );
118 // if ( tobid.layer() < 3 ) doubleSided = true;
119 // }
120 
121  return ( itFindSubDetId != theExternalTrackingSubDetIds.end() );// && !doubleSided;
122 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< SubDetId > theExternalTrackingSubDetIds
Definition: DetId.h:20
bool KalmanAlignmentSetup::useForTracking ( const ConstRecHitPointer recHit) const

Definition at line 69 of file KalmanAlignmentSetup.cc.

References spr::find(), and theTrackingSubDetIds.

70 {
71  const DetId detId( recHit->det()->geographicalId() );
72  const SubDetId subdetId( detId.subdetId() );
73 
74 // const GlobalPoint position( recHit->det()->position() );
75 // if ( ( position.phi() < 0.785 ) || ( position.phi() > 2.356 ) ) return false;
76 
77  std::vector< SubDetId >::const_iterator itFindSubDetId =
78  std::find( theTrackingSubDetIds.begin(), theTrackingSubDetIds.end(), subdetId );
79 
80 // bool doubleSided = false;
81 // if ( subdetId == 3 )
82 // {
83 // TIBDetId tibid( detId.rawId() );
84 // if ( tibid.layer() < 3 ) doubleSided = true;
85 // }
86 // else if ( subdetId == 5 )
87 // {
88 // TOBDetId tobid( detId.rawId() );
89 // if ( tobid.layer() < 3 ) doubleSided = true;
90 // }
91 
92  return ( itFindSubDetId != theTrackingSubDetIds.end() );// && doubleSided;
93 
94 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
Definition: DetId.h:20
std::vector< SubDetId > theTrackingSubDetIds

Member Data Documentation

KalmanAlignmentUpdator* KalmanAlignmentSetup::theAlignmentUpdator
private

Definition at line 86 of file KalmanAlignmentSetup.h.

Referenced by alignmentUpdator().

TrajectoryFitter* KalmanAlignmentSetup::theExternalFitter
private

Definition at line 79 of file KalmanAlignmentSetup.h.

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

Propagator* KalmanAlignmentSetup::theExternalPropagator
private

Definition at line 80 of file KalmanAlignmentSetup.h.

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

SortingDirection KalmanAlignmentSetup::theExternalSortingDir
private

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().

KalmanAlignmentMetricsUpdator* KalmanAlignmentSetup::theMetricsUpdator
private

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().

SortingDirection KalmanAlignmentSetup::theSortingDir
private

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().

TrajectoryFactoryBase* KalmanAlignmentSetup::theTrajectoryFactory
private

Definition at line 85 of file KalmanAlignmentSetup.h.

Referenced by trajectoryFactory().