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

#include <CPAlgoQSum.h>

Inheritance diagram for cmtool::CPAlgoQSum:
cmtool::CPriorityAlgoBase cmtool::CMAlgoBase

Public Member Functions

 CPAlgoQSum ()
 Default constructor. More...
 
virtual ~CPAlgoQSum ()
 Default destructor. More...
 
virtual float Priority (const ::cluster::ClusterParamsAlg &cluster)
 
void SetMinQ (double v)
 Setter for minimum charge. More...
 
- Public Member Functions inherited from cmtool::CPriorityAlgoBase
 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...
 

Protected Attributes

double _qsum_cut
 
- 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

Simple algorithm to determine priority based on charge sum If charge sum < set cut value by a user, returns -1.

Definition at line 25 of file CPAlgoQSum.h.

Constructor & Destructor Documentation

cmtool::CPAlgoQSum::CPAlgoQSum ( )

Default constructor.

Definition at line 6 of file CPAlgoQSum.cxx.

7  //----------------------------------------------------------
8  {
9  _qsum_cut = 0;
10  }
CPriorityAlgoBase()
Default constructor.
virtual cmtool::CPAlgoQSum::~CPAlgoQSum ( )
inlinevirtual

Default destructor.

Definition at line 33 of file CPAlgoQSum.h.

33 {};

Member Function Documentation

float cmtool::CPAlgoQSum::Priority ( const ::cluster::ClusterParamsAlg cluster)
virtual

Core function: given the CPAN input, return a float which indicates the user-defined priority for analysis.

Definition at line 13 of file CPAlgoQSum.cxx.

15  {
16  if(cluster.GetParams().sum_charge < _qsum_cut) return -1;
17 
18  return cluster.GetParams().sum_charge;
19  }
const cluster_params & GetParams() const
double sum_charge
Sum charge of hits in ADC.
Definition: ClusterParams.h:26
void cmtool::CPAlgoQSum::SetMinQ ( double  v)
inline

Setter for minimum charge.

Definition at line 42 of file CPAlgoQSum.h.

42 { _qsum_cut = v; }

Member Data Documentation

double cmtool::CPAlgoQSum::_qsum_cut
protected

Definition at line 46 of file CPAlgoQSum.h.


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