/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/McTruth/McTruth-00-02-19/src/MdcMcHit.cxx

Go to the documentation of this file.
00001 #include "McTruth/MdcMcHit.h"
00002 
00003 Event::MdcMcHit::MdcMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
00004            double yPosition, double zPosition, double driftDistance,
00005            double depositEnergy, int posFlag) : m_id(id), m_trackIndex(trackIndex),
00006            m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
00007            m_driftDistance(driftDistance), m_depositEnergy(depositEnergy), m_posFlag(posFlag)
00008 { }
00009 
00010 // Get associated id
00011 Identifier Event::MdcMcHit::identify() const {
00012   return  m_id;
00013 }
00014  
00015 // Get the associated track id 
00016 unsigned int Event::MdcMcHit::getTrackIndex() const {
00017   return m_trackIndex;
00018 }
00019 
00020 // Get the position x 
00021 double Event::MdcMcHit::getPositionX() const {
00022   return m_xPosition;
00023 }
00024 
00025 // Get the position y 
00026 double Event::MdcMcHit::getPositionY() const {
00027   return m_yPosition;
00028 }
00029 
00030 // Get the position z 
00031 double Event::MdcMcHit::getPositionZ() const {
00032   return m_zPosition;
00033 }
00034   
00035 // Get Drift Distance 
00036 double Event::MdcMcHit::getDriftDistance() const {
00037   return m_driftDistance;
00038 }
00039 
00040 // Get deposited energy 
00041 double Event::MdcMcHit::getDepositEnergy() const {
00042   return m_depositEnergy;
00043 }
00044 
00045 //Get the position flag
00046 int Event::MdcMcHit::getPositionFlag() const {
00047   return m_posFlag;
00048 }
00049 

Generated on Tue Nov 29 22:58:31 2016 for BOSS_7.0.2 by  doxygen 1.4.7