14 #define TRGECL_SHORT_NAMES
16 #include <framework/core/ModuleParamList.templateDetails.h>
17 #include <framework/core/ModuleParamList.h>
19 #include "trg/ecl/TrgEclMaster.h"
21 #include "trg/trg/Debug.h"
22 #include "trg/ecl/modules/trgecl/TRGECLModule.h"
23 #include "trg/ecl/dbobjects/TRGECLETMPara.h"
42 TRGECLModule::version()
const
44 return string(
"TRGECLModule 1.00");
49 TRGECLModule::TRGECLModule():
Module::
Module(), _debugLevel(0), _Bhabha(0), _Clustering(1), _ClusterLimit(6), _EventTiming(2),
50 _TimeWindow(250.0), _OverlapWindow(125.0), _NofTopTC(3), _SelectEvent(1), _ConditionDB(0), _mumuThreshold(20), _n300MeVCluster(1),
51 _ECLBurstThreshold(200)
54 string desc =
"TRGECLModule(" +
version() +
")";
64 "TRGECL EventTiming method 0 : Belle I, 1 : Energetic TC, 2 : Energy Weighted timing (defult)",
_EventTiming);
65 addParam(
"NofTopTC",
_NofTopTC,
"TRGECL # of considered TC in energy weighted Timing method(Only work for EvenTiming Method 2)",
86 _2DBhabhaThresholdFWD = {40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 30, 35};
87 _2DBhabhaThresholdBWD = {25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 30, 30};
100 std::cout <<
"TRGECLModule ... created" << std::endl;
110 std::cout <<
"TRGECLModule ... destructed " << std::endl;
124 std::cout <<
"TRGECLModule::initialize ... options" << std::endl;
149 _TotalEnergy = {(double)para.getELow(), (double)para.getELow(), (double)para.getELow()};
150 for (
int index = 0; index < 14; index ++) {
154 _3DBhabhaVetoThreshold = {(double)para.get3DBhabhaVetoThreshold(0), (double)para.get3DBhabhaVetoThreshold(1)};
156 _3DBhabhaVetoAngle = {(double)para.get3DBhabhaVetoAngle(0), (double)para.get3DBhabhaVetoAngle(1), (double)para.get3DBhabhaVetoAngle(2), (double)para.get3DBhabhaVetoAngle(3)};
157 _3DBhabhaSelectionAngle = {(double)para.get3DBhabhaSelectionAngle(0), (double)para.get3DBhabhaSelectionAngle(1), (double)para.get3DBhabhaSelectionAngle(2), (double)para.get3DBhabhaSelectionAngle(3)};
160 _mumuAngle = {(double)para.getmumuAngle(0), (double)para.getmumuAngle(1), (double)para.getmumuAngle(2)};
161 _LowMultiThreshold = {(double)para.getLowMultiThreshold(0) , (double)para.getLowMultiThreshold(1), (double)para.getLowMultiThreshold(2), (double)para.getLowMultiThreshold(3)};
166 std::cout <<
"TRGECLModule ... beginRun called " << std::endl;
179 std::cout <<
"TRGECLMoudle ... event called" << std::endl;
189 _ecl-> setBhabhaMethod(
_Bhabha);
234 std::cout <<
"TRGECLModule ... endRun called " << std::endl;
244 std::cout <<
"TRGECLModule ... terminate called " << std::endl;