Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larreco
larreco
RecoAlg
CMTool
CMTAlgMatch
CFAlgoShowerCompat.h
Go to the documentation of this file.
1
/**
2
* \file CFAlgoShowerCompat.h
3
*
4
* \ingroup CMTAlgMatch
5
*
6
* \brief This algo only matches clusters if they are not track-like.
7
* This is implemented in an algo because it allows the comparison of
8
* cluster parameters across planes, rather than individually.
9
* It is intended to be added as the last matching algo, with the
10
* "kLastAlgo" mode.
11
*
12
* @author davidkaleko_NAME
13
*/
14
15
/** \addtogroup CMTAlgMatch
16
17
@{*/
18
#ifndef CFALGOSHOWERCOMPAT_HH
19
#define CFALGOSHOWERCOMPAT_HH
20
21
class
TFile;
22
class
TTree;
23
24
#include "
larreco/RecoAlg/CMTool/CMToolBase/CFloatAlgoBase.h
"
25
26
namespace
cmtool {
27
/**
28
\class CFAlgoShowerCompat
29
User implementation for CFloatAlgoBase class
30
doxygen documentation!
31
*/
32
class
CFAlgoShowerCompat
:
public
CFloatAlgoBase
{
33
public
:
34
/// Default constructor
35
CFAlgoShowerCompat
();
36
37
//
38
// Author should be aware of 3 functions at least: Float, Report,
39
// and Reset. More possibly-useful functions can be found in the later
40
// part but commented out. All of these functions are virtual and defined
41
// in the base class.
42
43
/**
44
Core function: given a set of CPANs, return a float which indicates
45
the compatibility the cluster combination.
46
*/
47
float
Float
(
util::GeometryUtilities
const
&,
48
const
std::vector<const cluster::ClusterParamsAlg*>& clusters)
override
;
49
50
/**
51
Optional function: called after each iterative approach if a manager class is
52
run with verbosity level <= kPerIteration. Maybe useful for debugging.
53
*/
54
void
Report
()
override
;
55
56
/// Function to reset the algorithm instance, called together with manager's Reset()
57
void
Reset
()
override
;
58
59
void
PrintClusterInfo
(
const
cluster::ClusterParamsAlg
& c);
60
61
void
62
WriteHaxFile
()
63
{
64
_fout_hax
->cd();
65
_ana_tree
->Write();
66
_fout_hax
->Close();
67
};
68
69
/**
70
Optional function: called at the beginning of 1st iteration. This is called per event.
71
*/
72
//virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
73
74
/**
75
Optional function: called at the end of event ... after the last merging iteration is over.
76
*/
77
//virtual void EventEnd();
78
79
/**
80
Optional function: called at the beggining of each iterative loop.
81
This provides all clusters' information in case the algorithm need them. Note this
82
is called per iteration which may be more than once per event.
83
*/
84
//virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
85
86
/**
87
Optional function: called at the end of each iterative loop.
88
*/
89
//virtual void IterationEnd();
90
91
private
:
92
TTree*
_ana_tree
;
93
double
_o_ang_avg
;
94
double
_o_ang_rms
;
95
double
_o_ang_wt_avg
;
96
double
_o_ang_wt_rms
;
97
double
_max_trackness
;
98
double
_max_len_over_width
;
99
double
_min_oa_over_len
;
100
double
_max_poly_perim_over_A
;
101
double
_min_modhitdens
;
102
103
TFile*
_fout_hax
;
104
};
105
}
106
#endif
107
/** @} */
// end of doxygen group
cmtool::CFAlgoShowerCompat::_min_oa_over_len
double _min_oa_over_len
Definition:
CFAlgoShowerCompat.h:99
cmtool::CFAlgoShowerCompat::_max_len_over_width
double _max_len_over_width
Definition:
CFAlgoShowerCompat.h:98
cmtool::CFAlgoShowerCompat::Float
float Float(util::GeometryUtilities const &, const std::vector< const cluster::ClusterParamsAlg * > &clusters) override
Definition:
CFAlgoShowerCompat.cxx:41
cmtool::CFAlgoShowerCompat::_ana_tree
TTree * _ana_tree
Definition:
CFAlgoShowerCompat.h:67
util::GeometryUtilities
Definition:
GeometryUtilities.h:35
CFloatAlgoBase.h
Class def header for a class CFloatAlgoBase.
cluster::ClusterParamsAlg
Definition:
ClusterParamsAlg.h:24
cmtool::CFAlgoShowerCompat::_min_modhitdens
double _min_modhitdens
Definition:
CFAlgoShowerCompat.h:101
cmtool::CFAlgoShowerCompat::Report
void Report() override
Definition:
CFAlgoShowerCompat.cxx:101
cmtool::CFAlgoShowerCompat::WriteHaxFile
void WriteHaxFile()
Definition:
CFAlgoShowerCompat.h:62
cmtool::CFAlgoShowerCompat::_o_ang_avg
double _o_ang_avg
Definition:
CFAlgoShowerCompat.h:93
cmtool::CFAlgoShowerCompat::_o_ang_wt_avg
double _o_ang_wt_avg
Definition:
CFAlgoShowerCompat.h:95
cmtool::CFAlgoShowerCompat::_max_trackness
double _max_trackness
Definition:
CFAlgoShowerCompat.h:97
cmtool::CFAlgoShowerCompat::Reset
void Reset() override
Function to reset the algorithm instance, called together with manager's Reset()
Definition:
CFAlgoShowerCompat.cxx:35
cmtool::CFAlgoShowerCompat
Definition:
CFAlgoShowerCompat.h:32
cmtool::CFAlgoShowerCompat::_fout_hax
TFile * _fout_hax
Definition:
CFAlgoShowerCompat.h:103
cmtool::CFAlgoShowerCompat::PrintClusterInfo
void PrintClusterInfo(const cluster::ClusterParamsAlg &c)
Definition:
CFAlgoShowerCompat.cxx:106
cmtool::CFAlgoShowerCompat::_o_ang_wt_rms
double _o_ang_wt_rms
Definition:
CFAlgoShowerCompat.h:96
cmtool::CFloatAlgoBase
Definition:
CFloatAlgoBase.h:32
cmtool::CFAlgoShowerCompat::_o_ang_rms
double _o_ang_rms
Definition:
CFAlgoShowerCompat.h:94
cmtool::CFAlgoShowerCompat::CFAlgoShowerCompat
CFAlgoShowerCompat()
Default constructor.
Definition:
CFAlgoShowerCompat.cxx:9
cmtool::CFAlgoShowerCompat::_max_poly_perim_over_A
double _max_poly_perim_over_A
Definition:
CFAlgoShowerCompat.h:100
Generated by
1.8.5