Skip to content

Commit 7ad663d

Browse files
committed
PWGEM/Dilepton: update norm001 table after #13971
1 parent f28f5c4 commit 7ad663d

File tree

7 files changed

+93
-76
lines changed

7 files changed

+93
-76
lines changed

PWGEM/Dilepton/Core/Dilepton.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ struct Dilepton {
514514

515515
if (doprocessNorm) {
516516
fRegistry.addClone("Event/before/hCollisionCounter", "Event/norm/hCollisionCounter");
517+
fRegistry.add("Event/norm/hZvtx", "hZvtx;Z_{vtx} (cm)", kTH1D, {{100, -50, +50}}, false);
517518
}
518519
if (doprocessTriggerAnalysis) {
519520
LOGF(info, "Trigger analysis is enabled. Desired trigger name = %s", cfg_swt_name.value.data());
@@ -1892,15 +1893,13 @@ struct Dilepton {
18921893
}
18931894
PROCESS_SWITCH(Dilepton, processTriggerAnalysis, "run dilepton analysis on triggered data", false);
18941895

1895-
Filter collisionFilter_centrality_norm = cfgCentMin < o2::aod::cent::centFT0C && o2::aod::cent::centFT0C < cfgCentMax;
1896-
using FilteredNormInfos = soa::Filtered<aod::EMEventNormInfos>;
1897-
1898-
void processNorm(FilteredNormInfos const& collisions)
1896+
void processNorm(aod::EMEventNormInfos const& collisions)
18991897
{
19001898
for (const auto& collision : collisions) {
19011899
if (collision.centFT0C() < cfgCentMin || cfgCentMax < collision.centFT0C()) {
19021900
continue;
19031901
}
1902+
fRegistry.fill(HIST("Event/norm/hZvtx"), collision.posZ());
19041903

19051904
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), 1.0);
19061905
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {

PWGEM/Dilepton/Core/DileptonProducer.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,16 +758,14 @@ struct DileptonProducer {
758758
}
759759
PROCESS_SWITCH(DileptonProducer, processAnalysis, "run dilepton analysis", true);
760760

761-
Filter collisionFilter_centrality_norm = cfgCentMin < o2::aod::cent::centFT0C && o2::aod::cent::centFT0C < cfgCentMax;
762-
using FilteredNormInfos = soa::Filtered<aod::EMEventNormInfos>;
763-
void processNorm(FilteredNormInfos const& collisions)
761+
void processNorm(aod::EMEventNormInfos const& collisions)
764762
{
765763
for (const auto& collision : collisions) {
766764
if (collision.centFT0C() < cfgCentMin || cfgCentMax < collision.centFT0C()) {
767765
continue;
768766
}
769767

770-
normTable(collision.selection_raw(), collision.rct_raw(), collision.posZ(), collision.centFT0C());
768+
normTable(collision.selection_raw(), collision.rct_raw(), collision.posZint16(), collision.centFT0Cuint16());
771769

772770
} // end of collision loop
773771
}

PWGEM/Dilepton/DataModel/dileptonTables.h

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@ DECLARE_SOA_COLUMN(Q4yBTot, q4ybtot, float); //!
128128
DECLARE_SOA_COLUMN(SpherocityPtWeighted, spherocity_ptweighted, float); //! transverse spherocity
129129
DECLARE_SOA_COLUMN(SpherocityPtUnWeighted, spherocity_ptunweighted, float); //! transverse spherocity
130130
DECLARE_SOA_COLUMN(NtrackSpherocity, ntspherocity, int);
131-
DECLARE_SOA_COLUMN(IsSelected, isSelected, bool); //! MB event selection info
132-
DECLARE_SOA_COLUMN(IsEoI, isEoI, bool); //! lepton or photon exists in MB event (not for CEFP)
133-
DECLARE_SOA_COLUMN(PosX, posX, float); //! only for treeCreatetorML.cxx
134-
DECLARE_SOA_COLUMN(PosY, posY, float); //! only for treeCreatetorML.cxx
135-
DECLARE_SOA_COLUMN(PosZint16, posZint16, int16_t); //! this is only to reduce data size
136-
DECLARE_SOA_DYNAMIC_COLUMN(PosZ, posZ, [](int16_t posZint16) -> float { return static_cast<float>(posZint16) * 0.1f; });
137-
131+
DECLARE_SOA_COLUMN(IsSelected, isSelected, bool); //! MB event selection info
132+
DECLARE_SOA_COLUMN(IsEoI, isEoI, bool); //! lepton or photon exists in MB event (not for CEFP)
133+
DECLARE_SOA_COLUMN(PosX, posX, float); //! only for treeCreatetorML.cxx
134+
DECLARE_SOA_COLUMN(PosY, posY, float); //! only for treeCreatetorML.cxx
135+
DECLARE_SOA_COLUMN(PosZint16, posZint16, int16_t); //! this is only to reduce data size
136+
DECLARE_SOA_COLUMN(CentFT0Cuint16, centFT0Cuint16, uint16_t); //! this is only to reduce data size
137+
138+
DECLARE_SOA_DYNAMIC_COLUMN(PosZ, posZ, [](int16_t posZint16) -> float { return (posZint16 < 0 ? std::nextafter(posZint16 * 0.01f, -std::numeric_limits<float>::infinity()) : std::nextafter(posZint16 * 0.01f, std::numeric_limits<float>::infinity())); }); //! poZ is multiplied by 100 in createEMEventDileton.cxx
139+
DECLARE_SOA_DYNAMIC_COLUMN(CentFT0C, centFT0C, [](uint16_t centuint16) -> float { return std::nextafter(centuint16 * 0.002f, std::numeric_limits<float>::infinity()); }); //! centrality is multiplied by 500 in createEMEventDilepton.cxx
138140
DECLARE_SOA_DYNAMIC_COLUMN(Sel8, sel8, [](uint64_t selection_bit) -> bool { return (selection_bit & BIT(o2::aod::evsel::kIsTriggerTVX)) && (selection_bit & BIT(o2::aod::evsel::kNoTimeFrameBorder)) && (selection_bit & BIT(o2::aod::evsel::kNoITSROFrameBorder)); });
139141
DECLARE_SOA_DYNAMIC_COLUMN(EP2FT0M, ep2ft0m, [](float q2x, float q2y) -> float { return std::atan2(q2y, q2x) / 2.0; });
140142
DECLARE_SOA_DYNAMIC_COLUMN(EP2FT0A, ep2ft0a, [](float q2x, float q2y) -> float { return std::atan2(q2y, q2x) / 2.0; });
@@ -295,7 +297,8 @@ DECLARE_SOA_TABLE_VERSIONED(EMEventNormInfos_000, "AOD", "EMEVENTNORMINFO", 0, /
295297
o2::soa::Index<>, evsel::Alias, evsel::Selection, evsel::Rct, emevent::PosZint16, cent::CentFT0C, emevent::PosZ<emevent::PosZint16>, emevent::Sel8<evsel::Selection>);
296298

297299
DECLARE_SOA_TABLE_VERSIONED(EMEventNormInfos_001, "AOD", "EMEVENTNORMINFO", 1, //! event information for normalization
298-
o2::soa::Index<>, evsel::Selection, evsel::Rct, collision::PosZ, cent::CentFT0C, emevent::Sel8<evsel::Selection>);
300+
o2::soa::Index<>, evsel::Selection, evsel::Rct, emevent::PosZint16, emevent::CentFT0Cuint16,
301+
emevent::Sel8<evsel::Selection>, emevent::PosZ<emevent::PosZint16>, emevent::CentFT0C<emevent::CentFT0Cuint16>, o2::soa::Marker<1>);
299302
using EMEventNormInfos = EMEventNormInfos_001;
300303
using EMEventNormInfo = EMEventNormInfos::iterator;
301304

@@ -950,8 +953,10 @@ DECLARE_SOA_TABLE_VERSIONED(EMThinEvents_000, "AOD", "EMTHINEVENT", 0, //! Thin
950953
using EMThinEvents = EMThinEvents_000;
951954
using EMThinEvent = EMThinEvents::iterator;
952955

953-
DECLARE_SOA_TABLE(EMThinEventNormInfos, "AOD", "EMTHINEVENTNORM", //! event information for normalization
954-
o2::soa::Index<>, evsel::Selection, evsel::Rct, collision::PosZ, cent::CentFT0C, emevent::Sel8<evsel::Selection>, o2::soa::Marker<2>);
956+
DECLARE_SOA_TABLE_VERSIONED(EMThinEventNormInfos_000, "AOD", "EMTHINEVENTNORM", 0, //! event information for normalization
957+
o2::soa::Index<>, evsel::Selection, evsel::Rct, emevent::PosZint16, emevent::CentFT0Cuint16,
958+
emevent::Sel8<evsel::Selection>, emevent::PosZ<emevent::PosZint16>, emevent::CentFT0C<emevent::CentFT0Cuint16>, o2::soa::Marker<2>);
959+
using EMThinEventNormInfos = EMThinEventNormInfos_000;
955960
using EMThinEventNormInfo = EMThinEventNormInfos::iterator;
956961

957962
namespace emdilepton

PWGEM/Dilepton/TableProducer/Converters/eventNormConverter1.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ struct eventNormConverter1 {
3535
event_001(
3636
collision.selection_raw(),
3737
collision.rct_raw(),
38-
collision.posZ(),
39-
collision.centFT0C());
38+
static_cast<int16_t>(collision.posZ() * 100.f),
39+
static_cast<uint16_t>(collision.centFT0C() * 500.f));
4040
} // end of collision loop
4141
}
4242
};

PWGEM/Dilepton/TableProducer/createEMEventDilepton.cxx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ struct CreateEMEventDilepton {
106106
{
107107
for (const auto& bc : bcs) {
108108
if (bc.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
109-
// const auto& collisions_perBC = collisions.sliceBy(perBC, bc.globalIndex());
110-
// embc(bc.selection_bit(o2::aod::evsel::kIsTriggerTVX), bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder), bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder), static_cast<bool>(collisions_perBC.size() > 0)); // TVX is fired.
111109
embc(bc.selection_raw(), bc.rct_raw()); // TVX is fired.
112110
}
113111
} // end of bc loop
@@ -123,12 +121,20 @@ struct CreateEMEventDilepton {
123121
auto bc = collision.template foundBC_as<TBCs>();
124122

125123
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
124+
int16_t posZint16 = static_cast<int16_t>(collision.posZ() * 100.f);
125+
if (posZint16 == 0) {
126+
if (collision.posZ() < 0.f) {
127+
posZint16 = -1;
128+
} else {
129+
posZint16 = +1;
130+
}
131+
}
126132
if constexpr (eventtype == EMEventType::kEvent) {
127-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), 105.f);
133+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(105.f * 500.f));
128134
} else if constexpr (eventtype == EMEventType::kEvent_Cent || eventtype == EMEventType::kEvent_Cent_Qvec) {
129-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), collision.centFT0C());
135+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(collision.centFT0C() * 500.f));
130136
} else {
131-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), 105.f);
137+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(105.f * 500.f));
132138
}
133139
}
134140

PWGEM/Dilepton/Tasks/dileptonPolarization.cxx

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
#include "PWGEM/Dilepton/Utils/EMFwdTrack.h"
1919
#include "PWGEM/Dilepton/Utils/EMTrack.h"
2020
#include "PWGEM/Dilepton/Utils/EMTrackUtilities.h"
21-
#include "PWGEM/Dilepton/Utils/EventHistograms.h"
21+
// #include "PWGEM/Dilepton/Utils/EventHistograms.h"
2222
#include "PWGEM/Dilepton/Utils/EventMixingHandler.h"
2323
#include "PWGEM/Dilepton/Utils/PairUtilities.h"
2424

2525
#include "CCDB/BasicCCDBManager.h"
2626
#include "CommonConstants/LHCConstants.h"
2727
#include "DataFormatsParameters/GRPECSObject.h"
2828
#include "DataFormatsParameters/GRPLHCIFData.h"
29-
#include "DataFormatsParameters/GRPMagField.h"
30-
#include "DataFormatsParameters/GRPObject.h"
31-
#include "DetectorsBase/GeometryManager.h"
32-
#include "DetectorsBase/Propagator.h"
29+
// #include "DataFormatsParameters/GRPMagField.h"
30+
// #include "DataFormatsParameters/GRPObject.h"
31+
// #include "DetectorsBase/GeometryManager.h"
32+
// #include "DetectorsBase/Propagator.h"
3333
#include "Framework/ASoAHelpers.h"
3434
#include "Framework/AnalysisTask.h"
3535
#include "Framework/runDataProcessing.h"
@@ -64,19 +64,19 @@ using MyEMH_pair = o2::aod::pwgem::dilepton::utils::EventMixingHandler<std::tupl
6464
struct DileptonPolarization {
6565
// Configurables
6666
Configurable<std::string> ccdburl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
67-
Configurable<std::string> grpPath{"grpPath", "GLO/GRP/GRP", "Path of the grp file"};
68-
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
69-
Configurable<bool> skipGRPOquery{"skipGRPOquery", true, "skip grpo query"};
70-
Configurable<float> d_bz_input{"d_bz_input", -999, "bz field in kG, -999 is automatic"};
67+
// Configurable<std::string> grpPath{"grpPath", "GLO/GRP/GRP", "Path of the grp file"};
68+
// Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
69+
// Configurable<bool> skipGRPOquery{"skipGRPOquery", true, "skip grpo query"};
70+
// Configurable<float> d_bz_input{"d_bz_input", -999, "bz field in kG, -999 is automatic"};
7171

72-
Configurable<int> cfgPairType{"cfgPairType", 0, "0:dielectron:0, 1:dimuon"};
72+
Configurable<int> cfgPairType{"cfgPairType", 0, "0:dielectron, 1:dimuon"};
7373
Configurable<int> cfgOccupancyEstimator{"cfgOccupancyEstimator", 0, "FT0C:0, Track:1"};
7474
Configurable<bool> cfgDoMix{"cfgDoMix", true, "flag for event mixing"};
75-
Configurable<int> ndepth{"ndepth", 100, "depth for event mixing"};
75+
Configurable<int> ndepth{"ndepth", 1000, "depth for event mixing"};
7676
Configurable<uint64_t> ndiff_bc_mix{"ndiff_bc_mix", 594, "difference in global BC required in mixed events"};
7777
ConfigurableAxis ConfVtxBins{"ConfVtxBins", {VARIABLE_WIDTH, -10.0f, -8.f, -6.f, -4.f, -2.f, 0.f, 2.f, 4.f, 6.f, 8.f, 10.f}, "Mixing bins - z-vertex"};
78-
ConfigurableAxis ConfCentBins{"ConfCentBins", {VARIABLE_WIDTH, 0.0f, 5.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f, 100.f, 999.f}, "Mixing bins - centrality"};
79-
ConfigurableAxis ConfEPBins{"ConfEPBins", {16, -M_PI / 2, +M_PI / 2}, "Mixing bins - event plane angle"};
78+
ConfigurableAxis ConfCentBins{"ConfCentBins", {VARIABLE_WIDTH, 0.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f, 100.f, 999.f}, "Mixing bins - centrality"};
79+
ConfigurableAxis ConfEPBins{"ConfEPBins", {1, -M_PI / 2, +M_PI / 2}, "Mixing bins - event plane angle"};
8080
ConfigurableAxis ConfOccupancyBins{"ConfOccupancyBins", {VARIABLE_WIDTH, -1, 1e+10}, "Mixing bins - occupancy"};
8181
Configurable<int> cfgPolarizationFrame{"cfgPolarizationFrame", 0, "frame of polarization. 0:CS, 1:HX, else:FATAL"};
8282

@@ -134,7 +134,7 @@ struct DileptonPolarization {
134134

135135
Service<o2::ccdb::BasicCCDBManager> ccdb;
136136
int mRunNumber;
137-
float d_bz;
137+
// float d_bz;
138138

139139
HistogramRegistry fRegistry{"output", {}, OutputObjHandlingPolicy::AnalysisObject, false, false};
140140
// static constexpr std::string_view event_cut_types[2] = {"before/", "after/"};
@@ -163,7 +163,7 @@ struct DileptonPolarization {
163163
void init(InitContext& /*context*/)
164164
{
165165
mRunNumber = 0;
166-
d_bz = 0;
166+
// d_bz = 0;
167167

168168
ccdb->setURL(ccdburl);
169169
ccdb->setCaching(true);
@@ -334,39 +334,38 @@ struct DileptonPolarization {
334334
return;
335335
}
336336

337-
// In case override, don't proceed, please - no CCDB access required
338-
if (d_bz_input > -990) {
339-
d_bz = d_bz_input;
340-
o2::parameters::GRPMagField grpmag;
341-
if (std::fabs(d_bz) > 1e-5) {
342-
grpmag.setL3Current(30000.f / (d_bz / 5.0f));
343-
}
344-
o2::base::Propagator::initFieldFromGRP(&grpmag);
345-
mRunNumber = collision.runNumber();
346-
return;
347-
}
348-
349-
auto run3grp_timestamp = collision.timestamp();
350-
o2::parameters::GRPObject* grpo = 0x0;
351-
o2::parameters::GRPMagField* grpmag = 0x0;
352-
if (!skipGRPOquery)
353-
grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>(grpPath, run3grp_timestamp);
354-
if (grpo) {
355-
o2::base::Propagator::initFieldFromGRP(grpo);
356-
// Fetch magnetic field from ccdb for current collision
357-
d_bz = grpo->getNominalL3Field();
358-
LOG(info) << "Retrieved GRP for timestamp " << run3grp_timestamp << " with magnetic field of " << d_bz << " kG";
359-
} else {
360-
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, run3grp_timestamp);
361-
if (!grpmag) {
362-
LOG(fatal) << "Got nullptr from CCDB for path " << grpmagPath << " of object GRPMagField and " << grpPath << " of object GRPObject for timestamp " << run3grp_timestamp;
363-
}
364-
o2::base::Propagator::initFieldFromGRP(grpmag);
365-
// Fetch magnetic field from ccdb for current collision
366-
d_bz = std::lround(5.f * grpmag->getL3Current() / 30000.f);
367-
LOG(info) << "Retrieved GRP for timestamp " << run3grp_timestamp << " with magnetic field of " << d_bz << " kG";
368-
}
369-
mRunNumber = collision.runNumber();
337+
// // In case override, don't proceed, please - no CCDB access required
338+
// if (d_bz_input > -990) {
339+
// d_bz = d_bz_input;
340+
// o2::parameters::GRPMagField grpmag;
341+
// if (std::fabs(d_bz) > 1e-5) {
342+
// grpmag.setL3Current(30000.f / (d_bz / 5.0f));
343+
// }
344+
// o2::base::Propagator::initFieldFromGRP(&grpmag);
345+
// mRunNumber = collision.runNumber();
346+
// return;
347+
// }
348+
349+
// auto run3grp_timestamp = collision.timestamp();
350+
// o2::parameters::GRPObject* grpo = 0x0;
351+
// o2::parameters::GRPMagField* grpmag = 0x0;
352+
// if (!skipGRPOquery)
353+
// grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>(grpPath, run3grp_timestamp);
354+
// if (grpo) {
355+
// o2::base::Propagator::initFieldFromGRP(grpo);
356+
// // Fetch magnetic field from ccdb for current collision
357+
// d_bz = grpo->getNominalL3Field();
358+
// LOG(info) << "Retrieved GRP for timestamp " << run3grp_timestamp << " with magnetic field of " << d_bz << " kG";
359+
// } else {
360+
// grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, run3grp_timestamp);
361+
// if (!grpmag) {
362+
// LOG(fatal) << "Got nullptr from CCDB for path " << grpmagPath << " of object GRPMagField and " << grpPath << " of object GRPObject for timestamp " << run3grp_timestamp;
363+
// }
364+
// o2::base::Propagator::initFieldFromGRP(grpmag);
365+
// // Fetch magnetic field from ccdb for current collision
366+
// d_bz = std::lround(5.f * grpmag->getL3Current() / 30000.f);
367+
// LOG(info) << "Retrieved GRP for timestamp " << run3grp_timestamp << " with magnetic field of " << d_bz << " kG";
368+
// }
370369

371370
auto grplhcif = ccdb->getForTimeStamp<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", collision.timestamp());
372371
int beamZ1 = grplhcif->getBeamZ(o2::constants::lhc::BeamC);
@@ -380,6 +379,8 @@ struct DileptonPolarization {
380379
beamP1 = std::sqrt(std::pow(beamE1, 2) - std::pow(beamM1, 2));
381380
beamP2 = std::sqrt(std::pow(beamE2, 2) - std::pow(beamM2, 2));
382381
LOGF(info, "beamZ1 = %d, beamZ2 = %d, beamA1 = %d, beamA2 = %d, beamE1 = %f (GeV), beamE2 = %f (GeV), beamM1 = %f (GeV), beamM2 = %f (GeV), beamP1 = %f (GeV), beamP2 = %f (GeV)", beamZ1, beamZ2, beamA1, beamA2, beamE1, beamE2, beamM1, beamM2, beamP1, beamP2);
382+
383+
mRunNumber = collision.runNumber();
383384
}
384385

385386
~DileptonPolarization()

PWGEM/PhotonMeson/TableProducer/createEMEventPhoton.cxx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,20 @@ struct CreateEMEventPhoton {
176176
}
177177

178178
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
179+
int16_t posZint16 = static_cast<int16_t>(collision.posZ() * 100.f);
180+
if (posZint16 == 0.f) {
181+
if (collision.posZ() < 0) {
182+
posZint16 = -1;
183+
} else {
184+
posZint16 = +1;
185+
}
186+
}
179187
if constexpr (eventtype == EMEventType::kEvent) {
180-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), 105.f);
188+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(105.f * 500.f));
181189
} else if constexpr (eventtype == EMEventType::kEvent_Cent || eventtype == EMEventType::kEvent_Cent_Qvec) {
182-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), collision.centFT0C());
190+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(collision.centFT0C() * 500.f));
183191
} else {
184-
event_norm_info(collision.selection_raw(), collision.rct_raw(), collision.posZ(), 105.f);
192+
event_norm_info(collision.selection_raw(), collision.rct_raw(), posZint16, static_cast<uint16_t>(105.f * 500.f));
185193
}
186194
}
187195

0 commit comments

Comments
 (0)