@@ -11,15 +11,19 @@ namespace sbn
1111 struct Charge {
1212 double q; // !< charge in slc
1313 TVector3 center; // !< Weighted center position [cm]
14- Charge (double q_ = -1 ., TVector3 center_ = TVector3(-999 , -999 , -999 )) :
15- q (q_), center(center_)
14+ TVector3 width; // !< Weighted width [cm]
15+ Charge (double q_ = -1 ., TVector3 center_ = TVector3(-999 , -999 , -999 ),
16+ TVector3 width_ = TVector3(-999 , -999 , -999 )) :
17+ q (q_), center(center_), width(width_)
1618 {}
1719 };
1820 struct Flash {
1921 double pe; // !< photo-electrons on flash
2022 TVector3 center; // !< Weighted center position [cm]
21- Flash (double pe_ = -1 ., TVector3 center_ = TVector3(-999 , -999 , -999 )) :
22- pe (pe_), center(center_)
23+ TVector3 width; // !< Weighted width [cm]
24+ Flash (double pe_ = -1 ., TVector3 center_ = TVector3(-999 , -999 , -999 ),
25+ TVector3 width_ = TVector3(-999 , -999 , -999 )) :
26+ pe (pe_), center(center_), width(width_)
2327 {}
2428 };
2529 struct Score {
@@ -28,14 +32,19 @@ namespace sbn
2832 double z; // !< score for z metric
2933 double rr; // !< score for rr metric
3034 double ratio; // !< score for ratio metric
35+ double slope; // !< score for z/y slope metric
36+ double petoq; // !< score for light/charge quotient metric
3137 Score (
3238 double total_ = -1 .,
3339 double y_ = -1 ., double z_ = -1 .,
34- double rr_ = -1 ., double ratio_ = -1 .) :
35- total (total_), y(y_), z(z_), rr(rr_), ratio(ratio_)
40+ double rr_ = -1 ., double ratio_ = -1 .,
41+ double slope_ = -1 ., double petoq_ = -1 .) :
42+ total (total_), y(y_), z(z_), rr(rr_), ratio(ratio_),
43+ slope (slope_), petoq(petoq_)
3644 {}
3745 Score (int no_score) : // for no match fill all with the code
38- total (no_score), y(no_score), z(no_score), rr(no_score), ratio(no_score)
46+ total (no_score), y(no_score), z(no_score), rr(no_score), ratio(no_score),
47+ slope (no_score), petoq(no_score)
3948 {}
4049 };
4150
0 commit comments