Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larreco
larreco
RecoAlg
CMTool
CMTAlgMerge
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)
22
_flip
= (!
_flip
);
23
return
_flip
;
24
}
25
else
return
false
;
26
}
27
28
}
cmtool::CBoolAlgoBase
Definition:
CBoolAlgoBase.h:27
cmtool::CBAlgoFake::CBAlgoFake
CBAlgoFake()
Default constructor.
Definition:
CBAlgoFake.cxx:6
CBAlgoFake.h
Class def header for a class CBAlgoFake.
cmtool::CBAlgoFake::_ctr
int _ctr
Definition:
CBAlgoFake.h:50
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:49
Generated by
1.8.5