10#define TRGECLCLUSTER_SHORT_NAMES
11#include <framework/gearbox/Unit.h>
13#include <trg/ecl/TrgEclBeamBKG.h>
22 for (
int iii = 0; iii <= 2; iii++) {
23 for (
int jjj = 0; jjj <= 3; jjj++) {
41int TrgEclBeamBKG::GetBeamBkg(std::vector<std::vector<double>> ThetaRingSum)
45 for (
int iFwd = 0 ; iFwd < 32 ; iFwd++) {
47 if (ThetaRingSum[0][iFwd] > 0) {
48 if ((phiid >= 1 && phiid <= 9) || phiid == 32) {
51 if (phiid >= 8 && phiid <= 17) {
54 if (phiid >= 16 && phiid <= 25) {
58 if ((phiid >= 24 && phiid <= 32) || phiid == 1) {
64 for (
int iBr = 0 ; iBr < 36 ; iBr++) {
66 if (ThetaRingSum[1][iBr] > 0) {
67 if ((phiid >= 1 && phiid <= 10) || phiid == 36) {
70 if (phiid >= 9 && phiid <= 19) {
73 if (phiid >= 18 && phiid <= 28) {
77 if ((phiid >= 27 && phiid <= 36) || phiid == 1) {
91 int iBeamBkgVeto0 = 0;
92 int iBeamBkgVeto1 = 0;
93 int iBeamBkgVeto2 = 0;
94 if (boolForward || boolBarrel) {
97 if ((!boolForward) && boolBarrel) {
100 if (boolForward && (!boolBarrel)) {
105 BeamBkgVeto |= (iBeamBkgVeto2 & 0x01);
107 BeamBkgVeto |= (iBeamBkgVeto1 & 0x01);
109 BeamBkgVeto |= (iBeamBkgVeto0 & 0x01);
virtual ~TrgEclBeamBKG()
Constructor.
int Quadrant[3][4]
4 region along r phi plane
TrgEclBeamBKG()
Constructor.
TrgEclMapping * _TCMap
Object of TC Mapping.
Abstract base class for different kinds of events.