Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgMerge
CBAlgoProhibitAllTracks.cxx
Go to the documentation of this file.
1
#include "
CBAlgoProhibitAllTracks.h
"
2
3
namespace
cmtool
{
4
5
//-------------------------------------------------------
6
CBAlgoProhibitAllTracks::CBAlgoProhibitAllTracks
() :
CBoolAlgoBase
()
7
//-------------------------------------------------------
8
{
9
SetMinEP
(.990000);
10
}
11
12
//-----------------------------
13
void
CBAlgoProhibitAllTracks::Reset
()
14
//-----------------------------
15
{
16
17
}
18
19
//------------------------------------------------------------------------------------------
20
//void CBAlgoProhibitAllTracks::EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
21
//------------------------------------------------------------------------------------------
22
//{
23
//
24
//}
25
26
//-------------------------------
27
//void CBAlgoProhibitAllTracks::EventEnd()
28
//-------------------------------
29
//{
30
//
31
//}
32
33
//-----------------------------------------------------------------------------------------------
34
//void CBAlgoProhibitAllTracks::IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
35
//-----------------------------------------------------------------------------------------------
36
//{
37
//
38
//}
39
40
//------------------------------------
41
//void CBAlgoProhibitAllTracks::IterationEnd()
42
//------------------------------------
43
//{
44
//
45
//}
46
47
//----------------------------------------------------------------
48
bool
CBAlgoProhibitAllTracks::Bool
(const ::cluster::ClusterParamsAlg &cluster1,
49
const ::cluster::ClusterParamsAlg &cluster2)
50
//----------------------------------------------------------------
51
{
52
//return true means don't prohibit these two clusters
53
if
(cluster1.GetParams().eigenvalue_principal >
_min_EP
||
54
cluster2.GetParams().eigenvalue_principal >
_min_EP
)
55
{
56
if
(
_verbose
)
57
std::cout<<
"Prohibiting clusters with EP's of "
58
<<cluster1.GetParams().eigenvalue_principal
59
<<
" and "
60
<<cluster2.GetParams().eigenvalue_principal
61
<<
std::endl
;
62
return
true
;
63
}
64
return
false
;
65
}
66
67
//------------------------------
68
void
CBAlgoProhibitAllTracks::Report
()
69
//------------------------------
70
{
71
72
}
73
74
}
cmtool::CBoolAlgoBase
Definition:
CBoolAlgoBase.h:27
cmtool::CBAlgoProhibitAllTracks::SetMinEP
void SetMinEP(double value)
Definition:
CBAlgoProhibitAllTracks.h:75
cmtool::CBAlgoProhibitAllTracks::_min_EP
double _min_EP
Definition:
CBAlgoProhibitAllTracks.h:79
cmtool::CBAlgoProhibitAllTracks::Report
virtual void Report()
Definition:
CBAlgoProhibitAllTracks.cxx:68
cmtool::CBAlgoProhibitAllTracks::Reset
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
Definition:
CBAlgoProhibitAllTracks.cxx:13
CBAlgoProhibitAllTracks.h
Class def header for a class CBAlgoProhibitAllTracks.
cmtool::CBAlgoProhibitAllTracks::Bool
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Definition:
CBAlgoProhibitAllTracks.cxx:48
cmtool::CBAlgoProhibitAllTracks::CBAlgoProhibitAllTracks
CBAlgoProhibitAllTracks()
Default constructor.
Definition:
CBAlgoProhibitAllTracks.cxx:6
cmtool
Definition:
CFAlgoQRatio.cxx:3
cmtool::CMAlgoBase::_verbose
bool _verbose
Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager's verbosity level is >= kPer...
Definition:
CMAlgoBase.h:102
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11