10 #ifndef CLUSTERMERGEALG_H 11 #define CLUSTERMERGEALG_H 16 #include "art_root_io/TFileService.h" 17 #include "art_root_io/TFileDirectory.h" 68 cluster_index = 0xffffffff;
70 start_wire = start_time = end_wire = end_time = -1;
71 start_wire_err = start_time_err = end_wire_err =end_time_err = -1;
77 :cluster_index(cl.
ID())
80 ,start_wire(cl.StartWire())
81 ,start_time(cl.StartTick())
82 ,end_wire(cl.EndWire())
83 ,end_time(cl.EndTick())
84 ,angle(cl.StartAngle())
99 void ReportConfig()
const;
116 void ClearEventInfo();
123 void ProcessMergeAlg();
126 const std::vector<std::vector<unsigned int> >
GetClusterSets ()
const {
return _cluster_sets_v;};
153 double ShortestDistanceSquared(
double point_x,
double point_y,
154 double start_x,
double start_y,
155 double end_x,
double end_y )
const;
168 int isInClusterSets(
unsigned int index)
const;
179 void ClearOutputInfo();
182 void ClearInputInfo();
185 void ClearTTreeInfo();
191 void PrepareDetParams();
208 void FinalizeClusterSets();
211 int AppendToClusterSets(
unsigned int cluster_index,
int merged_index=-1);
void VerboseMode(bool on)
Method to set verbose mode.
void SetSquaredDistanceCut(double d)
Method to set cut value in cm^2 for distance compatibility test.
geo::PlaneID planeID
plane ID
AdcChannelData::View View
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
std::vector< cluster::cluster_merge_info > _v_clusters
Input V-plane clusters' information.
double _time_2_cm
Conversion factor from time to cm scale.
const std::vector< std::vector< unsigned int > > GetClusterSets() const
Method to extract resulting set of cluster IDs for merging computed by ProcessMergeAlg() function...
cluster_merge_info()
Default constructor.
The data type to uniquely identify a Plane.
double end_wire_err
End point wire error.
cluster_merge_info(const recob::Cluster &cl)
Initialization from a recob::Cluster.
double _wire_2_cm
Conversion factor from wire number to cm scale.
TTree * _merge_tree
Quality Control TTree pointer.
Set of hits with a 2D structure.
std::vector< int > _cluster_merged_index
Cluster finding and building.
std::vector< cluster::cluster_merge_info > _w_clusters
Input W-plane clusters' information.
art framework interface to geometry description
float end_time
End point time.
double start_wire_err
Vertex wire error.
bool _verbose
Verbose mode boolean.
float start_wire
Vertex wire.
void SetTime2Cm(double f)
Method to set a conversion factor from time to cm scale.
void SetAngleCut(double angle)
Method to set cut value in degrees for angle compatibility test.
float start_time
Vertex time.
double _max_allowed_2D_angle_diff
float angle
2D starting angle (in radians)
std::vector< std::vector< unsigned int > > _cluster_sets_v
bool _det_params_prepared
Boolean to keep track of detector parameter preparation.
unsigned int cluster_index
Input cluster ID.
Declaration of signal hit object.
std::vector< cluster::cluster_merge_info > _u_clusters
Input U-plane clusters' information.
double _min_distance_unit
float end_wire
End point wire.
geo::View_t view
Wire plane ID.
Algorithm for generating space points from hits.
recob::tracking::Plane Plane
double start_time_err
Vertex time error.
double end_time_err
End point time error.
void SetWire2Cm(double f)
Method to set a conversion factor from wire to cm scale.