LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CBAlgoProhibitBigClusters.cxx
Go to the documentation of this file.
1
#include "
larreco/RecoAlg/CMTool/CMTAlgMerge/CBAlgoProhibitBigClusters.h
"
2
3
namespace
cmtool
{
4
5
//-------------------------------------------------------
6
CBAlgoProhibitBigClusters::CBAlgoProhibitBigClusters
() :
CBoolAlgoBase
()
7
//-------------------------------------------------------
8
{
9
SetMinHits
(9999);
10
}
11
12
//-----------------------------
13
void
CBAlgoProhibitBigClusters::Reset
()
14
//-----------------------------
15
{}
16
17
//----------------------------------------------------------------
18
bool
CBAlgoProhibitBigClusters::Bool
(const ::cluster::ClusterParamsAlg& cluster1,
19
const ::cluster::ClusterParamsAlg& cluster2)
20
//----------------------------------------------------------------
21
{
22
//if both clusters are big enough, prohibit merging
23
if
(cluster1.GetNHits() >
_min_hits
&& cluster2.GetNHits() >
_min_hits
)
24
return
true
;
25
else
26
return
false
;
27
}
28
29
//------------------------------
30
void
CBAlgoProhibitBigClusters::Report
()
31
//------------------------------
32
{}
33
34
}
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:13
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:18
cmtool::CBAlgoProhibitBigClusters::Report
virtual void Report()
Definition:
CBAlgoProhibitBigClusters.cxx:30
cmtool::CBAlgoProhibitBigClusters::SetMinHits
void SetMinHits(size_t nhits)
Definition:
CBAlgoProhibitBigClusters.h:79
cmtool
Definition:
CFAlgoQRatio.cxx:3
cmtool::CBAlgoProhibitBigClusters::_min_hits
size_t _min_hits
Definition:
CBAlgoProhibitBigClusters.h:82
larreco
v09_25_00
source
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoProhibitBigClusters.cxx
Generated on Thu May 2 2024 20:59:47 for LArSoft by
1.8.11