![]() |
![]() |
#include <HitMatchingAlgorithm_globalgeometry.h>
Public Member Functions | |
ES_HitMatchingAlgorithm_globalgeometry (const edm::ParameterSet &p) | |
Constructor. | |
boost::shared_ptr < HitMatchingAlgorithm< T > > | produce (const HitMatchingAlgorithmRecord &record) |
Implement the producer. | |
virtual | ~ES_HitMatchingAlgorithm_globalgeometry () |
Destructor. | |
Private Attributes | |
boost::shared_ptr < HitMatchingAlgorithm< T > > | _theAlgo |
Data members. | |
double | mIPWidth |
double | mPtThreshold |
********************** DECLARATION OF THE ALGORITHM TO THE FRAMEWORK **********************
Definition at line 144 of file HitMatchingAlgorithm_globalgeometry.h.
ES_HitMatchingAlgorithm_globalgeometry< T >::ES_HitMatchingAlgorithm_globalgeometry | ( | const edm::ParameterSet & | p | ) | [inline] |
Constructor.
Definition at line 154 of file HitMatchingAlgorithm_globalgeometry.h.
References edm::ESProducer::setWhatProduced().
: mPtThreshold( p.getParameter< double >("minPtThreshold") ), mIPWidth( p.getParameter< double >("ipWidth") ) { setWhatProduced( this ); }
virtual ES_HitMatchingAlgorithm_globalgeometry< T >::~ES_HitMatchingAlgorithm_globalgeometry | ( | ) | [inline, virtual] |
boost::shared_ptr< HitMatchingAlgorithm< T > > ES_HitMatchingAlgorithm_globalgeometry< T >::produce | ( | const HitMatchingAlgorithmRecord & | record | ) | [inline] |
Implement the producer.
Get magnetic field
Calculate scaling factor based on B and Pt threshold
Definition at line 165 of file HitMatchingAlgorithm_globalgeometry.h.
References ES_HitMatchingAlgorithm_globalgeometry< T >::_theAlgo, alignCSCRings::e, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), ES_HitMatchingAlgorithm_globalgeometry< T >::mIPWidth, and ES_HitMatchingAlgorithm_globalgeometry< T >::mPtThreshold.
{ edm::ESHandle< MagneticField > magnet; record.getRecord< IdealMagneticFieldRecord >().get(magnet); double mMagneticFieldStrength = magnet->inTesla(GlobalPoint(0,0,0)).z(); double mCompatibilityScalingFactor = (CLHEP::c_light * mMagneticFieldStrength) / (100.0 * 2.0e+9 * mPtThreshold); edm::ESHandle< StackedTrackerGeometry > StackedTrackerGeomHandle; record.getRecord< StackedTrackerGeometryRecord >().get( StackedTrackerGeomHandle ); HitMatchingAlgorithm< T >* HitMatchingAlgo = new HitMatchingAlgorithm_globalgeometry< T >( &(*StackedTrackerGeomHandle), mCompatibilityScalingFactor, mIPWidth ); _theAlgo = boost::shared_ptr< HitMatchingAlgorithm< T > >( HitMatchingAlgo ); return _theAlgo; }
boost::shared_ptr< HitMatchingAlgorithm< T > > ES_HitMatchingAlgorithm_globalgeometry< T >::_theAlgo [private] |
Data members.
Definition at line 148 of file HitMatchingAlgorithm_globalgeometry.h.
Referenced by ES_HitMatchingAlgorithm_globalgeometry< T >::produce().
double ES_HitMatchingAlgorithm_globalgeometry< T >::mIPWidth [private] |
Definition at line 150 of file HitMatchingAlgorithm_globalgeometry.h.
Referenced by ES_HitMatchingAlgorithm_globalgeometry< T >::produce().
double ES_HitMatchingAlgorithm_globalgeometry< T >::mPtThreshold [private] |
Definition at line 149 of file HitMatchingAlgorithm_globalgeometry.h.
Referenced by ES_HitMatchingAlgorithm_globalgeometry< T >::produce().