LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CBAlgoFake.cxx
Go to the documentation of this file.
1
#include "
larreco/RecoAlg/CMTool/CMTAlgMerge/CBAlgoFake.h
"
2
3
namespace
cmtool
{
4
5
//----------------------------------------
6
CBAlgoFake::CBAlgoFake
() :
CBoolAlgoBase
()
7
//----------------------------------------
8
{
9
_flip
=
false
;
10
_ctr
= 0;
11
// Nothing to be done in the base class
12
}
13
14
//--------------------------------------------------------
15
bool
CBAlgoFake::Bool
(const ::cluster::ClusterParamsAlg& cluster1,
16
const ::cluster::ClusterParamsAlg& cluster2)
17
//--------------------------------------------------------
18
{
19
if
(cluster1.GetNHits() && cluster2.GetNHits()) {
20
_ctr
++;
21
if
((
_ctr
% 64) == 0)
_flip
= (!
_flip
);
22
return
_flip
;
23
}
24
else
25
return
false
;
26
}
27
28
}
cmtool::CBoolAlgoBase
Definition:
CBoolAlgoBase.h:27
cmtool::CBAlgoFake::CBAlgoFake
CBAlgoFake()
Default constructor.
Definition:
CBAlgoFake.cxx:6
cmtool
Definition:
CFAlgoQRatio.cxx:3
CBAlgoFake.h
Class def header for a class CBAlgoFake.
cmtool::CBAlgoFake::_ctr
int _ctr
Definition:
CBAlgoFake.h:48
cmtool::CBAlgoFake::Bool
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition:
CBAlgoFake.cxx:15
cmtool::CBAlgoFake::_flip
bool _flip
Definition:
CBAlgoFake.h:47
larreco
v09_25_00
source
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoFake.cxx
Generated on Thu May 2 2024 20:59:47 for LArSoft by
1.8.11