139 EVENT::LCCollection* track_data) {
140 if (!lc_track)
return nullptr;
154 std::map<std::string, int> trackstateLocationMapV30_ = {{
"", EVENT::TrackState::AtPerigee},
155 {
"AtPerigee", EVENT::TrackState::AtPerigee},
156 {
"AtIP", EVENT::TrackState::AtIP},
157 {
"AtTarget", EVENT::TrackState::AtTarget},
158 {
"AtFirstHit", EVENT::TrackState::AtFirstHit},
159 {
"AtLastHit", EVENT::TrackState::AtLastHit},
160 {
"AtCalorimeter", EVENT::TrackState::AtCalorimeter},
161 {
"AtVertex", EVENT::TrackState::AtVertex},
162 {
"LastLocation", EVENT::TrackState::LastLocation}};
164 std::map<std::string, int> trackstateLocationMapV23_ = {
165 {
"", EVENT::TrackState::AtIP}, {
"AtIP", 1}, {
"AtFirstHit", 2}, {
"AtLastHit", 3},
166 {
"AtCalorimeter", 4}, {
"AtVertex", 5}, {
"LastLocation", 5}};
186 const EVENT::TrackStateVec* trackStatesPtr =
nullptr;
188 trackStatesPtr = &(lc_track->getTrackStates());
194 if (!trackStatesPtr || trackStatesPtr->size() < 2) {
199 const EVENT::TrackState* ts1 = trackStatesPtr->at(1);
204 double bTmp = ts1->getBLocal();
205 std::map<std::string, int> trackstateLocationMap_;
206 if (abs(bTmp) < 10.0)
207 trackstateLocationMap_ = trackstateLocationMapV30_;
209 trackstateLocationMap_ = trackstateLocationMapV23_;
212 auto it = trackstateLocationMap_.find(trackstate_location);
213 if (it != trackstateLocationMap_.end()) {
216 std::cout <<
"[utilities]::ERROR Track State Location " << trackstate_location <<
" Doesn't Exist!"
218 std::cout <<
"Check map in utilities::buildTrack for defined locations" << std::endl;
225 const EVENT::TrackState* ts = lc_track->getTrackState(loc);
238 double tsD0 = ts->getD0();
239 double tsZ0 = ts->getZ0();
240 if (loc == EVENT::TrackState::AtTarget) {
241 tsD0 = ts->getReferencePoint()[1];
242 tsZ0 = ts->getReferencePoint()[2];
246 track->setTrackParameters(tsD0, ts->getPhi(), ts->getOmega(), ts->getTanLambda(), tsZ0);
248 double position[3] = {ts->getReferencePoint()[1], ts->getReferencePoint()[2], ts->getReferencePoint()[0]};
250 track->setCov(
static_cast<std::vector<float>
>(ts->getCovMatrix()));
251 track->setPosition(position);
253 double bLocal = lc_track->getTrackState(loc)->getBLocal();
256 track->setMomentum(bLocal);
259 track->setID(lc_track->id());
262 track->setType(lc_track->getType());
265 track->setChi2(lc_track->getChi2());
268 track->setNdf(lc_track->getNdf());
272 const EVENT::TrackState* track_state = lc_track->getTrackState(trackstateLocationMap_[
"AtCalorimeter"]);
275 double position_at_ecal[3] = {track_state->getReferencePoint()[1], track_state->getReferencePoint()[2],
276 track_state->getReferencePoint()[0]};
277 track->setPositionAtEcal(position_at_ecal);
283 std::shared_ptr<UTIL::LCRelationNavigator> gbl_kink_data_nav =
284 std::make_shared<UTIL::LCRelationNavigator>(gbl_kink_data);
287 EVENT::LCObjectVec gbl_kink_data_list = gbl_kink_data_nav->getRelatedFromObjects(lc_track);
291 if (gbl_kink_data_list.size() == 1) {
299 IMPL::LCGenericObjectImpl* gbl_kink_datum =
300 static_cast<IMPL::LCGenericObjectImpl*
>(gbl_kink_data_list.at(0));
303 for (
int ikink = 0; ikink < gbl_kink_datum->getNDouble(); ++ikink) {
304 track->setLambdaKink(ikink, gbl_kink_datum->getFloatVal(ikink));
305 track->setPhiKink(ikink, gbl_kink_datum->getDoubleVal(ikink));
315 std::shared_ptr<UTIL::LCRelationNavigator> track_data_nav =
316 std::make_shared<UTIL::LCRelationNavigator>(track_data);
319 EVENT::LCObjectVec track_data_list = track_data_nav->getRelatedFromObjects(lc_track);
323 if (track_data_list.size() == 1) {
325 IMPL::LCGenericObjectImpl* track_datum =
static_cast<IMPL::LCGenericObjectImpl*
>(track_data_list.at(0));
329 if (track_datum->getNDouble() > 14 || track_datum->getNFloat() > 8 || track_datum->getNInt() != 1) {
330 throw std::runtime_error(
"[ TrackingProcessor ]: The collection " +
335 for (
int iso_index = 0; iso_index < track_datum->getNDouble(); ++iso_index) {
336 track->setIsolation(iso_index, track_datum->getDoubleVal(iso_index));
340 track->setTrackTime(track_datum->getFloatVal(0));
346 if (track_datum->getNFloat() > 3 &&
348 track->setMomentum(track_datum->getFloatVal(1), track_datum->getFloatVal(2),
349 track_datum->getFloatVal(3));
352 track->setTrackVolume(track_datum->getIntVal(0));
356 if (abs(bLocal) > 10.0) {
357 double bfieldY = -999.9;
358 if (track_datum->getNFloat() > 4) {
359 if (loc == trackstateLocationMap_[
""]) bfieldY = track_datum->getFloatVal(4);
360 if (loc == trackstateLocationMap_[
"AtTarget"]) {
361 bfieldY = track_datum->getFloatVal(5);
363 if (loc == trackstateLocationMap_[
"AtCalorimeter"]) bfieldY = track_datum->getFloatVal(6);
364 track->setMomentum(-bfieldY);
375 EVENT::long64 value =
376 EVENT::long64(rawTracker_hit->getCellID0() & 0xffffffff) | (EVENT::long64(rawTracker_hit->getCellID1()) << 32);
389 int hit_adcs[6] = {(int)rawTracker_hit->getADCValues().at(0), (int)rawTracker_hit->getADCValues().at(1),
390 (int)rawTracker_hit->getADCValues().at(2), (int)rawTracker_hit->getADCValues().at(3),
391 (int)rawTracker_hit->getADCValues().at(4), (int)rawTracker_hit->getADCValues().at(5)};
394 if (raw_svt_hit_fits) {
395 std::shared_ptr<UTIL::LCRelationNavigator> rawTracker_hit_fits_nav =
396 std::make_shared<UTIL::LCRelationNavigator>(raw_svt_hit_fits);
399 EVENT::LCObjectVec rawTracker_hit_fits_list = rawTracker_hit_fits_nav->getRelatedToObjects(rawTracker_hit);
402 IMPL::LCGenericObjectImpl* hit_fit_param =
403 static_cast<IMPL::LCGenericObjectImpl*
>(rawTracker_hit_fits_list.at(0));
405 double fit_params[5] = {(double)hit_fit_param->getDoubleVal(0), (double)hit_fit_param->getDoubleVal(1),
406 (double)hit_fit_param->getDoubleVal(2), (double)hit_fit_param->getDoubleVal(3),
407 (double)hit_fit_param->getDoubleVal(4)};
408 rawHit->
setFit(fit_params, 0);
409 if (rawTracker_hit_fits_list.size() > 1) {
410 hit_fit_param =
static_cast<IMPL::LCGenericObjectImpl*
>(rawTracker_hit_fits_list.at(1));
411 fit_params[0] = (double)hit_fit_param->getDoubleVal(0);
412 fit_params[1] = (double)hit_fit_param->getDoubleVal(1);
413 fit_params[2] = (double)hit_fit_param->getDoubleVal(2);
414 fit_params[3] = (double)hit_fit_param->getDoubleVal(3);
415 fit_params[4] = (double)hit_fit_param->getDoubleVal(4);
417 rawHit->
setFit(fit_params, 1);
419 rawHit->
setFitN(rawTracker_hit_fits_list.size());
458 EVENT::LCCollection* raw_svt_fits, std::vector<RawSvtHit*>* rawHits,
int type,
460 if (!tracker_hit || !lc_tracker_hit)
return false;
469 UTIL::BitField64
decoder(
"system:6,barrel:3,layer:4,module:12,sensor:1,side:32:-2,strip:12");
472 EVENT::LCObjectVec lc_rawHits = lc_tracker_hit->getRawHits();
474 std::vector<int> rawhit_strips;
475 for (
unsigned int irh = 0; irh < lc_rawHits.size(); ++irh) {
477 EVENT::TrackerRawData* rawTracker_hit =
static_cast<EVENT::TrackerRawData*
>(lc_rawHits.at(irh));
480 EVENT::long64 value = EVENT::long64(rawTracker_hit->getCellID0() & 0xffffffff) |
481 (EVENT::long64(rawTracker_hit->getCellID1()) << 32);
485 int stripnumber =
decoder[
"strip"];
486 rawhit_strips.push_back(stripnumber);
490 rawcharge += rawHit->
getAmp(0);
491 int currentHitVolume = rawHit->
getModule() % 2 ? 1 : 0;
492 int currentHitLayer = (rawHit->
getLayer() - 1) / 2;
493 if (type == 1) currentHitLayer = rawHit->
getLayer() - 1;
495 volume = currentHitVolume;
497 if (currentHitVolume != volume)
498 std::cout <<
"[ ERROR ] : utils::addRawInfoTo3dHit raw hits with inconsistent volume found"
503 layer = currentHitLayer;
505 if (currentHitLayer != layer)
506 std::cout <<
"[ ERROR ] : utils::addRawInfoTo3dHit raw hits with inconsistent layer found" << std::endl;
511 if (rawHits) rawHits->push_back(rawHit);
569 double L1_axial_iso = 999999.9;
570 double L1_stereo_iso = 999999.9;
572 for (
int i = 0; i < track->getSvtHits().GetEntries(); i++) {
575 int trackhit_id = track_hit->
getID();
576 int trackhit_layer = track_hit->
getLayer();
577 int trackhit_volume = track_hit->
getVolume();
580 double trackhit_time = track_hit->
getTime();
583 if (trackhit_layer > 1)
continue;
587 if (trackhit_rawhits.size() < 1)
continue;
588 int trackhit_maxstrip = *max_element(trackhit_rawhits.begin(), trackhit_rawhits.end());
589 int trackhit_minstrip = *min_element(trackhit_rawhits.begin(), trackhit_rawhits.end());
592 bool isAxial =
false;
594 if (trackhit_volume == 1) {
595 if (trackhit_layer % 2 == 1) isAxial =
true;
597 if (trackhit_volume == 0) {
598 if (trackhit_layer % 2 == 0) isAxial =
true;
604 double isohit_dy = 999999.9;
605 double closest_dcharge = 99999.9;
606 double closest_dt = 999999.9;
607 double isohit_y = 999999.9;
609 if (siClusters ==
nullptr)
return isohit_dy;
610 for (
int j = 0; j < siClusters->size(); j++) {
612 int althit_id = althit->
getID();
614 int althit_layer = althit->
getLayer();
617 double althit_time = althit->
getTime();
620 if (althit_layer != trackhit_layer)
continue;
623 if (althit_volume != trackhit_volume)
continue;
626 if (althit_id == trackhit_id)
continue;
629 if ((trackhit_volume == 0 && althit_y < trackhit_y) || (trackhit_volume == 1 && althit_y > trackhit_y))
633 if (std::abs(althit_time) > 30.0)
continue;
637 int althit_maxstrip = *max_element(althit_rawhits.begin(), althit_rawhits.end());
638 int althit_minstrip = *min_element(althit_rawhits.begin(), althit_rawhits.end());
639 if (trackhit_minstrip - althit_maxstrip <= 1 && althit_minstrip - trackhit_maxstrip <= 1)
continue;
642 if (std::abs(trackhit_y - althit_y) < isohit_dy) {
643 isohit_dy = std::abs(trackhit_y - althit_y);
644 closest_althit = althit;
645 closest_dcharge = trackhit_charge - althit_charge;
646 closest_dt = trackhit_time - althit_time;
652 L1_axial_iso = isohit_dy;
654 L1_stereo_iso = isohit_dy;
657 if (L1_axial_iso < L1_stereo_iso) {
660 return L1_stereo_iso;
665 std::map<int, int> nHits4part_ele;
666 for (
int i = 0; i < ele_trk->
getMcpHits().size(); i++) {
667 int partID = ele_trk->
getMcpHits().at(i).second;
668 if (nHits4part_ele.find(partID) == nHits4part_ele.end()) {
670 nHits4part_ele[partID] = 1;
673 nHits4part_ele[partID]++;
678 int maxNHits_ele = 0;
680 for (std::map<int, int>::iterator it = nHits4part_ele.begin(); it != nHits4part_ele.end(); ++it) {
681 if (it->second > maxNHits_ele) {
682 maxNHits_ele = it->second;
683 maxID_ele = it->first;
688 std::map<int, int> nHits4part_pos;
689 for (
int i = 0; i < pos_trk->
getMcpHits().size(); i++) {
690 int partID = pos_trk->
getMcpHits().at(i).second;
691 if (nHits4part_pos.find(partID) == nHits4part_pos.end()) {
693 nHits4part_pos[partID] = 1;
696 nHits4part_pos[partID]++;
701 int maxNHits_pos = 0;
703 for (std::map<int, int>::iterator it = nHits4part_pos.begin(); it != nHits4part_pos.end(); ++it) {
704 if (it->second > maxNHits_pos) {
705 maxNHits_pos = it->second;
706 maxID_pos = it->first;
711 bool ele_trueAxialL1 =
false;
712 bool ele_trueStereoL1 =
false;
713 bool ele_trueAxialL2 =
false;
714 bool ele_trueStereoL2 =
false;
715 bool pos_trueAxialL1 =
false;
716 bool pos_trueStereoL1 =
false;
717 bool pos_trueAxialL2 =
false;
718 bool pos_trueStereoL2 =
false;
721 for (
int i = 0; i < ele_trk->
getMcpHits().size(); i++) {
722 int mcpid = ele_trk->
getMcpHits().at(i).second;
723 int layer = ele_trk->
getMcpHits().at(i).first;
730 bool isAxial =
false;
731 bool isStereo =
false;
739 else if (layer > 1 && layer < 4)
757 if (mcpid == maxID_ele) isGood =
true;
761 if (isL1) ele_trueAxialL1 =
true;
762 if (isL2) ele_trueAxialL2 =
true;
765 if (isL1) ele_trueStereoL1 =
true;
766 if (isL2) ele_trueStereoL2 =
true;
773 for (
int i = 0; i < pos_trk->
getMcpHits().size(); i++) {
774 int mcpid = pos_trk->
getMcpHits().at(i).second;
775 int layer = pos_trk->
getMcpHits().at(i).first;
782 bool isAxial =
false;
783 bool isStereo =
false;
791 else if (layer > 1 && layer < 4)
809 if (mcpid == maxID_pos) isGood =
true;
813 if (isL1) pos_trueAxialL1 =
true;
814 if (isL2) pos_trueAxialL2 =
true;
817 if (isL1) pos_trueStereoL1 =
true;
818 if (isL2) pos_trueStereoL2 =
true;
825 if (ele_trueAxialL1 && ele_trueStereoL1) L1L2hitCode = L1L2hitCode | (0x1 << 3);
826 if (pos_trueAxialL1 && pos_trueStereoL1) L1L2hitCode = L1L2hitCode | (0x1 << 2);
827 if (ele_trueAxialL2 && ele_trueStereoL2) L1L2hitCode = L1L2hitCode | (0x1 << 1);
828 if (pos_trueAxialL2 && pos_trueStereoL2) L1L2hitCode = L1L2hitCode | (0x1 << 0);
831 if (ele_trueAxialL1) L1hitCode = L1hitCode | (0x1 << 3);
832 if (ele_trueStereoL1) L1hitCode = L1hitCode | (0x1 << 2);
833 if (pos_trueAxialL1) L1hitCode = L1hitCode | (0x1 << 1);
834 if (pos_trueStereoL1) L1hitCode = L1hitCode | (0x1 << 0);
837 if (ele_trueAxialL2) L2hitCode = L2hitCode | (0x1 << 3);
838 if (ele_trueStereoL2) L2hitCode = L2hitCode | (0x1 << 2);
839 if (pos_trueAxialL2) L2hitCode = L2hitCode | (0x1 << 1);
840 if (pos_trueStereoL2) L2hitCode = L2hitCode | (0x1 << 0);
844 double& vtx_proj_x_signif,
double& vtx_proj_y_signif,
845 double& vtx_proj_x_centered,
double& vtx_proj_y_centered,
846 double vtx_x,
double vtx_y,
double vtx_z,
double vtx_px,
847 double vtx_py,
double vtx_pz,
bool debug) {
855 int closest_run = -1;
856 for (
auto entry : v0proj_fits.items()) {
857 int check_run = std::stoi(entry.key());
858 if (check_run > run) {
860 if (closest_run < 0) closest_run = check_run;
863 closest_run = check_run;
867 throw std::runtime_error(
"v0_projection_to_target_significance: no run entries found in v0proj_fits JSON");
868 double target_pos = v0proj_fits[std::to_string(closest_run)][
"target_position"];
869 double rot_mean_x = v0proj_fits[std::to_string(closest_run)][
"rotated_mean_x"];
870 double rot_mean_y = v0proj_fits[std::to_string(closest_run)][
"rotated_mean_y"];
871 double rot_sigma_x = v0proj_fits[std::to_string(closest_run)][
"rotated_sigma_x"];
872 double rot_sigma_y = v0proj_fits[std::to_string(closest_run)][
"rotated_sigma_y"];
873 double rotation_angle = (double)v0proj_fits[std::to_string(closest_run)][
"rotation_angle_mrad"] / 1000.0;
876 std::cout <<
"[v0proj debug] run=" << run <<
" -> closest_run=" << closest_run << std::endl;
877 std::cout <<
"[v0proj debug] calibration constants:"
878 <<
" target_pos=" << target_pos
879 <<
" rot_mean_x=" << rot_mean_x
880 <<
" rot_mean_y=" << rot_mean_y
881 <<
" rot_sigma_x=" << rot_sigma_x
882 <<
" rot_sigma_y=" << rot_sigma_y
883 <<
" rotation_angle_mrad=" << rotation_angle * 1000.0
884 <<
" rotation_angle_rad=" << rotation_angle << std::endl;
885 std::cout <<
"[v0proj debug] input vertex:"
886 <<
" vtx_x=" << vtx_x
887 <<
" vtx_y=" << vtx_y
888 <<
" vtx_z=" << vtx_z
889 <<
" vtx_px=" << vtx_px
890 <<
" vtx_py=" << vtx_py
891 <<
" vtx_pz=" << vtx_pz << std::endl;
895 vtx_proj_x = vtx_x - ((vtx_z - target_pos) * (vtx_px / vtx_pz));
896 vtx_proj_y = vtx_y - ((vtx_z - target_pos) * (vtx_py / vtx_pz));
899 std::cout <<
"[v0proj debug] projection:"
900 <<
" dz=(vtx_z - target_pos)=" << (vtx_z - target_pos)
901 <<
" dx_correction=" << ((vtx_z - target_pos) * (vtx_px / vtx_pz))
902 <<
" dy_correction=" << ((vtx_z - target_pos) * (vtx_py / vtx_pz))
903 <<
" vtx_proj_x=" << vtx_proj_x
904 <<
" vtx_proj_y=" << vtx_proj_y << std::endl;
908 double rot_vtx_proj_x = vtx_proj_x * std::cos(rotation_angle) - vtx_proj_y * std::sin(rotation_angle);
909 double rot_vtx_proj_y = vtx_proj_x * std::sin(rotation_angle) + vtx_proj_y * std::cos(rotation_angle);
912 std::cout <<
"[v0proj debug] after rotation:"
913 <<
" rot_vtx_proj_x=" << rot_vtx_proj_x
914 <<
" rot_vtx_proj_y=" << rot_vtx_proj_y << std::endl;
918 vtx_proj_x_centered = rot_vtx_proj_x - rot_mean_x;
919 vtx_proj_y_centered = rot_vtx_proj_y - rot_mean_y;
920 vtx_proj_x_signif = vtx_proj_x_centered / rot_sigma_x;
921 vtx_proj_y_signif = vtx_proj_y_centered / rot_sigma_y;
923 double significance = std::sqrt(vtx_proj_x_signif * vtx_proj_x_signif + vtx_proj_y_signif * vtx_proj_y_signif);
926 std::cout <<
"[v0proj debug] significance:"
927 <<
" vtx_proj_x_centered=" << vtx_proj_x_centered
928 <<
" vtx_proj_y_centered=" << vtx_proj_y_centered
929 <<
" vtx_proj_x_signif=" << vtx_proj_x_signif
930 <<
" vtx_proj_y_signif=" << vtx_proj_y_signif
931 <<
" significance=" << significance << std::endl;
938 double& vtx_proj_x_signif,
double& vtx_proj_y_signif,
Vertex* vtx,
939 double& vtx_proj_x_err,
double& vtx_proj_y_err,
940 double& vtx_proj_x_centered,
double& vtx_proj_y_centered,
943 int closest_run = -1;
944 for (
auto entry : v0proj_fits.items()) {
945 int check_run = std::stoi(entry.key());
946 if (check_run > run) {
948 if (closest_run < 0) closest_run = check_run;
951 closest_run = check_run;
955 throw std::runtime_error(
"v0_projection_to_target_significance: no run entries found in v0proj_fits JSON");
956 double target_pos = v0proj_fits[std::to_string(closest_run)][
"target_position"];
957 double rot_mean_x = v0proj_fits[std::to_string(closest_run)][
"rotated_mean_x"];
958 double rot_mean_y = v0proj_fits[std::to_string(closest_run)][
"rotated_mean_y"];
959 double rot_sigma_x = v0proj_fits[std::to_string(closest_run)][
"rotated_sigma_x"];
960 double rot_sigma_y = v0proj_fits[std::to_string(closest_run)][
"rotated_sigma_y"];
961 double rotation_angle =
962 (double)v0proj_fits[std::to_string(closest_run)][
"rotation_angle_mrad"] / 1000.0;
965 double vtx_tgt_x = vtx->getTgtProjX();
966 double vtx_tgt_x_err = vtx->getTgtProjSigmaX();
967 double vtx_tgt_y = vtx->getTgtProjY();
968 double vtx_tgt_y_err = vtx->getTgtProjSigmaY();
970 vtx_proj_x = vtx_tgt_x;
971 vtx_proj_y = vtx_tgt_y;
972 vtx_proj_x_err = vtx_tgt_x_err;
973 vtx_proj_y_err = vtx_tgt_y_err;
976 std::cout <<
"[v0proj debug] run=" << run <<
" -> closest_run=" << closest_run << std::endl;
977 std::cout <<
"[v0proj debug] calibration constants:"
978 <<
" target_pos=" << target_pos
979 <<
" rot_mean_x=" << rot_mean_x
980 <<
" rot_mean_y=" << rot_mean_y
981 <<
" rot_sigma_x=" << rot_sigma_x
982 <<
" rot_sigma_y=" << rot_sigma_y
983 <<
" rotation_angle_mrad=" << rotation_angle * 1000.0
984 <<
" rotation_angle_rad=" << rotation_angle << std::endl;
985 std::cout <<
"[v0proj debug] vertex tgt projection (from Vertex object):"
986 <<
" vtx_tgt_x=" << vtx_tgt_x
987 <<
" vtx_tgt_x_err=" << vtx_tgt_x_err
988 <<
" vtx_tgt_y=" << vtx_tgt_y
989 <<
" vtx_tgt_y_err=" << vtx_tgt_y_err << std::endl;
993 double rot_vtx_proj_x = vtx_proj_x * std::cos(rotation_angle) - vtx_proj_y * std::sin(rotation_angle);
994 double rot_vtx_proj_y = vtx_proj_x * std::sin(rotation_angle) + vtx_proj_y * std::cos(rotation_angle);
997 std::cout <<
"[v0proj debug] after rotation:"
998 <<
" rot_vtx_proj_x=" << rot_vtx_proj_x
999 <<
" rot_vtx_proj_y=" << rot_vtx_proj_y << std::endl;
1004 double sigma_x = std::sqrt(rot_sigma_x * rot_sigma_x + vtx_tgt_x_err * vtx_tgt_x_err);
1005 double sigma_y = std::sqrt(rot_sigma_y * rot_sigma_y + vtx_tgt_y_err * vtx_tgt_y_err);
1006 vtx_proj_x_centered = rot_vtx_proj_x - rot_mean_x;
1007 vtx_proj_y_centered = rot_vtx_proj_y - rot_mean_y;
1008 vtx_proj_x_signif = vtx_proj_x_centered / sigma_x;
1009 vtx_proj_y_signif = vtx_proj_y_centered / sigma_y;
1011 double significance = std::sqrt(vtx_proj_x_signif * vtx_proj_x_signif + vtx_proj_y_signif * vtx_proj_y_signif);
1014 std::cout <<
"[v0proj debug] significance:"
1015 <<
" sigma_x(combined)=" << sigma_x
1016 <<
" sigma_y(combined)=" << sigma_y
1017 <<
" vtx_proj_x_centered=" << vtx_proj_x_centered
1018 <<
" vtx_proj_y_centered=" << vtx_proj_y_centered
1019 <<
" vtx_proj_x_signif=" << vtx_proj_x_signif
1020 <<
" vtx_proj_y_signif=" << vtx_proj_y_signif
1021 <<
" significance=" << significance << std::endl;
1024 return significance;