8#include <ecl/dataobjects/ECLShower.h>
9#include <ecl/utility/utilityFunctions.h>
10#include <mdst/dataobjects/ECLCluster.h>
13#include <gtest/gtest.h>
25 TEST(TestgetDetectorRegion, TestgetDetectorRegion)
29 for (
int i = 0; i < 1e4; ++i) {
30 const double theta = gRandom->Uniform(0, TMath::Pi());
34 EXPECT_EQ(myECLShower.
getDetectorRegion(),
static_cast<int>(getDetectorRegion(theta)));
38 EXPECT_EQ(myECLCluster.
getDetectorRegion(),
static_cast<int>(getDetectorRegion(theta)));
void setTheta(double theta)
Set Theta of Shower (radian).
int getDetectorRegion() const
Return detector region: 0: below acceptance, 1: FWD, 2: BRL, 3: BWD, 11: FWDGAP, 13: BWDGAP.
Class to store ECL Showers.
void setTheta(double Theta)
Set Theta (rad)
int getDetectorRegion() const
Return detector region: 0: below acceptance, 1: FWD, 2: BRL, 3: BWD, 11: FWDGAP, 13: BWDGAP.
Abstract base class for different kinds of events.