test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
Clustering1D
interface
TrivialWeightEstimator.h
Go to the documentation of this file.
1
#ifndef _TrivialWeightEstimator_H_
2
#define _TrivialWeightEstimator_H_
3
4
#include "
CommonTools/Clustering1D/interface/WeightEstimator.h
"
5
6
#include <vector>
7
12
template
<
class
T>
13
class
TrivialWeightEstimator
:
public
WeightEstimator
<T>
14
{
15
public
:
16
double
weight
(
const
std::vector < const T * > & )
const
17
{
18
return
1.0;
19
}
20
21
TrivialWeightEstimator
*
clone
()
const
22
{
23
return
new
TrivialWeightEstimator<T>
( *this );
24
};
25
};
26
27
#endif
WeightEstimator
Definition:
WeightEstimator.h:12
TrivialWeightEstimator::clone
TrivialWeightEstimator * clone() const
Definition:
TrivialWeightEstimator.h:21
TrivialWeightEstimator::weight
double weight(const std::vector< const T * > &) const
Definition:
TrivialWeightEstimator.h:16
WeightEstimator.h
TrivialWeightEstimator
Definition:
TrivialWeightEstimator.h:13
Generated for CMSSW Reference Manual by
1.8.5