35 #include "G4HCofThisEvent.hh"
60 fWriter =
new std::fstream(
"caustic.ssv",std::fstream::out|std::fstream::ate);
62 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor:"
63 <<
"\n\tFailed to open caustic.ssv for appending data."
64 <<
"\n\tCreating caustic.ssv" <<
G4endl;
68 fWriter2 =
new std::fstream(
"timing.ssv",std::fstream::out|std::fstream::ate);
70 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor: "
71 <<
"\n\tFailed to open timing.ssv for appending data."
72 <<
"\n\tCreating timing.ssv." <<
G4endl;
77 G4cerr <<
"XAluminumElectrodeSensitivity::Constructor: "
78 <<
"\nERROR: COULD NOT CREATE OUTPUT FILES FOR WRITING" <<
G4endl;
124 if(edp==0.)
return true;
G4int GetCollectionID(G4String colName)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
virtual ~XAluminumElectrodeSensitivity()
static constexpr double mm
static std::fstream * fWriter2
static std::fstream * fWriter
XAluminumElectrodeHitsCollection * GetHitsCollection()
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4String SensitiveDetectorName
XAluminumElectrodeHitsCollection * fHitsCollection
Definition of the XAluminumElectrodeSensitivity class.
#define G4MUTEX_INITIALIZER
const G4NavigationHistory * GetHistory() const
void insert(G4String str)
virtual G4VHit * GetHit(size_t i) const
const G4ThreeVector & GetPosition() const
const G4AffineTransform & GetTopTransform() const
Definition of the XAluminumElectrodeHit class.
static constexpr double eV
G4double GetGlobalTime() const
G4StepPoint * GetPostStepPoint() const
G4GLOB_DLL std::ostream G4cerr
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
static G4SDManager * GetSDMpointer()
virtual void Initialize(G4HCofThisEvent *)
G4THitsCollection< XAluminumElectrodeHit > XAluminumElectrodeHitsCollection
G4CollectionNameVector collectionName
virtual void EndOfEvent(G4HCofThisEvent *)
XAluminumElectrodeSensitivity(const G4String &)
G4double GetNonIonizingEnergyDeposit() const
void WriteHitInfo(const XAluminumElectrodeHit *aHit)
virtual size_t GetSize() const