LDMX Software
VisiblesVetoResult.cxx
1#include "Hcal/Event/VisiblesVetoResult.h"
2
4
5namespace ldmx {
7
9
10void VisiblesVetoResult::clear() {
11 passes_veto_ = false;
12
13 n_layers_hit_ = 0;
14 x_std_ = 0.;
15 y_std_ = 0.;
16 z_std_ = 0.;
17 x_mean_ = 0.;
18 y_mean_ = 0.;
19 r_mean_ = 0.;
20 iso_hits_ = 0;
21 iso_energy_ = 0.;
22 n_readout_hits_ = 0;
23 summed_det_ = 0.;
24 r_mean_from_photon_track_ = 0.;
25
26 disc_value_ = 0.;
27}
28
29void VisiblesVetoResult::setVariables(int n_layers_hit, double x_std,
30 double y_std, double z_std, double x_mean,
31 double y_mean, double r_mean,
32 int iso_hits, double iso_energy,
33 int n_readout_hits, double summed_det,
34 double r_mean_from_photon_track) {
35 n_layers_hit_ = n_layers_hit;
36 x_std_ = x_std;
37 y_std_ = y_std;
38 z_std_ = z_std;
39 x_mean_ = x_mean;
40 y_mean_ = y_mean;
41 r_mean_ = r_mean;
42 iso_hits_ = iso_hits;
43 iso_energy_ = iso_energy;
44 n_readout_hits_ = n_readout_hits;
45 summed_det_ = summed_det;
46 r_mean_from_photon_track_ = r_mean_from_photon_track;
47}
48
49std::ostream& operator<<(std::ostream& s, const VisiblesVetoResult& p) {
50 return s << "[ VisiblesVetoResult ]:\n"
51 << "\t Passes veto : " << p.passes_veto_ << "\n";
52}
53} // namespace ldmx
virtual ~VisiblesVetoResult()
Destructor.