You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce 'PFASimple', a fastHisto-like simplification of PFA (by using step functon PFA weights) that can be implemented with minimal changes to the existing FH code.
if (settings_->vx_algo() == Algorithm::PFASimple && settings_->vx_pfa_weightedz0() > 0) {
160
+
// Calculate weighted-average z0 for PFASimple
161
+
// Note the next few lines recompute the PFA width parameter (GaussianWidth) previously computed in PFASimple(). This could instead be saved as a track property.
162
+
float trackAbsEta = std::fabs(track->eta());
163
+
// Hard-coded eta-dependent and constant parametrisations of the PFA Gaussian width parameter taken from Giovanna's thesis: https://cds.cern.ch/record/2909504
// Gaussian- and pT-weighted sums for estimates of vertex z0 and z0square based on the points of highest cumulative density of the contributions from each track at a given z0 position
// Estimates of vertex z0 and z0square based on optimal combination (weighted by 1/variance) of the z0 of the tracks associated to the vertex, weighted also by pT and association probability
187
+
// Note, all tracks in the bin have association probability 1 based on the definiton of deltaZ above, so this method won't work well for large bin widths. In that case, the ErfcWeight should really be iteratively recalculated at the best estimate point of z0 (and not subtracting half the bin width in deltaZ), but this would require a second loop over tracks.
int nbins = std::ceil((settings_->vx_pfa_max() - settings_->vx_pfa_min()) / settings_->vx_pfa_binwidth());
779
+
for (int i = 0; i <= nbins; ++i) {
780
+
float z = settings_->vx_pfa_min() + i * settings_->vx_pfa_binwidth();
781
+
RecoVertex vertex;
782
+
vertex.setZ0(z);
783
+
for (const L1Track& track : fitTracks_) {
784
+
float trackAbsEta = std::fabs(track.eta());
785
+
// Hard-coded eta-dependent and constant parametrisations of the PFA Gaussian width parameter taken from Giovanna's thesis: https://cds.cern.ch/record/2909504
0 commit comments