14 #define TRG_SHORT_NAMES
15 #define TRGECLCLUSTER_SHORT_NAMES
16 #include <framework/gearbox/Unit.h>
19 #include <trg/ecl/TrgEclBeamBKG.h>
26 TrgEclBeamBKG::TrgEclBeamBKG()
28 for (
int iii = 0; iii < 3; iii++) {
29 for (
int jjj = 0; jjj < 3; jjj++) {
30 Quadrant[iii][jjj] = 0;
39 TrgEclBeamBKG::~TrgEclBeamBKG()
44 bool TrgEclBeamBKG::GetBeamBkg(std::vector<std::vector<double>> ThetaRingSum)
47 for (
int iFwd = 0 ; iFwd < 32 ; iFwd++) {
48 if (ThetaRingSum[0][iFwd] > 0) {
49 Quadrant[0][(int)(iFwd / 8)]++;
52 for (
int iBwd = 0 ; iBwd < 36 ; iBwd++) {
53 if (ThetaRingSum[2][iBwd] > 0) {
54 Quadrant[2][(int)(iBwd / 8)]++;
57 for (
int iBr = 0 ; iBr < 36 ; iBr++) {
58 if (ThetaRingSum[1][iBr] > 0) {
59 Quadrant[1][(int)(iBr / 9)]++;
65 ((Quadrant[0][0] && Quadrant[0][2]) ||
66 (Quadrant[0][1] && Quadrant[0][3]));
68 ((Quadrant[1][0] && Quadrant[1][2]) ||
69 (Quadrant[1][1] && Quadrant[1][3]));
70 bool boolBeamBkgVeto = (boolForward || boolBarrel);
73 return boolBeamBkgVeto;