All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
22  _flip = (!_flip);
23  return _flip;
24  }
25  else 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