#include <XAluminumElectrodeSensitivity.hh>
XAluminumElectrodeSensitivity::XAluminumElectrodeSensitivity |
( |
const G4String & |
name | ) |
|
Definition at line 54 of file XAluminumElectrodeSensitivity.cc.
60 fWriter =
new std::fstream(
"caustic.ssv",std::fstream::out|std::fstream::ate);
61 if (!fWriter->is_open()) {
62 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor:"
63 <<
"\n\tFailed to open caustic.ssv for appending data."
64 <<
"\n\tCreating caustic.ssv" <<
G4endl;
65 fWriter->open(
"caustic.ssv");
68 fWriter2 =
new std::fstream(
"timing.ssv",std::fstream::out|std::fstream::ate);
69 if (!fWriter2->is_open()) {
70 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor: "
71 <<
"\n\tFailed to open timing.ssv for appending data."
72 <<
"\n\tCreating timing.ssv." <<
G4endl;
73 fWriter2->open(
"timing.ssv");
76 if (!(fWriter->is_open() && fWriter2->is_open())) {
77 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor: "
78 <<
"\nERROR: COULD NOT CREATE OUTPUT FILES FOR WRITING" <<
G4endl;
void insert(G4String str)
G4VSensitiveDetector(G4String name)
G4CollectionNameVector collectionName
G4GLOB_DLL std::ostream G4cerr
XAluminumElectrodeSensitivity::~XAluminumElectrodeSensitivity |
( |
| ) |
|
|
virtual |
Reimplemented from G4VSensitiveDetector.
Definition at line 147 of file XAluminumElectrodeSensitivity.cc.
148 if (!fHitsCollection || fHitsCollection->
GetSize()==0)
return;
150 for (
size_t i=0; i<fHitsCollection->
GetSize(); i++) {
virtual G4VHit * GetHit(size_t i) const
void WriteHitInfo(const XAluminumElectrodeHit *aHit)
virtual size_t GetSize() const
Reimplemented from G4VSensitiveDetector.
Definition at line 107 of file XAluminumElectrodeSensitivity.cc.
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4THitsCollection< XAluminumElectrodeHit > XAluminumElectrodeHitsCollection
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
Implements G4VSensitiveDetector.
Definition at line 119 of file XAluminumElectrodeSensitivity.cc.
124 if(edp==0.)
return true;
140 fHitsCollection->
insert(aHit);
G4double GetNonIonizingEnergyDeposit() const
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
G4double GetGlobalTime() const
const G4AffineTransform & GetTopTransform() const
const G4NavigationHistory * GetHistory() const
The documentation for this class was generated from the following files: