]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TUHKMgen/UHKM/DecayChannel.cxx
Fixing some warnings
[u/mrichter/AliRoot.git] / TUHKMgen / UHKM / DecayChannel.cxx
index da9fb135ce11321b2dc5f15249e390f656a8f0c0..ca5a39275e89c4ec236136f833bb7deb54df0f08 100644 (file)
 using std::cout;
 using std::endl;
 
-DecayChannel::DecayChannel() {
-  fMotherPDG = kNonsensePDG;
-  fBranchingRatio = 0.0;
-  fNDaughters = 0;
+DecayChannel::DecayChannel() :
+  fMotherPDG(kNonsensePDG),
+  fBranchingRatio(0.0),
+  fNDaughters(0)
+{
   for(Int_t i=0; i<kMaxDaughters; i++)
     fDaughtersPDG[i] = kNonsensePDG;
 }
 
-DecayChannel::DecayChannel(const DecayChannel &copy) {
-  fMotherPDG = copy.fMotherPDG;
-  fBranchingRatio = copy.fBranchingRatio;
-  fNDaughters = copy.fNDaughters;
+DecayChannel::DecayChannel(const DecayChannel &copy):
+  fMotherPDG(copy.fMotherPDG),
+  fBranchingRatio(copy.fBranchingRatio),
+  fNDaughters(copy.fNDaughters)
+{
   for(Int_t i=0; i<fNDaughters; i++)
     fDaughtersPDG[i] = copy.fDaughtersPDG[i];
 }
 
-DecayChannel::DecayChannel(Int_t mother, Double_t branching, Int_t nDaughters, Int_t *daughters) {
-  fMotherPDG = mother;
-  fBranchingRatio = branching;
-  fNDaughters = 0;
+DecayChannel::DecayChannel(Int_t mother, Double_t branching, Int_t nDaughters, Int_t *daughters):
+  fMotherPDG(mother),
+  fBranchingRatio(branching),
+  fNDaughters(0)
+{
   for(Int_t i=0; i<nDaughters; i++) {
     if(i >= kMaxDaughters) {
       cout << "ERROR in DecayChannel explicit constructor: " << endl;