1 |
// $Id: Electron.cc,v 1.1 2008/06/05 16:03:35 bendavid Exp $
|
2 |
|
3 |
#include "MitAna/DataTree/interface/StableParticle.h"
|
4 |
|
5 |
ClassImp(mithep::StableParticle)
|
6 |
|
7 |
using namespace mithep;
|
8 |
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
Double_t StableParticle::Mass() 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 |
}
|