LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CBAlgoProhibitBigClusters.cxx
Go to the documentation of this file.
1
#ifndef RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_CXX
2
#define RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_CXX
3
4
#include "
CBAlgoProhibitBigClusters.h
"
5
6
namespace
cmtool
{
7
8
//-------------------------------------------------------
9
CBAlgoProhibitBigClusters::CBAlgoProhibitBigClusters
() :
CBoolAlgoBase
()
10
//-------------------------------------------------------
11
{
12
SetMinHits
(9999);
13
14
}
15
16
//-----------------------------
17
void
CBAlgoProhibitBigClusters::Reset
()
18
//-----------------------------
19
{
20
21
}
22
23
//----------------------------------------------------------------
24
bool
CBAlgoProhibitBigClusters::Bool
(const ::cluster::ClusterParamsAlg &cluster1,
25
const ::cluster::ClusterParamsAlg &cluster2)
26
//----------------------------------------------------------------
27
{
28
//if both clusters are big enough, prohibit merging
29
if
(cluster1.GetNHits() >
_min_hits
&& cluster2.GetNHits() >
_min_hits
)
30
return
true
;
31
else
32
return
false
;
33
}
34
35
//------------------------------
36
void
CBAlgoProhibitBigClusters::Report
()
37
//------------------------------
38
{
39
40
}
41
42
}
43
#endif
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:17
CBAlgoProhibitBigClusters.h
Class def header for a class CBAlgoProhibitBigClusters.
cmtool::CBAlgoProhibitBigClusters::CBAlgoProhibitBigClusters
CBAlgoProhibitBigClusters()
Default constructor.
Definition:
CBAlgoProhibitBigClusters.cxx:9
cmtool::CBAlgoProhibitBigClusters::Bool
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition:
CBAlgoProhibitBigClusters.cxx:24
cmtool::CBAlgoProhibitBigClusters::Report
virtual void Report()
Definition:
CBAlgoProhibitBigClusters.cxx:36
cmtool::CBAlgoProhibitBigClusters::SetMinHits
void SetMinHits(size_t nhits)
Definition:
CBAlgoProhibitBigClusters.h:82
cmtool
Definition:
CFAlgo3DAngle.cxx:6
cmtool::CBAlgoProhibitBigClusters::_min_hits
size_t _min_hits
Definition:
CBAlgoProhibitBigClusters.h:86
larreco
v07_10_02
source
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoProhibitBigClusters.cxx
Generated on Wed Dec 12 2018 14:42:57 for LArSoft by
1.8.11