LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ClusterParams.h
Go to the documentation of this file.
1 #ifndef UTIL_CLUSTERPARAMS_H
2 #define UTIL_CLUSTERPARAMS_H
3 
6 
7 namespace cluster {
8 
14  public:
16  {
17  //Initialize all values.
18  Clear();
19  }
20 
22 
25 
26  double sum_charge;
27  double mean_charge;
28  double rms_charge;
29  double sum_ADC;
30  double mean_ADC;
31  double rms_ADC;
32  double mean_x;
33  double mean_y;
34  double rms_x;
35  double rms_y;
36  double charge_wgt_x;
37  double charge_wgt_y;
39  double angle_2d;
40  double opening_angle;
42  double closing_angle;
44  double start_charge;
45  double end_charge;
48  double verticalness;
49 
50  double length;
51  double width;
52 
56  double N_Wires;
58  double N_Hits;
59  double N_Hits_HC;
60 
61  double modmeancharge;
62  double RMS_charge;
63 
68  int direction;
69 
70  double showerness;
71  double trackness;
72  double offaxis_hits;
73 
74  void Clear()
75  {
76  start_point.Clear();
77  end_point.Clear();
78  sum_charge = -999.999;
79  mean_charge = -999.999;
80  rms_charge = -999.999;
81  sum_ADC = -999.999;
82  mean_ADC = -999.999;
83  rms_ADC = -999.999;
84  mean_x = -999.999;
85  mean_y = -999.999;
86  rms_x = -999.999;
87  rms_y = -999.999;
88  charge_wgt_x = -999.999;
89  charge_wgt_y = -999.999;
90  cluster_angle_2d = -999.999;
91  angle_2d = -999.999;
92  eigenvalue_principal = -999.999;
93  eigenvalue_secondary = -999.999;
94  multi_hit_wires = -999.999;
95  N_Wires = -999.999;
96  verticalness = -999.999;
97  opening_angle = -999.999;
98  opening_angle_charge_wgt = -999.999;
99  closing_angle = -999.999;
100  closing_angle_charge_wgt = -999.999;
101  start_charge = -999.999;
102  end_charge = -999.999;
103  offaxis_hits = -999.999;
104  modmeancharge = -999.999;
105  RMS_charge = -999.999;
106  modified_hit_density = -999.999;
107  N_Hits = -999.999;
108  N_Hits_HC = -999.999;
109  length = -999.999;
110  width = -999.999;
111  hit_density_1D = -999.999;
112  hit_density_2D = -999.999;
113  direction = 0;
114  showerness = -999.999;
115  trackness = -999.999;
116  }
117 
118  template <typename Stream>
119  void Report(Stream& os) const
120  {
121 
122  os << "ClusterParams report: \n"
123  << " start_point .............. : (" << start_point.w << "," << start_point.t << ")\n"
124  << " end_point ................ : (" << end_point.w << "," << end_point.t << ")\n"
125  << " sum_charge ............... : " << sum_charge << "\n"
126  << " mean_charge ............. : " << mean_charge << "\n"
127  << " mean_x ................... : " << mean_x << "\n"
128  << " mean_y ................... : " << mean_y << "\n"
129  << " rms_x .................... : " << rms_x << "\n"
130  << " rms_y .................... : " << rms_y << "\n"
131  << " charge_wgt_x ............. : " << charge_wgt_x << "\n"
132  << " charge_wgt_y ............. : " << charge_wgt_y << "\n"
133  << " cluster_angle_2d ......... : " << cluster_angle_2d << "\n"
134  << " angle_2d ................. : " << angle_2d << "\n"
135  << " eigenvalue_principal ..... : " << eigenvalue_principal << "\n"
136  << " eigenvalue_secondary ..... : " << eigenvalue_secondary << "\n"
137  << " multi_hit_wires .......... : " << multi_hit_wires << "\n"
138  << " N_Wires .................. : " << N_Wires << "\n"
139  << " N_Hits ................... : " << N_Hits << "\n"
140  << " N_Hits_HC ................ : " << N_Hits_HC << "\n"
141  << " verticalness ............. : " << verticalness << "\n"
142  << " opening_angle ............ : " << opening_angle << "\n"
143  << " opening_angle_charge_wgt . : " << opening_angle_charge_wgt << "\n"
144  << " closing_angle ............ : " << closing_angle << "\n"
145  << " closing_angle_charge_wgt . : " << closing_angle_charge_wgt << "\n"
146  << " start_charge ............. : " << start_charge << "\n"
147  << " end_charge ............... : " << end_charge << "\n"
148  << " offaxis_hits ............. : " << offaxis_hits << "\n"
149  << " modified_hit_density ..... : " << modified_hit_density << "\n"
150  << " modified mean charge ...... : " << modmeancharge << "\n"
151  << " charge_RMS ................ : " << RMS_charge << "\n"
152  << " length ................... : " << length << "\n"
153  << " width .................... : " << width << "\n"
154  << " hit_density_1D ........... : " << hit_density_1D << "\n"
155  << " hit_density_2D ........... : " << hit_density_2D << "\n"
156  << " showerness ............... : " << showerness << "\n"
157  << " trackness ................ : " << trackness << "\n"
158  << " direction ................ : " << direction << "\n";
159  }
160 
161  }; // class cluster_params
162 } // namespace cluster
163 
164 #endif
double rms_ADC
RMS (standard deviation of sample) of ADC counts of hits in ADC.
Definition: ClusterParams.h:31
2D polygon object
double closing_angle_charge_wgt
Same for charge_wgt.
Definition: ClusterParams.h:43
double charge_wgt_y
Mean of hits along y, charge weighted.
Definition: ClusterParams.h:37
double mean_x
Mean of hits along x, peaks only.
Definition: ClusterParams.h:32
double start_charge
Charge at the start of the cluster.
Definition: ClusterParams.h:44
double rms_charge
RMS (standard deviation of sample) of charge of hits in ADC.
Definition: ClusterParams.h:28
Polygon2D PolyObject
Polygon Object...see Polygon2D.hh.
Definition: ClusterParams.h:21
double trackness
got soul
Definition: ClusterParams.h:71
double eigenvalue_principal
the principal eigenvalue from PCA
Definition: ClusterParams.h:46
double mean_ADC
Mean (average) of ADC counts of hits, in ADC.
Definition: ClusterParams.h:30
Cluster finding and building.
double mean_y
Mean of hits along y, peaks only.
Definition: ClusterParams.h:33
void Report(Stream &os) const
double eigenvalue_secondary
the secondary eigenvalue from PCA
Definition: ClusterParams.h:47
double sum_charge
Sum charge of hits in ADC.
Definition: ClusterParams.h:26
void Clear()
Definition: PxUtils.h:27
double t
Definition: PxUtils.h:10
util::PxPoint start_point
start point
Definition: ClusterParams.h:23
double angle_2d
Angle of axis in wire/hit view.
Definition: ClusterParams.h:39
double offaxis_hits
got brain
Definition: ClusterParams.h:72
double w
Definition: PxUtils.h:9
double showerness
got heart
Definition: ClusterParams.h:70
double sum_ADC
Sum charge of ADC counts of hits, in ADC.
Definition: ClusterParams.h:29
util::PxPoint end_point
end point
Definition: ClusterParams.h:24
double mean_charge
Mean (average) charge of hits in ADC.
Definition: ClusterParams.h:27
double charge_wgt_x
Mean of hits along x, charge weighted.
Definition: ClusterParams.h:36
double opening_angle_charge_wgt
Same for charge_wgt.
Definition: ClusterParams.h:41
double opening_angle
Width of angular distubtion wrt vertx.
Definition: ClusterParams.h:40
double cluster_angle_2d
Linear best fit to high-charge hits in the cluster.
Definition: ClusterParams.h:38
double rms_x
rms of hits along x (wires)
Definition: ClusterParams.h:34
double rms_y
rms of hits along y, (time)
Definition: ClusterParams.h:35
double closing_angle
Width of angular distubtion wrt endpoint.
Definition: ClusterParams.h:42
double end_charge
Charge at the (other) end of the cluster.
Definition: ClusterParams.h:45