CMS 3D CMS Logo

MCBaseParticle.cc

Go to the documentation of this file.
00001 #include "RecoBTag/MCTools/interface/MCBaseParticle.h"
00002 
00003 using namespace edm;
00004 using namespace std;
00005 using namespace HepMC;
00006 
00007 // is the event needed here?
00008 MCBaseParticle::MCBaseParticle( const HepMC::GenParticle* particle, const HepMC::GenEvent* event ):
00009   particleInfo_( particle->pdg_id() )
00010  {
00011   hepParticle = particle;
00012   hepEvent    = event;
00013   fourVector_ = math::XYZTLorentzVector( particle->momentum() );
00014 }
00015 
00016 MCBaseParticle::~MCBaseParticle() {
00017   //this->print();
00018 }
00019 
00020 
00021 void MCBaseParticle::print() const {
00022   cout << "--> MCBaseParticle:" << endl;
00023 //   cout << "--> LundCode                :" << particleInfo.LundCode() << endl;
00024 //   cout << "--> mass                    :" << mass                  << endl;
00025 //   cout << "--> eta                     :" << eta                   << endl;
00026 //   cout << "--> phi                     :" << phi                   << endl;
00027 //   cout << "--> pabs                    :" << pabs                  << endl;
00028 //   cout << "--> e                       :" << e                     << endl;
00029 //   cout << "--> px                      :" << FourVector.px()       << endl;
00030 //   cout << "--> py                      :" << FourVector.py()       << endl;
00031 //   cout << "--> pz                      :" << FourVector.pz()       << endl;
00032 }
00033   
00034 

Generated on Tue Jun 9 17:43:03 2009 for CMSSW by  doxygen 1.5.4