test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
CkfPattern
interface
TrajCandLess.h
Go to the documentation of this file.
1
#ifndef TrajCandLess_H
2
#define TrajCandLess_H
3
4
#include <functional>
5
#include "
TrackingTools/PatternTools/interface/Trajectory.h
"
6
15
template
<
class
TR>
16
class
TrajCandLess
:
public
std::binary_function< const TR&,
17
const TR&, bool>
18
{
19
public
:
20
21
TrajCandLess
(
float
p
=5) :
penalty
(
p
) {}
22
23
bool
operator()
(
const
TR&
a
,
const
TR&
b
)
const
{
24
return
a.chiSquared() + a.lostHits()*
penalty
<
25
b.chiSquared() + b.lostHits()*
penalty
;
26
}
27
28
private
:
29
30
float
penalty
;
31
32
};
33
34
#endif
Trajectory.h
TrajCandLess
Definition:
TrajCandLess.h:16
TrajCandLess::TrajCandLess
TrajCandLess(float p=5)
Definition:
TrajCandLess.h:21
b
double b
Definition:
hdecay.h:120
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
a
double a
Definition:
hdecay.h:121
TrajCandLess::penalty
float penalty
Definition:
TrajCandLess.h:30
TrajCandLess::operator()
bool operator()(const TR &a, const TR &b) const
Definition:
TrajCandLess.h:23
Generated for CMSSW Reference Manual by
1.8.5