Skip to content

Commit

Permalink
init npf
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-komm authored and matt-komm committed Nov 16, 2020
1 parent f430c29 commit c6fc6f5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions DataFormats/interface/NeutralCandidateFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ struct NeutralCandidateFeatures
float puppi_weight;
float relmassdrop;

NeutralCandidateFeatures():
jetIdx(-1),
ptrel(0),
deta(0),
dphi(0),
deltaR(0),

px(0),
py(0),
pz(0),

isGamma(0),
hcal_fraction(0),
drminsv(0),
puppi_weight(0),
relmassdrop(0)
{}

bool operator<(const NeutralCandidateFeatures& other) const
{
if (std::fabs(drminsv-other.drminsv)>std::numeric_limits<float>::epsilon())
Expand Down

0 comments on commit c6fc6f5

Please sign in to comment.