Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoProhibitBigClusters.cxx
Go to the documentation of this file.
1
#include "
CBAlgoProhibitBigClusters.h
"
2
3
namespace
cmtool
{
4
5
//-------------------------------------------------------
6
CBAlgoProhibitBigClusters::CBAlgoProhibitBigClusters
() :
CBoolAlgoBase
()
7
//-------------------------------------------------------
8
{
9
SetMinHits
(9999);
10
11
}
12
13
//-----------------------------
14
void
CBAlgoProhibitBigClusters::Reset
()
15
//-----------------------------
16
{
17
18
}
19
20
//----------------------------------------------------------------
21
bool
CBAlgoProhibitBigClusters::Bool
(const ::cluster::ClusterParamsAlg &cluster1,
22
const ::cluster::ClusterParamsAlg &cluster2)
23
//----------------------------------------------------------------
24
{
25
//if both clusters are big enough, prohibit merging
26
if
(cluster1.GetNHits() >
_min_hits
&& cluster2.GetNHits() >
_min_hits
)
27
return
true
;
28
else
29
return
false
;
30
}
31
32
//------------------------------
33
void
CBAlgoProhibitBigClusters::Report
()
34
//------------------------------
35
{
36
37
}
38
39
}
cmtool::CBoolAlgoBase
Definition:
CBoolAlgoBase.h:27
cmtool::CBAlgoProhibitBigClusters::Reset
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
Definition:
CBAlgoProhibitBigClusters.cxx:14
CBAlgoProhibitBigClusters.h
Class def header for a class CBAlgoProhibitBigClusters.
cmtool::CBAlgoProhibitBigClusters::CBAlgoProhibitBigClusters
CBAlgoProhibitBigClusters()
Default constructor.
Definition:
CBAlgoProhibitBigClusters.cxx:6
cmtool::CBAlgoProhibitBigClusters::Bool
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition:
CBAlgoProhibitBigClusters.cxx:21
cmtool::CBAlgoProhibitBigClusters::Report
virtual void Report()
Definition:
CBAlgoProhibitBigClusters.cxx:33
cmtool::CBAlgoProhibitBigClusters::SetMinHits
void SetMinHits(size_t nhits)
Definition:
CBAlgoProhibitBigClusters.h:82
cmtool
Definition:
CFAlgoQRatio.cxx:3
cmtool::CBAlgoProhibitBigClusters::_min_hits
size_t _min_hits
Definition:
CBAlgoProhibitBigClusters.h:86
Generated by
1.8.11