Skip to content

Commit

Permalink
change const to constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
emilbols committed Sep 8, 2021
1 parent 0516c52 commit c942712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ namespace reco {
}

struct TrackData {
static const int trackSelected = 0;
static const int trackUsedForVertexFit = 1;
static const int trackAssociatedToVertex = 2;
static constexpr int trackSelected = 0;
static constexpr int trackUsedForVertexFit = 1;
static constexpr int trackAssociatedToVertex = 2;
inline bool usedForVertexFit() const { return svStatus >= trackUsedForVertexFit; }
inline bool associatedToVertex() const { return svStatus >= trackAssociatedToVertex; }
inline bool associatedToVertex(unsigned int index) const {
Expand Down
5 changes: 2 additions & 3 deletions DataFormats/BTauReco/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
<class name="reco::JTATagInfoRefVector"/>
<class name="edm::Wrapper<reco::JTATagInfoCollection>"/>

<class name="reco::btag::TrackData" ClassVersion="14">
<version ClassVersion="14" checksum="427805128"/>
<version ClassVersion="13" checksum="3158345604"/>
<class name="reco::btag::TrackData" ClassVersion="13">
<version ClassVersion="13" checksum="427805128"/>
<version ClassVersion="12" checksum="889773348"/>
<version ClassVersion="11" checksum="427805128"/>
<version ClassVersion="10" checksum="3899080432"/>
Expand Down

0 comments on commit c942712

Please sign in to comment.