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

CalorimeterHit.h

Go to the documentation of this file.
00001 //
00002 //  CalorimeterHit.h
00003 //
00004 
00005 #ifndef CalorimeterHit_H
00006 #define CalorimeterHit_H
00007 
00008 
00009 #include <map>
00010 #include "MCParticleSIO.h"
00011 
00012 class CalorimeterHit
00013 {
00014  public:
00015   // typedefs
00016   typedef std::map<MCParticleSIO*, float> McEnergyMap;
00017 
00018   //attributes
00019  private:
00020   unsigned int _id;
00021   float _energy;
00022   std::map<MCParticleSIO*, float> _mcEnergies;
00023 
00024  public:
00025   //methods
00026   CalorimeterHit(unsigned int id);
00027 
00028   void addMcHit(MCParticleSIO* mcp, float energy);
00029 
00030   McEnergyMap getMcEnergyMap() const;
00031 
00032   unsigned int id() const;
00033 
00034   float energy() const;
00035 
00036 
00037 };
00038 
00039 #endif

Generated on Thu Oct 7 18:44:46 2004 for LCDG4 by doxygen 1.3.4