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;
G4String SensitiveDetectorName
static constexpr double mm
G4int GetCollectionID(G4String colName)
CLHEP::Hep3Vector G4ThreeVector
XAluminumElectrodeSensitivity(const G4String &)
G4double GetNonIonizingEnergyDeposit() const
XAluminumElectrodeHitsCollection * fHitsCollection
const char * name(G4int ptype)
const G4VTouchable * GetTouchable() const
static std::fstream * fWriter2
#define G4MUTEX_INITIALIZER
G4StepPoint * GetPreStepPoint() const
void insert(G4String str)
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
const G4ThreeVector & GetPosition() const
virtual G4VHit * GetHit(size_t i) const
void WriteHitInfo(const XAluminumElectrodeHit *aHit)
XAluminumElectrodeHitsCollection * GetHitsCollection()
static constexpr double eV
G4THitsCollection< XAluminumElectrodeHit > XAluminumElectrodeHitsCollection
Definition of the XAluminumElectrodeHit class.
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
Definition of the XAluminumElectrodeSensitivity class.
static std::fstream * fWriter
G4StepPoint * GetPostStepPoint() const
static G4SDManager * GetSDMpointer()
virtual void Initialize(G4HCofThisEvent *)
G4double GetGlobalTime() const
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
const G4NavigationHistory * GetHistory() const
virtual void EndOfEvent(G4HCofThisEvent *)
virtual ~XAluminumElectrodeSensitivity()
virtual size_t GetSize() const
G4GLOB_DLL std::ostream G4cerr