Skip to content

Commit

Permalink
Delete also vertex_ in packBoth()
Browse files Browse the repository at this point in the history
Otherwise it will not be set to the unpacked values in unpackVtx().
  • Loading branch information
makortel committed Nov 24, 2015
1 parent cb4ade5 commit 9762c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/PatCandidates/interface/PackedCandidate.h
Expand Up @@ -595,7 +595,7 @@ namespace pat {
void packVtx(bool unpackAfterwards=true) ;
void unpackVtx() const ;
void maybeUnpackBoth() const { if (!p4c_) unpack(); if (!vertex_) unpackVtx(); }
void packBoth() { pack(false); packVtx(false); delete p4_.exchange(nullptr); delete p4c_.exchange(nullptr); unpack(); unpackVtx(); } // do it this way, so that we don't loose precision on the angles before computing dxy,dz
void packBoth() { pack(false); packVtx(false); delete p4_.exchange(nullptr); delete p4c_.exchange(nullptr); delete vertex_.exchange(nullptr); unpack(); unpackVtx(); } // do it this way, so that we don't loose precision on the angles before computing dxy,dz
void unpackTrk() const ;

int8_t packedPuppiweight_;
Expand Down

0 comments on commit 9762c63

Please sign in to comment.