26 float trk_nhits_ = -1.;
27 float trk_high_quality_ = -1.;
28 float trk_chi2red_ = -1.;
30 float ktf_ecal_cluster_e_ = -1.;
31 float ktf_ecal_cluster_deta_ = -42.;
32 float ktf_ecal_cluster_dphi_ = -42.;
33 float ktf_ecal_cluster_e3x3_ = -1.;
34 float ktf_ecal_cluster_e5x5_ = -1.;
35 float ktf_ecal_cluster_covEtaEta_ = -42.;
36 float ktf_ecal_cluster_covEtaPhi_ = -42.;
37 float ktf_ecal_cluster_covPhiPhi_ = -42.;
38 float ktf_ecal_cluster_r9_ = -0.1;
39 float ktf_ecal_cluster_circularity_ = -0.1;
40 float ktf_hcal_cluster_e_ = -1.;
41 float ktf_hcal_cluster_deta_ = -42.;
42 float ktf_hcal_cluster_dphi_ = -42.;
43 float preid_gsf_dpt_ = -1.;
44 float preid_trk_gsf_chiratio_ = -1.;
45 float preid_gsf_chi2red_ = -1.;
46 float trk_dxy_sig_ = -1.;
50 if (trk.isNonnull()) {
52 trk_eta_ = trk->eta();
53 trk_phi_ = trk->phi();
55 trk_nhits_ =
static_cast<float>(trk->found());
57 trk_chi2red_ = trk->normalizedChi2();
58 if (trk->dxy(spot) > 0.) {
59 trk_dxy_sig_ = trk->dxyError() / trk->dxy(spot);
61 ktf_ecal_cluster_dphi_ *= trk->charge();
65 rho_ =
static_cast<float>(
rho);
69 if (ecal_clu.isNonnull()) {
70 ktf_ecal_cluster_e_ = ecal_clu->energy();
73 ktf_ecal_cluster_e3x3_ = tools.e3x3(*ecal_clu);
74 ktf_ecal_cluster_e5x5_ = tools.e5x5(*ecal_clu);
75 const auto& covs = tools.localCovariances(*ecal_clu);
76 ktf_ecal_cluster_covEtaEta_ = covs[0];
77 ktf_ecal_cluster_covEtaPhi_ = covs[1];
78 ktf_ecal_cluster_covPhiPhi_ = covs[2];
79 if (ktf_ecal_cluster_e_ > 0.) {
80 ktf_ecal_cluster_r9_ = ktf_ecal_cluster_e3x3_ / ktf_ecal_cluster_e_;
82 if (ktf_ecal_cluster_e5x5_ > 0.) {
83 ktf_ecal_cluster_circularity_ = 1. - tools.e1x5(*ecal_clu) / ktf_ecal_cluster_e5x5_;
85 ktf_ecal_cluster_circularity_ = -0.1;
91 if (hcal_clu.isNonnull()) {
92 ktf_hcal_cluster_e_ = hcal_clu->energy();
98 preid_gsf_dpt_ = ecal.
dpt();
99 preid_trk_gsf_chiratio_ = ecal.
chi2Ratio();
100 preid_gsf_chi2red_ = ecal.
gsfChi2();
103 std::vector<float>
output = {trk_pt_,
112 ktf_ecal_cluster_deta_,
113 ktf_ecal_cluster_dphi_,
114 ktf_ecal_cluster_e3x3_,
115 ktf_ecal_cluster_e5x5_,
116 ktf_ecal_cluster_covEtaEta_,
117 ktf_ecal_cluster_covEtaPhi_,
118 ktf_ecal_cluster_covPhiPhi_,
119 ktf_ecal_cluster_r9_,
120 ktf_ecal_cluster_circularity_,
122 ktf_hcal_cluster_deta_,
123 ktf_hcal_cluster_dphi_,
125 preid_trk_gsf_chiratio_,
reco::TrackRef trackRef() const
static TrackQuality qualityByName(const std::string &name)
PFClusterRef clusterRef() const
const std::vector< float > & geomMatching() const
Access methods.