All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimpleFlashMatchVars.h
Go to the documentation of this file.
1 #ifndef sbncode_Simpleflashmatchvars_H
2 #define sbncode_Simpleflashmatchvars_H
3 
4 #include "TVector3.h"
5 
6 namespace sbn
7 {
9  {
10  public:
11  struct Charge {
12  double q; //!< charge in slc
13  TVector3 center; //!< Weighted center position [cm]
14  Charge(double q_ = -1., TVector3 center_ = TVector3(-999, -999, -999)) :
15  q(q_), center(center_)
16  {}
17  };
18  struct Flash {
19  double pe; //!< photo-electrons on flash
20  TVector3 center; //!< Weighted center position [cm]
21  Flash(double pe_ = -1., TVector3 center_ = TVector3(-999, -999, -999)) :
22  pe(pe_), center(center_)
23  {}
24  };
25  struct Score {
26  double total; //!< total score, sum of terms
27  double y; //!< score for y metric
28  double z; //!< score for z metric
29  double rr; //!< score for rr metric
30  double ratio; //!< score for ratio metric
32  double total_ = -1.,
33  double y_ = -1., double z_ = -1.,
34  double rr_ = -1., double ratio_ = -1.) :
35  total(total_), y(y_), z(z_), rr(rr_), ratio(ratio_)
36  {}
37  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)
39  {}
40  };
41 
43  bool present_ = false, double time_ = -1,
44  Charge charge_ = Charge(),
45  Flash flash_ = Flash(),
46  Score score_ = Score()):
47  present(present_),
48  time(time_),
49  charge(charge_),
50  light(flash_),
51  score(score_)
52  {}
53 
54  bool present; //!< Whether there's a match
55  double time; //!< time of flash
56  Charge charge; //!< object that contains charge and its position
57  Flash light; //!< object that contains flash pe and its position
58  Score score; //!< overall and partial scores to the match
59  }; //end sbn::SimpleFlashMatch
60 }
61 
62 #endif
double y
score for y metric
double z
score for z metric
Flash light
object that contains flash pe and its position
TVector3 center
Weighted center position [cm].
double ratio
score for ratio metric
SimpleFlashMatch(bool present_=false, double time_=-1, Charge charge_=Charge(), Flash flash_=Flash(), Score score_=Score())
TVector3 center
Weighted center position [cm].
Score score
overall and partial scores to the match
double rr
score for rr metric
Charge charge
object that contains charge and its position
double pe
photo-electrons on flash
bool present
Whether there&#39;s a match.
Charge(double q_=-1., TVector3 center_=TVector3(-999,-999,-999))
double total
total score, sum of terms
Flash(double pe_=-1., TVector3 center_=TVector3(-999,-999,-999))
double time
time of flash
Score(double total_=-1., double y_=-1., double z_=-1., double rr_=-1., double ratio_=-1.)