LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoFake.cxx
Go to the documentation of this file.
2 
3 namespace cmtool {
4 
5  //----------------------------------------
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 }
CBAlgoFake()
Default constructor.
Definition: CBAlgoFake.cxx:6
Class def header for a class CBAlgoFake.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition: CBAlgoFake.cxx:15