Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgPriority
CPAlgoNHits.h
Go to the documentation of this file.
1
/**
2
* \file CPAlgoNHits.h
3
*
4
* \ingroup CMTool
5
*
6
* \brief Class def header for a class CPAlgoNHits
7
*
8
* @author kazuhiro
9
*/
10
11
/** \addtogroup CMTool
12
13
@{*/
14
#ifndef RECOTOOL_CPALGONHITS_H
15
#define RECOTOOL_CPALGONHITS_H
16
17
#include "
larreco/RecoAlg/CMTool/CMToolBase/CPriorityAlgoBase.h
"
18
19
namespace
cmtool
{
20
/**
21
\class CPAlgoNHits
22
Simple algorithm to determine priority based on # of hits.
23
If # hits < set cut value by a user, returns -1.
24
*/
25
class
CPAlgoNHits
:
public
CPriorityAlgoBase
{
26
27
public
:
28
29
/// Default constructor
30
CPAlgoNHits
();
31
32
/// Default destructor
33
virtual
~CPAlgoNHits
(){};
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 # hits
42
void
SetMinHits
(
size_t
n
) {
_min_hits
=
n
; }
43
44
protected
:
45
46
size_t
_min_hits
;
47
48
};
49
}
50
#endif
51
/** @} */
// end of doxygen group
52
cmtool::CPAlgoNHits
Definition:
CPAlgoNHits.h:25
cmtool::CPAlgoNHits::SetMinHits
void SetMinHits(size_t n)
Setter for minimum # hits.
Definition:
CPAlgoNHits.h:42
cmtool::CPAlgoNHits::_min_hits
size_t _min_hits
Definition:
CPAlgoNHits.h:46
cmtool::CPAlgoNHits::~CPAlgoNHits
virtual ~CPAlgoNHits()
Default destructor.
Definition:
CPAlgoNHits.h:33
cluster
Cluster finding and building.
Definition:
SmallClusterFilter_module.cc:34
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:27
CPriorityAlgoBase.h
Class def header for a class CPriorityAlgoBase.
cmtool::CPAlgoNHits::CPAlgoNHits
CPAlgoNHits()
Default constructor.
Definition:
CPAlgoNHits.cxx:6
cmtool::CPAlgoNHits::Priority
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition:
CPAlgoNHits.cxx:13
cet::n
std::void_t< T > n
Definition:
metaprogramming.h:28
cmtool
Definition:
CFAlgoQRatio.cxx:3
Generated by
1.8.11