1 |
// $Id: DecayParticle.cc,v 1.2 2008/07/03 08:22:18 loizides Exp $
|
2 |
|
3 |
#include "MitAna/DataTree/interface/DecayParticle.h"
|
4 |
|
5 |
ClassImp(mithep::DecayParticle)
|
6 |
|
7 |
using namespace mithep;
|
8 |
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
Double_t DecayParticle::PdgMass() const
|
11 |
{
|
12 |
// Get Mass from Pdg Lookup
|
13 |
|
14 |
TParticlePDG* pdgEntry = ParticlePdgEntry();
|
15 |
if (pdgEntry)
|
16 |
return pdgEntry->Mass();
|
17 |
else {
|
18 |
return -99.0;
|
19 |
printf("Absolute Pdg Code %i not found in table, returning Mass=-99.0 GeV", fAbsPdgId);
|
20 |
}
|
21 |
}
|