Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
#include "TFile.h"
22
#include "TTree.h"
23
#include "
larreco/RecoAlg/CMTool/CMToolBase/CFloatAlgoBase.h
"
24
25
namespace
cmtool
{
26
/**
27
\class CFAlgoShowerCompat
28
User implementation for CFloatAlgoBase class
29
doxygen documentation!
30
*/
31
class
CFAlgoShowerCompat
:
public
CFloatAlgoBase
{
32
public
:
33
/// Default constructor
34
CFAlgoShowerCompat
();
35
36
//
37
// Author should be aware of 3 functions at least: Float, Report,
38
// and Reset. More possibly-useful functions can be found in the later
39
// part but commented out. All of these functions are virtual and defined
40
// in the base class.
41
42
/**
43
Core function: given a set of CPANs, return a float which indicates
44
the compatibility the cluster combination.
45
*/
46
float
Float
(
util::GeometryUtilities
const
&,
47
const
std::vector<const cluster::ClusterParamsAlg*>& clusters)
override
;
48
49
/**
50
Optional function: called after each iterative approach if a manager class is
51
run with verbosity level <= kPerIteration. Maybe useful for debugging.
52
*/
53
void
Report
()
override
;
54
55
/// Function to reset the algorithm instance, called together with manager's Reset()
56
void
Reset
()
override
;
57
58
void
PrintClusterInfo
(
const
cluster::ClusterParamsAlg
&
c
);
59
60
void
61
WriteHaxFile
()
62
{
63
_fout_hax
->cd();
64
_ana_tree
->Write();
65
_fout_hax
->Close();
66
};
67
68
/**
69
Optional function: called at the beginning of 1st iteration. This is called per event.
70
*/
71
//virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
72
73
/**
74
Optional function: called at the end of event ... after the last merging iteration is over.
75
*/
76
//virtual void EventEnd();
77
78
/**
79
Optional function: called at the beggining of each iterative loop.
80
This provides all clusters' information in case the algorithm need them. Note this
81
is called per iteration which may be more than once per event.
82
*/
83
//virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
84
85
/**
86
Optional function: called at the end of each iterative loop.
87
*/
88
//virtual void IterationEnd();
89
90
private
:
91
TTree*
_ana_tree
;
92
double
_o_ang_avg
;
93
double
_o_ang_rms
;
94
double
_o_ang_wt_avg
;
95
double
_o_ang_wt_rms
;
96
double
_max_trackness
;
97
double
_max_len_over_width
;
98
double
_min_oa_over_len
;
99
double
_max_poly_perim_over_A
;
100
double
_min_modhitdens
;
101
102
TFile*
_fout_hax
;
103
};
104
}
105
#endif
106
/** @} */
// end of doxygen group
cmtool::CFAlgoShowerCompat::_min_oa_over_len
double _min_oa_over_len
Definition:
CFAlgoShowerCompat.h:98
cmtool::CFAlgoShowerCompat::_max_len_over_width
double _max_len_over_width
Definition:
CFAlgoShowerCompat.h:97
cmtool::CFAlgoShowerCompat::Float
float Float(util::GeometryUtilities const &, const std::vector< const cluster::ClusterParamsAlg * > &clusters) override
Definition:
CFAlgoShowerCompat.cxx:39
cmtool::CFAlgoShowerCompat::_ana_tree
TTree * _ana_tree
Definition:
CFAlgoShowerCompat.h:66
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:100
cmtool::CFAlgoShowerCompat::Report
void Report() override
Definition:
CFAlgoShowerCompat.cxx:99
cmtool::CFAlgoShowerCompat::WriteHaxFile
void WriteHaxFile()
Definition:
CFAlgoShowerCompat.h:61
cmtool::CFAlgoShowerCompat::_o_ang_avg
double _o_ang_avg
Definition:
CFAlgoShowerCompat.h:92
cmtool::CFAlgoShowerCompat::_o_ang_wt_avg
double _o_ang_wt_avg
Definition:
CFAlgoShowerCompat.h:94
cmtool::CFAlgoShowerCompat::_max_trackness
double _max_trackness
Definition:
CFAlgoShowerCompat.h:96
cmtool::CFAlgoShowerCompat::Reset
void Reset() override
Function to reset the algorithm instance, called together with manager's Reset()
Definition:
CFAlgoShowerCompat.cxx:33
ValidateOpDetSimulation.c
dictionary c
Definition:
ValidateOpDetSimulation.py:57
cmtool::CFAlgoShowerCompat
Definition:
CFAlgoShowerCompat.h:31
cmtool::CFAlgoShowerCompat::_fout_hax
TFile * _fout_hax
Definition:
CFAlgoShowerCompat.h:102
cmtool::CFAlgoShowerCompat::PrintClusterInfo
void PrintClusterInfo(const cluster::ClusterParamsAlg &c)
Definition:
CFAlgoShowerCompat.cxx:104
cmtool::CFAlgoShowerCompat::_o_ang_wt_rms
double _o_ang_wt_rms
Definition:
CFAlgoShowerCompat.h:95
cmtool::CFloatAlgoBase
Definition:
CFloatAlgoBase.h:30
cmtool
Definition:
CFAlgoQRatio.cxx:3
cmtool::CFAlgoShowerCompat::_o_ang_rms
double _o_ang_rms
Definition:
CFAlgoShowerCompat.h:93
cmtool::CFAlgoShowerCompat::CFAlgoShowerCompat
CFAlgoShowerCompat()
Default constructor.
Definition:
CFAlgoShowerCompat.cxx:7
cmtool::CFAlgoShowerCompat::_max_poly_perim_over_A
double _max_poly_perim_over_A
Definition:
CFAlgoShowerCompat.h:99
Generated by
1.8.11