diff --git a/EvtGen/EvtGen.hh b/EvtGen/EvtGen.hh
index ec154e2..673bdd1 100644
--- a/EvtGen/EvtGen.hh
+++ b/EvtGen/EvtGen.hh
@@ -1,72 +1,73 @@
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see . *
***********************************************************************/
#ifndef EVTGEN_HH
#define EVTGEN_HH
#include "EvtGenBase/EvtPDL.hh"
#include
#include
class EvtParticle;
class EvtRandomEngine;
class EvtVector4R;
class EvtStdHep;
class EvtSpinDensity;
class EvtAbsRadCorr;
class EvtDecayBase;
class EvtHepMCEvent;
class EvtGen {
public:
EvtGen( const std::string& decayName, const std::string& pdtTableName,
- EvtRandomEngine* randomEngine = 0, EvtAbsRadCorr* isrEngine = 0,
- const std::list* extraModels = 0, int mixingType = 1,
- bool useXml = false );
+ EvtRandomEngine* randomEngine = nullptr,
+ EvtAbsRadCorr* isrEngine = nullptr,
+ const std::list* extraModels = nullptr,
+ int mixingType = 1, bool useXml = false );
EvtGen( const std::string& decayName, std::istream& pdtTableData,
- EvtRandomEngine* randomEngine = 0, EvtAbsRadCorr* isrEngine = 0,
- const std::list* extraModels = 0, int mixingType = 1,
- bool useXml = false );
+ EvtRandomEngine* randomEngine = nullptr,
+ EvtAbsRadCorr* isrEngine = nullptr,
+ const std::list* extraModels = nullptr,
+ int mixingType = 1, bool useXml = false );
~EvtGen();
void readUDecay( const std::string& udecay_name, bool useXml = false );
EvtHepMCEvent* generateDecay( int PDGid, EvtVector4R refFrameP4,
EvtVector4R translation,
- EvtSpinDensity* spinDensity = 0 );
+ EvtSpinDensity* spinDensity = nullptr );
void generateDecay( EvtParticle* p );
private:
-
void initialize( const std::string& decayName, std::istream& pdtTable,
- EvtRandomEngine* randomEngine = 0,
- EvtAbsRadCorr* isrEngine = 0,
- const std::list* extraModels = 0,
+ EvtRandomEngine* randomEngine = nullptr,
+ EvtAbsRadCorr* isrEngine = nullptr,
+ const std::list* extraModels = nullptr,
int mixingType = 1, bool useXml = false );
EvtPDL _pdl;
int _mixingType;
};
#endif
diff --git a/EvtGenBase/EvtModel.hh b/EvtGenBase/EvtModel.hh
index 4551562..36d79fa 100644
--- a/EvtGenBase/EvtModel.hh
+++ b/EvtGenBase/EvtModel.hh
@@ -1,63 +1,63 @@
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see . *
***********************************************************************/
#ifndef EVTMODEL_HH
#define EVTMODEL_HH
#include "EvtGenBase/EvtDecayBase.hh"
#include "EvtGenBase/EvtStringHash.hh"
#include