All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
cmtool::CPriorityAlgoBase Class Reference

#include <CPriorityAlgoBase.h>

Inheritance diagram for cmtool::CPriorityAlgoBase:
cmtool::CMAlgoBase cmtool::CPAlgoArray cmtool::CPAlgoIgnoreTracks cmtool::CPAlgoNHits cmtool::CPAlgoPolyArea cmtool::CPAlgoQSum

Public Member Functions

 CPriorityAlgoBase ()
 Default constructor. More...
 
virtual ~CPriorityAlgoBase ()
 Default destructor. More...
 
virtual float Priority (const cluster::ClusterParamsAlg &cluster)
 
- Public Member Functions inherited from cmtool::CMAlgoBase
 CMAlgoBase ()
 
virtual ~CMAlgoBase ()=default
 
virtual void Reset ()
 Function to reset the algorithm instance called within CMergeManager/CMatchManager's Reset() ... maybe implemented via child class. More...
 
virtual void EventBegin (const std::vector< cluster::ClusterParamsAlg > &)
 
virtual void EventEnd ()
 
virtual void IterationBegin (const std::vector< cluster::ClusterParamsAlg > &)
 
virtual void IterationEnd ()
 
virtual void Report ()
 
void SetAnaFile (TFile *fout)
 Setter function for an output plot TFile pointer. More...
 
virtual void SetVerbose (bool doit=true)
 Setter function for verbosity. More...
 

Additional Inherited Members

- Protected Attributes inherited from cmtool::CMAlgoBase
TFile * _fout
 TFile pointer to an output file. More...
 
bool _verbose
 Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager's verbosity level is >= kPerMerging. More...
 

Detailed Description

An abstract base class for CMatchManager and CMergeManager to determine cluster "priority" for matching and merging action respectively.

Definition at line 27 of file CPriorityAlgoBase.h.

Constructor & Destructor Documentation

cmtool::CPriorityAlgoBase::CPriorityAlgoBase ( )
inline

Default constructor.

Definition at line 32 of file CPriorityAlgoBase.h.

32 {}
virtual cmtool::CPriorityAlgoBase::~CPriorityAlgoBase ( )
inlinevirtual

Default destructor.

Definition at line 35 of file CPriorityAlgoBase.h.

35 {}

Member Function Documentation

virtual float cmtool::CPriorityAlgoBase::Priority ( const cluster::ClusterParamsAlg cluster)
inlinevirtual

Core function: given the CPAN input, return whether a cluster should be merged or not.

Definition at line 41 of file CPriorityAlgoBase.h.

42  {
43  if(cluster.GetNHits()) return 1.;
44  return 0.1;
45  }

The documentation for this class was generated from the following file: