1 #ifndef _Cluster1DMerger_H_
2 #define _Cluster1DMerger_H_
43 theEstimator ( other.theEstimator->
clone() )
51 std::vector < const T * > sectracks = second.
tracks();
52 for (
typename std::vector< const T * >::const_iterator
i=sectracks.begin();
53 i!=sectracks.end() ; ++
i )
55 tracks.push_back ( *
i );
59 double C1=first.
weight() / V1;
60 double C2=second.
weight() / V2;
65 double newerr =
sqrt ( C1 * C1 * V1 + C2 * C2 * V2 ) / ( C1 + C2 );
66 double newWeight = theEstimator->weight ( tracks );
Cluster1DMerger(const WeightEstimator< T > &)
U second(std::pair< T, U > const &p)
std::vector< const T * > tracks() const
Cluster1D< T > operator()(const Cluster1D< T > &first, const Cluster1D< T > &second) const
Measurement1D position() const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
WeightEstimator< T > * theEstimator
virtual WeightEstimator * clone() const =0