LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CBAlgoFake.cxx
Go to the documentation of this file.
1
#ifndef RECOTOOL_CBALGOFAKE_CXX
2
#define RECOTOOL_CBALGOFAKE_CXX
3
4
#include "
CBAlgoFake.h
"
5
6
namespace
cmtool
{
7
8
//----------------------------------------
9
CBAlgoFake::CBAlgoFake
() :
CBoolAlgoBase
()
10
//----------------------------------------
11
{
12
_flip
=
false
;
13
_ctr
= 0;
14
// Nothing to be done in the base class
15
}
16
17
//--------------------------------------------------------
18
bool
CBAlgoFake::Bool
(const ::cluster::ClusterParamsAlg &cluster1,
19
const ::cluster::ClusterParamsAlg &cluster2)
20
//--------------------------------------------------------
21
{
22
if
(cluster1.GetNHits() && cluster2.GetNHits()) {
23
_ctr
++;
24
if
( (
_ctr
%64) == 0)
25
_flip
= (!
_flip
);
26
return
_flip
;
27
}
28
else
return
false
;
29
}
30
31
}
32
33
#endif
cmtool::CBoolAlgoBase
Definition:
CBoolAlgoBase.h:27
cmtool::CBAlgoFake::CBAlgoFake
CBAlgoFake()
Default constructor.
Definition:
CBAlgoFake.cxx:9
cmtool
Definition:
CFAlgo3DAngle.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:18
cmtool::CBAlgoFake::_flip
bool _flip
Definition:
CBAlgoFake.h:49
larreco
v06_64_02
source
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoFake.cxx
Generated on Thu Jul 26 2018 13:10:12 for LArSoft by
1.8.11