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

Go to the documentation of this file.
00001 #include "McTruth/EmcMcHit.h"
00002 
00003 Event::EmcMcHit::EmcMcHit(const Identifier& id, unsigned int trackIndex, double xPosition,
00004     double yPosition, double zPosition, double px, double py,
00005     double pz, double depositEnergy)
00006         : m_id(id), m_trackIndex(trackIndex),
00007         m_hitEmc(0),m_PDGCode(0),m_PDGCharge(0),m_time(0),
00008         m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
00009         m_px(px), m_py(py), m_pz(pz), m_depositEnergy(depositEnergy)
00010 {
00011   m_hitMap.clear();
00012 }
00013                                
00014 // Get associated id
00015 Identifier Event::EmcMcHit::identify() const {
00016   return  m_id;
00017 }
00018  
00019 // Get the associated track id 
00020 unsigned int Event::EmcMcHit::getTrackIndex() const {
00021   return m_trackIndex;
00022 }
00023 
00024 // Whether hit Emc
00025 int Event::EmcMcHit::getHitEmc() const {
00026   return m_hitEmc;
00027 }
00028 
00029 // Get PDG code
00030 int Event::EmcMcHit::getPDGCode() const {
00031   return m_PDGCode;
00032 }
00033 
00034 // Get PDG charge
00035 double Event::EmcMcHit::getPDGCharge() const {
00036   return m_PDGCharge;
00037 }
00038 
00039 // Get time
00040 double Event::EmcMcHit::getTime() const {
00041   return m_time;
00042 }
00043 
00044 // Get the position x 
00045 double Event::EmcMcHit::getPositionX() const {
00046   return m_xPosition;
00047 }
00048 
00049 // Get the position y 
00050 double Event::EmcMcHit::getPositionY() const {
00051   return m_yPosition;
00052 }
00053 
00054 // Get the position z 
00055 double Event::EmcMcHit::getPositionZ() const {
00056   return m_zPosition;
00057 }
00058   
00059 // Get momentum Px 
00060 double Event::EmcMcHit::getPx() const {
00061   return m_px;
00062 }
00063 
00064 // Get momentum Py  
00065 double Event::EmcMcHit::getPy() const {
00066   return m_py; 
00067 }
00068 
00069 // Get momentum Pz  
00070 double Event::EmcMcHit::getPz() const {
00071   return m_pz; 
00072 }
00073   
00074 // Get the total deposited energy 
00075 double Event::EmcMcHit::getDepositEnergy() const {
00076    return m_depositEnergy;
00077 }
00078 
00079 std::map<Identifier,double>::const_iterator Event::EmcMcHit::begin() const {
00080   return m_hitMap.begin();
00081 }
00082 
00083 std::map<Identifier,double>::const_iterator Event::EmcMcHit::end() const {
00084   return m_hitMap.end();
00085 }
00086 
00087 std::map<Identifier,double>::const_iterator Event::EmcMcHit::find(Identifier& id) const {
00088   return m_hitMap.find(id);
00089 }
00090 
00091 unsigned int Event::EmcMcHit::size() const {
00092   return m_hitMap.size();
00093 }
00094 
00095 std::map<Identifier,double> Event::EmcMcHit::getHitMap() const {
00096   return m_hitMap;
00097 }

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