Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoFake.cxx
Go to the documentation of this file.
1
#include "
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
cmtool
Definition:
CFAlgoQRatio.cxx:3
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.11