CPAlgoQSum.h
Go to the documentation of this file.
1 /**
2  * \file CPAlgoQSum.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CPAlgoQSum
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CPALGOQSUM_H
15 #define RECOTOOL_CPALGOQSUM_H
16 
18 
19 namespace cmtool {
20  /**
21  \class CPAlgoQSum
22  Simple algorithm to determine priority based on charge sum
23  If charge sum < set cut value by a user, returns -1.
24  */
25  class CPAlgoQSum : public CPriorityAlgoBase {
26 
27  public:
28 
29  /// Default constructor
30  CPAlgoQSum();
31 
32  /// Default destructor
33  virtual ~CPAlgoQSum(){};
34 
35  /**
36  Core function: given the CPAN input, return a float which indicates
37  the user-defined priority for analysis.
38  */
39  virtual float Priority(const ::cluster::ClusterParamsAlg &cluster);
40 
41  /// Setter for minimum charge
42  void SetMinQ(double v) { _qsum_cut = v; }
43 
44  protected:
45 
46  double _qsum_cut;
47 
48  };
49 }
50 #endif
51 /** @} */ // end of doxygen group
52 
CPAlgoQSum()
Default constructor.
Definition: CPAlgoQSum.cxx:6
Cluster finding and building.
virtual ~CPAlgoQSum()
Default destructor.
Definition: CPAlgoQSum.h:33
Class def header for a class CPriorityAlgoBase.
void SetMinQ(double v)
Setter for minimum charge.
Definition: CPAlgoQSum.h:42
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition: CPAlgoQSum.cxx:13