LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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  //----------------------------------------
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
CBAlgoFake()
Default constructor.
Definition: CBAlgoFake.cxx:9
Class def header for a class CBAlgoFake.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition: CBAlgoFake.cxx:18