00001 #ifndef LCDG4CalSDProj_h
00002 #define LCDG4CalSDProj_h 1
00003
00004 #include "LCDG4CalSD.hh"
00005 #include <map>
00006
00007
00008 #include "xercesc/dom/deprecated/DOM_Element.hpp"
00009
00010 class G4Step;
00011 class G4HCofThisEvent;
00012 class G4TouchableHistory;
00013
00014
00015
00016 class LCDG4CalSDProj : public LCDG4CalSD {
00017
00018 public:
00019
00020 LCDG4CalSDProj(G4String name,
00021 const XERCES_CPP_NAMESPACE::DOM_Element& voldb);
00022
00023 ~LCDG4CalSDProj();
00024
00025 public:
00026
00027
00028 unsigned int findCell(const G4ThreeVector& position);
00029
00030 G4ThreeVector getCellCenter(unsigned int cellIndex);
00031
00032 unsigned int getIndex1(unsigned int cellIndex) const;
00033 unsigned int getIndex2(unsigned int cellIndex) const;
00034 unsigned int getIndex3(unsigned int cellIndex) const;
00035
00036
00037
00038
00039
00040
00041
00042 private:
00043
00044 G4int _phiseg;
00045
00046 G4int _thetaseg;
00047 };
00048
00049 #endif // LCDG4CalSDProj_h