#include <Doxymodules_parameterisations.h>
◆ Par01CalorimeterSD()
Par01CalorimeterSD::Par01CalorimeterSD |
( |
G4String |
name, |
|
|
G4int |
nCells, |
|
|
G4String |
colName |
|
) |
| |
◆ ~Par01CalorimeterSD()
Par01CalorimeterSD::~Par01CalorimeterSD |
( |
| ) |
|
◆ Initialize()
Definition at line 65 of file Par01CalorimeterSD.cc.
66{
68 (SensitiveDetectorName,collectionName[0]);
70 {
72 }
73}
G4THitsCollection< Par01CalorimeterHit > Par01CalorimeterHitsCollection
Par01CalorimeterHitsCollection * fCalCollection
◆ ProcessHits()
Definition at line 77 of file Par01CalorimeterSD.cc.
78{
79 G4double edep = aStep->GetTotalEnergyDeposit();
80 if(edep<=0.) return false;
81
84 G4int copyID = hist->GetReplicaNumber();
85
87 {
92 aTrans.Invert();
93 calHit->
SetPos(aTrans.NetTranslation());
94 calHit->
SetRot(aTrans.NetRotation());
97 if(verboseLevel>0)
98 { G4cout << " New Calorimeter Hit on CellID " << copyID << G4endl; }
99 }
100 else
101 {
102 (*fCalCollection)[
fCellID[copyID]]->AddEdep( edep );
103 if(verboseLevel>0)
104 { G4cout << " Energy added to CellID " << copyID << G4endl; }
105 }
106
107 return true;
108}
void SetEdep(G4double de)
void SetRot(G4RotationMatrix rmat)
void SetPos(G4ThreeVector xyz)
◆ EndOfEvent()
Definition at line 112 of file Par01CalorimeterSD.cc.
113{
115 {
fHCID = G4SDManager::GetSDMpointer()->GetCollectionID(collectionName[0]); }
117}
◆ clear()
void Par01CalorimeterSD::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void Par01CalorimeterSD::DrawAll |
( |
| ) |
|
|
virtual |
◆ PrintAll()
void Par01CalorimeterSD::PrintAll |
( |
| ) |
|
|
virtual |
◆ fCalCollection
◆ fCellID
int* Par01CalorimeterSD::fCellID |
|
private |
◆ fNumberOfCells
int Par01CalorimeterSD::fNumberOfCells |
|
private |
◆ fHCID
int Par01CalorimeterSD::fHCID |
|
private |
The documentation for this class was generated from the following files: