Skip to content

Commit 5a6eb54

Browse files
authored
Update DecayFinder.h
fix cppcheck complaints
1 parent 0493669 commit 5a6eb54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generators/decayFinder/DecayFinder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class DecayFinder : public SubsysReco
7878
* for a pipi final state, basically inclusive decays are handled automatically. If you wish to study the f0
7979
* decay, add it to your decay descriptor and it will automatically be removed from the "skip list"
8080
*/
81-
void setDecayDescriptor(std::string decayDescriptor) { m_decayDescriptor = decayDescriptor; }
81+
void setDecayDescriptor(const std::string &decayDescriptor) { m_decayDescriptor = decayDescriptor; }
8282
/**
8383
* @param[in] trigger Set to true to allow further processing of events in which your decay appears, if your decay
8484
* does not appear, all further processing of this event is skipped. This defaults to false so every event
@@ -102,11 +102,11 @@ class DecayFinder : public SubsysReco
102102
* @param[in] name Change the default name of the DecayFinderContainer.
103103
* @note This name will still have "_DecayMap" added to the end, this cannot be changed
104104
*/
105-
void setNodeName(std::string name) { m_container_name = name; }
105+
void setNodeName(const std::string &name) { m_container_name = name; }
106106

107107
private:
108-
PHHepMCGenEventMap *m_geneventmap = NULL;
109-
PHHepMCGenEvent *m_genevt = NULL;
108+
PHHepMCGenEventMap *m_geneventmap = nullptr;
109+
PHHepMCGenEvent *m_genevt = nullptr;
110110

111111
int m_counter = 0;
112112
int m_nCandFail_pT = 0;

0 commit comments

Comments
 (0)