#include <ExN04CalorimeterSD.hh>
Definition at line 41 of file ExN04CalorimeterSD.hh.
ExN04CalorimeterSD::ExN04CalorimeterSD |
( |
G4String |
name | ) |
|
Definition at line 45 of file ExN04CalorimeterSD.cc.
void insert(G4String str)
G4VSensitiveDetector(G4String name)
G4CollectionNameVector collectionName
ExN04CalorimeterSD::~ExN04CalorimeterSD |
( |
| ) |
|
ExN04CalorimeterSD::ExN04CalorimeterSD |
( |
G4String |
name | ) |
|
ExN04CalorimeterSD::~ExN04CalorimeterSD |
( |
| ) |
|
void ExN04CalorimeterSD::clear |
( |
| ) |
|
|
virtual |
void ExN04CalorimeterSD::DrawAll |
( |
void |
| ) |
|
|
virtual |
void ExN04CalorimeterSD::DrawAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VSensitiveDetector.
Definition at line 58 of file ExN04CalorimeterSD.cc.
63 for (
G4int j = 0; j < fnumberOfCellsInZ; j++) {
64 for(
G4int k = 0; k < fnumberOfCellsInPhi; k++) {
G4String SensitiveDetectorName
G4THitsCollection< ExN04CalorimeterHit > ExN04CalorimeterHitsCollection
G4CollectionNameVector collectionName
void ExN04CalorimeterSD::PrintAll |
( |
void |
| ) |
|
|
virtual |
void ExN04CalorimeterSD::PrintAll |
( |
| ) |
|
|
virtual |
Implements G4VSensitiveDetector.
Definition at line 73 of file ExN04CalorimeterSD.cc.
75 if ( !ROhist )
return false;
76 G4double edep = aStep-> GetTotalEnergyDeposit();
79 if ( edep == 0. )
return false;
84 G4int copyIDinZ = ROhist-> GetReplicaNumber();
85 G4int copyIDinPhi = ROhist-> GetReplicaNumber(1);
87 if ( fCellID[copyIDinZ][copyIDinPhi] == -1 ) {
90 copyIDinZ, copyIDinPhi);
91 calHit-> SetEdep(edep);
97 fCellID[copyIDinZ][copyIDinPhi] = icell - 1;
99 G4cout <<
" New Calorimeter Hit on CellID "
100 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl;
103 (*fCalCollection)[fCellID[copyIDinZ][copyIDinPhi]]-> AddEdep(edep);
105 G4cout <<
" Energy added to CellID "
106 << copyIDinZ <<
" " << copyIDinPhi <<
G4endl;
G4GLOB_DLL std::ostream G4cout
G4LogicalVolume * GetLogicalVolume() const
static constexpr double MeV
const G4AffineTransform & GetTopTransform() const
const G4NavigationHistory * GetHistory() const
The documentation for this class was generated from the following files: