ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/StableParticle.cc
Revision: 1.1
Committed: Fri Jul 25 16:04:45 2008 UTC (16 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006b, Mit_006a, Mit_006, Mit_005, Mit_004, MITHEP_2_0_x
Log Message:
Renamed Lepton to ChargedParticle and added StableParticle class

File Contents

# User Rev Content
1 bendavid 1.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     }