Skip to content

Commit

Permalink
Moved the constructor's default arguments to the object definition
Browse files Browse the repository at this point in the history
  • Loading branch information
forthommel committed Oct 22, 2016
1 parent cca0baa commit fdfccbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions PhysicsTools/Utilities/interface/LumiReWeighting.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ namespace edm {
public:
LumiReWeighting( std::string generatedFile,
std::string dataFile,
std::string GenHistName,
std::string DataHistName,
const edm::InputTag& PileupSumInfoInputTag);
std::string GenHistName = "pileup",
std::string DataHistName = "pileup",
const edm::InputTag& PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) );

LumiReWeighting( const std::vector< float >& MC_distr, const std::vector< float >& Lumi_distr, const edm::InputTag& PileupSumInfoInputTag);
LumiReWeighting( const std::vector< float >& MC_distr, const std::vector< float >& Lumi_distr, const edm::InputTag& PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) );

LumiReWeighting ( ) { } ;

Expand Down
8 changes: 4 additions & 4 deletions PhysicsTools/Utilities/src/LumiReWeighting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ using namespace edm;

LumiReWeighting::LumiReWeighting( std::string generatedFile,
std::string dataFile,
std::string GenHistName = "pileup",
std::string DataHistName = "pileup",
const edm::InputTag& PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) ) :
std::string GenHistName,
std::string DataHistName,
const edm::InputTag& PileupSumInfoInputTag ) :
generatedFileName_( generatedFile),
dataFileName_ ( dataFile ),
GenHistName_ ( GenHistName ),
Expand Down Expand Up @@ -83,7 +83,7 @@ LumiReWeighting::LumiReWeighting( std::string generatedFile,
OldLumiSection_ = -1;
}

LumiReWeighting::LumiReWeighting(const std::vector< float >& MC_distr,const std::vector< float >& Lumi_distr, const edm::InputTag& PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) ) :
LumiReWeighting::LumiReWeighting(const std::vector< float >& MC_distr,const std::vector< float >& Lumi_distr, const edm::InputTag& PileupSumInfoInputTag ) :
pileupSumInfoTag_ ( PileupSumInfoInputTag )
{
// no histograms for input: use vectors
Expand Down

0 comments on commit fdfccbf

Please sign in to comment.