Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BesEmcTruthHit Class Reference

#include <BesEmcHit.hh>

List of all members.

Public Member Functions

void AddEHit (Identifier, G4double)
void AddEHit (Identifier, G4double)
std::map< Identifier, G4double
>::const_iterator 
Begin () const
std::map< Identifier, G4double
>::const_iterator 
Begin () const
 BesEmcTruthHit (const BesEmcTruthHit &)
 BesEmcTruthHit ()
 BesEmcTruthHit (const BesEmcTruthHit &)
 BesEmcTruthHit ()
std::map< Identifier, G4double
>::const_iterator 
End () const
std::map< Identifier, G4double
>::const_iterator 
End () const
std::map< Identifier, G4double
>::const_iterator 
Find (Identifier) const
std::map< Identifier, G4double
>::const_iterator 
Find (Identifier) const
G4double GetEDep () const
G4double GetEDep () const
G4double GetEHit (Identifier)
G4double GetEHit (Identifier)
G4int GetG4TrackId () const
G4int GetG4TrackId () const
G4int GetHitEmc () const
G4int GetHitEmc () const
Identifier GetIdentify () const
Identifier GetIdentify () const
G4ThreeVector GetMomentum () const
G4ThreeVector GetMomentum () const
G4String GetParticleName () const
G4String GetParticleName () const
G4double GetPDGCharge () const
G4double GetPDGCharge () const
G4int GetPDGCode () const
G4int GetPDGCode () const
G4ThreeVector GetPosition () const
G4ThreeVector GetPosition () const
G4double GetTime () const
G4double GetTime () const
G4int GetTrackIndex () const
G4int GetTrackIndex () const
void Insert (Identifier, G4double)
void Insert (Identifier, G4double)
void operator delete (void *)
void operator delete (void *)
void * operator new (size_t)
void * operator new (size_t)
const BesEmcTruthHitoperator= (const BesEmcTruthHit &)
const BesEmcTruthHitoperator= (const BesEmcTruthHit &)
G4int operator== (const BesEmcTruthHit &) const
G4int operator== (const BesEmcTruthHit &) const
void Print ()
void Print ()
void SetEDep (G4double de)
void SetEDep (G4double de)
void SetG4TrackId (G4int trackId)
void SetG4TrackId (G4int trackId)
void SetHitEmc (G4int is)
void SetHitEmc (G4int is)
void SetIdentify (Identifier id)
void SetIdentify (Identifier id)
void SetMomentum (G4ThreeVector p)
void SetMomentum (G4ThreeVector p)
void SetParticleName (G4String name)
void SetParticleName (G4String name)
void SetPDGCharge (G4double charge)
void SetPDGCharge (G4double charge)
void SetPDGCode (G4int code)
void SetPDGCode (G4int code)
void SetPosition (G4ThreeVector pos)
void SetPosition (G4ThreeVector pos)
void SetTime (G4double time)
void SetTime (G4double time)
void SetTrackIndex (G4int index)
void SetTrackIndex (G4int index)
G4int Size () const
G4int Size () const
virtual ~BesEmcTruthHit ()
virtual ~BesEmcTruthHit ()

Private Attributes

G4double m_edep
G4int m_g4TrackId
G4int m_hitEmc
std::map< Identifier, G4double > m_hitMap
std::map< Identifier, G4double > m_hitMap
Identifier m_identify
G4ThreeVector m_momentum
G4String m_particleName
G4double m_PDGCharge
G4int m_PDGCode
G4ThreeVector m_position
G4double m_time
G4int m_trackIndex


Constructor & Destructor Documentation

BesEmcTruthHit::BesEmcTruthHit  ) 
 

00114 {
00115   m_trackIndex = -1;
00116   m_g4TrackId = -1;
00117   m_hitEmc = -1;
00118   m_PDGCode = 0;
00119   m_PDGCharge = 0;
00120   m_particleName = G4String();
00121   m_edep = 0;
00122   m_time = 0;
00123   m_momentum = G4ThreeVector(0,0,0);
00124   m_position = G4ThreeVector(0,0,0);
00125   m_hitMap.clear();
00126 }

BesEmcTruthHit::~BesEmcTruthHit  )  [virtual]
 

00129 {}

BesEmcTruthHit::BesEmcTruthHit const BesEmcTruthHit  ) 
 

00132   : G4VHit()
00133 {
00134   *this = right;
00135 }

BesEmcTruthHit::BesEmcTruthHit  ) 
 

virtual BesEmcTruthHit::~BesEmcTruthHit  )  [virtual]
 

BesEmcTruthHit::BesEmcTruthHit const BesEmcTruthHit  ) 
 


Member Function Documentation

void BesEmcTruthHit::AddEHit Identifier  ,
G4double 
 

void BesEmcTruthHit::AddEHit Identifier  ,
G4double 
 

00198 {
00199   if(energy>0) m_hitMap[id]+=energy;
00200 }

std::map<Identifier,G4double>::const_iterator BesEmcTruthHit::Begin  )  const
 

std::map< Identifier, G4double >::const_iterator BesEmcTruthHit::Begin  )  const
 

00178 {
00179   return m_hitMap.begin();
00180 }

std::map<Identifier,G4double>::const_iterator BesEmcTruthHit::End  )  const
 

std::map< Identifier, G4double >::const_iterator BesEmcTruthHit::End  )  const
 

00183 {
00184   return m_hitMap.end();
00185 }

std::map<Identifier,G4double>::const_iterator BesEmcTruthHit::Find Identifier   )  const
 

std::map< Identifier, G4double >::const_iterator BesEmcTruthHit::Find Identifier   )  const
 

00188 {
00189   return m_hitMap.find(id);
00190 }

G4double BesEmcTruthHit::GetEDep  )  const [inline]
 

00142 { return m_edep; }

G4double BesEmcTruthHit::GetEDep  )  const [inline]
 

00142 { return m_edep; }

G4double BesEmcTruthHit::GetEHit Identifier   ) 
 

G4double BesEmcTruthHit::GetEHit Identifier   ) 
 

00193 {
00194   return m_hitMap[id];
00195 }

G4int BesEmcTruthHit::GetG4TrackId  )  const [inline]
 

00137 { return m_g4TrackId; }

G4int BesEmcTruthHit::GetG4TrackId  )  const [inline]
 

00137 { return m_g4TrackId; }

G4int BesEmcTruthHit::GetHitEmc  )  const [inline]
 

00138 { return m_hitEmc; }

G4int BesEmcTruthHit::GetHitEmc  )  const [inline]
 

00138 { return m_hitEmc; }

Identifier BesEmcTruthHit::GetIdentify  )  const [inline]
 

00135 { return m_identify; }

Identifier BesEmcTruthHit::GetIdentify  )  const [inline]
 

00135 { return m_identify; }

G4ThreeVector BesEmcTruthHit::GetMomentum  )  const [inline]
 

00144 { return m_momentum; }

G4ThreeVector BesEmcTruthHit::GetMomentum  )  const [inline]
 

00144 { return m_momentum; }

G4String BesEmcTruthHit::GetParticleName  )  const [inline]
 

00141 {return m_particleName;}

G4String BesEmcTruthHit::GetParticleName  )  const [inline]
 

00141 {return m_particleName;}

G4double BesEmcTruthHit::GetPDGCharge  )  const [inline]
 

00140 {return m_PDGCharge;}

G4double BesEmcTruthHit::GetPDGCharge  )  const [inline]
 

00140 {return m_PDGCharge;}

G4int BesEmcTruthHit::GetPDGCode  )  const [inline]
 

00139 {return m_PDGCode;}

G4int BesEmcTruthHit::GetPDGCode  )  const [inline]
 

00139 {return m_PDGCode;}

G4ThreeVector BesEmcTruthHit::GetPosition  )  const [inline]
 

00145 { return m_position; }

G4ThreeVector BesEmcTruthHit::GetPosition  )  const [inline]
 

00145 { return m_position; }

G4double BesEmcTruthHit::GetTime  )  const [inline]
 

00143 { return m_time; }

G4double BesEmcTruthHit::GetTime  )  const [inline]
 

00143 { return m_time; }

G4int BesEmcTruthHit::GetTrackIndex  )  const [inline]
 

00136 { return m_trackIndex; }

G4int BesEmcTruthHit::GetTrackIndex  )  const [inline]
 

00136 { return m_trackIndex; }

void BesEmcTruthHit::Insert Identifier  ,
G4double 
 

void BesEmcTruthHit::Insert Identifier  ,
G4double 
 

00203 {
00204   if(energy>0) m_hitMap[id]=energy;
00205 }

void BesEmcTruthHit::operator delete void *   )  [inline]
 

void BesEmcTruthHit::operator delete void *   )  [inline]
 

00195 {
00196   BesEmcTruthHitAllocator.FreeSingle((BesEmcTruthHit*) aHit);
00197 }

void* BesEmcTruthHit::operator new size_t   )  [inline]
 

void * BesEmcTruthHit::operator new size_t   )  [inline]
 

00188 {
00189   void* aHit;
00190   aHit = (void*) BesEmcTruthHitAllocator.MallocSingle();
00191   return aHit;
00192 }

const BesEmcTruthHit& BesEmcTruthHit::operator= const BesEmcTruthHit  ) 
 

const BesEmcTruthHit & BesEmcTruthHit::operator= const BesEmcTruthHit  ) 
 

00138 {
00139   m_hitMap.clear();
00140   std::map<Identifier,G4double>::const_iterator iHitMap;
00141   if(this!=&right) {
00142     for(iHitMap=right.Begin();
00143         iHitMap!=right.End();
00144         iHitMap++) {
00145       Insert(iHitMap->first,iHitMap->second);
00146     }
00147     
00148     m_identify = right.m_identify;
00149     m_trackIndex = right.m_trackIndex;
00150     m_g4TrackId = right.m_g4TrackId;
00151     m_hitEmc = right.m_hitEmc;
00152     m_PDGCode = right.m_PDGCode;
00153     m_PDGCharge = right.m_PDGCharge;
00154     m_particleName = right.m_particleName;
00155     m_edep = right.m_edep;
00156     m_time = right.m_time;
00157     m_momentum = right.m_momentum;
00158     m_position = right.m_position;
00159   }
00160   
00161   return *this;
00162 }

G4int BesEmcTruthHit::operator== const BesEmcTruthHit  )  const
 

G4int BesEmcTruthHit::operator== const BesEmcTruthHit  )  const
 

void BesEmcTruthHit::Print  ) 
 

void BesEmcTruthHit::Print  ) 
 

00165 {
00166   G4cout<<"Id: "<<m_identify<<"\tTrack Index: "<<m_trackIndex<<"\tG4 Track Id: "<<m_g4TrackId
00167     <<"\tHit Emc: "<<m_hitEmc<<"\tTotal Energy: "<<m_edep
00168     <<"\nPDGCode: "<<m_PDGCode<<"\tCharge: "<<m_PDGCharge<<"\tParticle Name: "<<m_particleName
00169     <<"\nGloble Time: "<<m_time<<"\tMomentum: "<<m_momentum.mag()<<"\tPosition: "<<m_position<<G4endl;
00170 
00171   std::map<Identifier,G4double>::iterator iHitMap;
00172   for(iHitMap=m_hitMap.begin();iHitMap!=m_hitMap.end();iHitMap++) {
00173     G4cout<<iHitMap->first<<"\t"<<iHitMap->second<<G4endl;
00174   }
00175 }

void BesEmcTruthHit::SetEDep G4double  de  )  [inline]
 

00130 { m_edep=de; }

void BesEmcTruthHit::SetEDep G4double  de  )  [inline]
 

00130 { m_edep=de; }

void BesEmcTruthHit::SetG4TrackId G4int  trackId  )  [inline]
 

00125 { m_g4TrackId=trackId; }

void BesEmcTruthHit::SetG4TrackId G4int  trackId  )  [inline]
 

00125 { m_g4TrackId=trackId; }

void BesEmcTruthHit::SetHitEmc G4int  is  )  [inline]
 

00126 { m_hitEmc=is; }

void BesEmcTruthHit::SetHitEmc G4int  is  )  [inline]
 

00126 { m_hitEmc=is; }

void BesEmcTruthHit::SetIdentify Identifier  id  )  [inline]
 

00123 { m_identify=id; }

void BesEmcTruthHit::SetIdentify Identifier  id  )  [inline]
 

00123 { m_identify=id; }

void BesEmcTruthHit::SetMomentum G4ThreeVector  p  )  [inline]
 

00132 { m_momentum=p; }

void BesEmcTruthHit::SetMomentum G4ThreeVector  p  )  [inline]
 

00132 { m_momentum=p; }

void BesEmcTruthHit::SetParticleName G4String  name  )  [inline]
 

00129 {m_particleName=name;}

void BesEmcTruthHit::SetParticleName G4String  name  )  [inline]
 

00129 {m_particleName=name;}

void BesEmcTruthHit::SetPDGCharge G4double  charge  )  [inline]
 

00128 {m_PDGCharge = charge;}

void BesEmcTruthHit::SetPDGCharge G4double  charge  )  [inline]
 

00128 {m_PDGCharge = charge;}

void BesEmcTruthHit::SetPDGCode G4int  code  )  [inline]
 

00127 {m_PDGCode=code;}

void BesEmcTruthHit::SetPDGCode G4int  code  )  [inline]
 

00127 {m_PDGCode=code;}

void BesEmcTruthHit::SetPosition G4ThreeVector  pos  )  [inline]
 

00133 { m_position=pos; }

void BesEmcTruthHit::SetPosition G4ThreeVector  pos  )  [inline]
 

00133 { m_position=pos; }

void BesEmcTruthHit::SetTime G4double  time  )  [inline]
 

00131 { m_time=time; }

void BesEmcTruthHit::SetTime G4double  time  )  [inline]
 

00131 { m_time=time; }

void BesEmcTruthHit::SetTrackIndex G4int  index  )  [inline]
 

00124 { m_trackIndex=index; }

void BesEmcTruthHit::SetTrackIndex G4int  index  )  [inline]
 

00124 { m_trackIndex=index; }

G4int BesEmcTruthHit::Size  )  const
 

G4int BesEmcTruthHit::Size  )  const
 

00208 {
00209   return m_hitMap.size();
00210 }


Member Data Documentation

G4double BesEmcTruthHit::m_edep [private]
 

G4int BesEmcTruthHit::m_g4TrackId [private]
 

G4int BesEmcTruthHit::m_hitEmc [private]
 

std::map<Identifier,G4double> BesEmcTruthHit::m_hitMap [private]
 

std::map<Identifier,G4double> BesEmcTruthHit::m_hitMap [private]
 

Identifier BesEmcTruthHit::m_identify [private]
 

G4ThreeVector BesEmcTruthHit::m_momentum [private]
 

G4String BesEmcTruthHit::m_particleName [private]
 

G4double BesEmcTruthHit::m_PDGCharge [private]
 

G4int BesEmcTruthHit::m_PDGCode [private]
 

G4ThreeVector BesEmcTruthHit::m_position [private]
 

G4double BesEmcTruthHit::m_time [private]
 

G4int BesEmcTruthHit::m_trackIndex [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:52:23 2011 for BOSS6.5.5 by  doxygen 1.3.9.1