Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

MuonHit Class Reference

#include <MuonHit.h>

Collaboration diagram for MuonHit:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< MCParticleSIO *,
float > 
McEnergyMap

Public Member Functions

 MuonHit (unsigned int id, unsigned int stripID)
void addMcHit (MCParticleSIO *mcp, float energy)
McEnergyMap getMcEnergyMap () const
std::vector< MCParticleSIO * > getStripParticles () const
unsigned int id () const
unsigned int stripID () const
float energy () const

Private Attributes

unsigned int _id
float _energy
std::map< MCParticleSIO *,
float > 
_mcEnergies
std::vector< MCParticleSIO * > _mcStripParticles
unsigned int _stripID

Member Typedef Documentation

typedef std::map<MCParticleSIO*, float> MuonHit::McEnergyMap
 

Definition at line 15 of file MuonHit.h.

Referenced by getMcEnergyMap(), and MuonSIO::xfer().


Constructor & Destructor Documentation

MuonHit::MuonHit unsigned int  id,
unsigned int  stripID
 

Definition at line 7 of file MuonHit.cc.

References _energy.

00007                                                       : _id(id),_stripID(stripID)
00008 {
00009   _energy = 0.f;
00010 }


Member Function Documentation

void MuonHit::addMcHit MCParticleSIO mcp,
float  energy
 

Definition at line 12 of file MuonHit.cc.

References _energy, and _mcEnergies.

Referenced by LCDG4EventAction::EndOfEventAction().

00013 {
00014   _mcEnergies[mcp] += energy;
00015   _energy += energy;
00016 }

float MuonHit::energy  )  const
 

Definition at line 38 of file MuonHit.cc.

References _energy.

Referenced by MuonSIO::xfer().

00039 {
00040   return _energy;
00041 }

MuonHit::McEnergyMap MuonHit::getMcEnergyMap  )  const
 

Definition at line 18 of file MuonHit.cc.

References _mcEnergies, and McEnergyMap.

Referenced by MuonSIO::xfer().

00019 {
00020   return _mcEnergies;
00021 }

std::vector< MCParticleSIO * > MuonHit::getStripParticles  )  const
 

Definition at line 23 of file MuonHit.cc.

References _mcStripParticles.

00024 {
00025   return _mcStripParticles;
00026 }

unsigned int MuonHit::id  )  const
 

Definition at line 28 of file MuonHit.cc.

References _id.

Referenced by MuonSIO::xfer().

00029 {
00030   return _id;
00031 }

unsigned int MuonHit::stripID  )  const
 

Definition at line 33 of file MuonHit.cc.

References _stripID.

00034 {
00035   return _stripID;
00036 }


Member Data Documentation

float MuonHit::_energy [private]
 

Definition at line 20 of file MuonHit.h.

Referenced by addMcHit(), energy(), and MuonHit().

unsigned int MuonHit::_id [private]
 

Definition at line 19 of file MuonHit.h.

Referenced by id().

std::map<MCParticleSIO*, float> MuonHit::_mcEnergies [private]
 

Definition at line 21 of file MuonHit.h.

Referenced by addMcHit(), and getMcEnergyMap().

std::vector<MCParticleSIO*> MuonHit::_mcStripParticles [private]
 

Definition at line 22 of file MuonHit.h.

Referenced by getStripParticles().

unsigned int MuonHit::_stripID [private]
 

Definition at line 23 of file MuonHit.h.

Referenced by stripID().


The documentation for this class was generated from the following files:
Generated on Thu Oct 7 18:45:09 2004 for LCDG4 by doxygen 1.3.4