![]() |
![]() |
Classes | |
struct | Mean |
struct | PhiSortElement |
Functions | |
void | fillBoundaries (std::vector< const GeometricSearchDet * > const &dets, std::vector< float > &boundaries) |
int | findBin (std::vector< float > const &boundaries, float r) |
void details::fillBoundaries | ( | std::vector< const GeometricSearchDet * > const & | dets, | |
std::vector< float > & | boundaries | |||
) |
Definition at line 39 of file CompositeTECPetal.cc.
References PV3DBase< T, PointTag, FrameTag >::perp(), and GeometricSearchDet::position().
00040 { 00041 boundaries.resize(dets.size()); 00042 std::transform(dets.begin(), dets.end(), boundaries.begin(), 00043 boost::bind(&GlobalPoint::perp,boost::bind(&GeometricSearchDet::position,_1)) 00044 ); 00045 std::adjacent_difference(boundaries.begin(),boundaries.end(), boundaries.begin(), Mean()); 00046 }
int details::findBin | ( | std::vector< float > const & | boundaries, | |
float | r | |||
) |
Definition at line 48 of file CompositeTECPetal.cc.
Referenced by CompositeTECPetal::findBin().
00048 { 00049 return 00050 std::lower_bound(boundaries.begin()+1,boundaries.end(),r) 00051 -boundaries.begin()-1; 00052 }