 |
Belle II Software
release-05-02-19
|
1 #include <ecl/dataobjects/ECLShower.h>
2 #include <ecl/utility/utilityFunctions.h>
3 #include <mdst/dataobjects/ECLCluster.h>
6 #include <gtest/gtest.h>
18 TEST(TestgetDetectorRegion, TestgetDetectorRegion)
22 for (
int i = 0; i < 1e4; ++i) {
23 const double theta = gRandom->Uniform(0, TMath::Pi());
27 EXPECT_EQ(myECLShower.
getDetectorRegion(),
static_cast<int>(getDetectorRegion(theta)));
31 EXPECT_EQ(myECLCluster.
getDetectorRegion(),
static_cast<int>(getDetectorRegion(theta)));
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.
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
int getDetectorRegion() const
Return detector region: 0: below acceptance, 1: FWD, 2: BRL, 3: BWD, 11: FWDGAP, 13: BWDGAP.
void setTheta(double theta)
Set Theta of Shower (radian).
Class to store ECL Showers.