9 for (
int i=0;i<2;i++) {
10 for (
int j=0;j<2;j++) {
16 Tools::Zero(npassestrigger,2);
17 Tools::Zero(nchanceinhell2,2);
18 Tools::Zero(nviewanglecut,2);
19 Tools::Zero(nchanceinhell,2);
20 Tools::Zero(nchanceinhell_1overr,2);
21 Tools::Zero(nchanceinhell_fresnel,2);
22 Tools::Zero(nconverges,2);
23 Tools::Zero(nacceptablerf,2);
24 Tools::Zero(nraywithincontinent1,2);
25 Tools::Zero(nraywithincontinent2,2);
26 Tools::Zero(nraypointsup1,2);
27 Tools::Zero(nraypointsup2,2);
28 Tools::Zero(nnottoosmall,2);
29 Tools::Zero(nviewangle_lt_90,2);
30 Tools::Zero(ngoodfracs,2);
31 Tools::Zero(nbadfracs,2);
32 Tools::Zero(nnottir,2);
33 Tools::Zero(nentersice,2);
34 Tools::Zero(nabsorbed,2);
36 Tools::Zero(wheredoesitleave_err,2);
37 Tools::Zero(neverseesice,2);
38 Tools::Zero(iceinteraction,2);
39 Tools::Zero(inhorizon,2);
40 Tools::Zero(wheredoesitenterice_err,2);
41 Tools::Zero(toohigh,2);
42 Tools::Zero(toolow,2);
43 for (
int i=0;i<NCOSTHETA;i++) {
44 Tools::Zero(weights_rin[i],NPHI);
47 Tools::Zero(ndeadtime,2);
56 void Counting::findCosthetaPhiBins(
Position r_in,
int &icostheta,
int &iphi) {
58 icostheta=(int)((cos(r_in.Theta())-COSTHETAMIN)/(COSTHETAMAX-COSTHETAMIN)*(
double)NCOSTHETA);
59 iphi=(int)((r_in.Phi()-PHIMIN)/(PHIMAX-PHIMIN)*(double)NPHI);
63 void Counting::IncrementWeights_r_in(
Position r_in,
double weight) {
65 findCosthetaPhiBins(r_in,icostheta,iphi);
66 weights_rin[icostheta][iphi]+=weight;
This class is a 3-vector that represents a position on the Earth's surface.