36 #include "Analysis.hh"
83 if (edep==0.)
return false;
144 G4ThreeVector hitPos = (*fHitsCollection)[randHit]->GetPos();
172 randRad = std::sqrt( xRand*xRand+yRand*yRand+zRand*zRand );
174 while (randRad>radius);
177 randCenterPos(xRand+hitPos.
x(),yRand+hitPos.
y(),zRand+hitPos.
z());
196 (localPos.
x()-randCenterPos.x()) * (localPos.
x()-randCenterPos.x()) +
197 (localPos.
y()-randCenterPos.y()) * (localPos.
y()-randCenterPos.y()) +
198 (localPos.
z()-randCenterPos.z()) * (localPos.
z()-randCenterPos.z())
203 epsilon = epsilon + (*fHitsCollection)[i]->GetEdep() ;
233 analysisManager->FillNtupleDColumn(0, radius/
nm);
234 analysisManager->FillNtupleDColumn(2, nofHits);
235 analysisManager->FillNtupleDColumn(3, nbEdep);
236 analysisManager->FillNtupleDColumn(4, (epsilon/
eV)/(chord/
nm));
237 analysisManager->FillNtupleDColumn(5, (epsilon/mass)/
gray);
238 analysisManager->FillNtupleDColumn(6, Einc/
eV);
239 analysisManager->AddNtupleRow();
G4int GetCollectionID(G4String colName)
void SetPos(G4ThreeVector xyz)
virtual void Initialize(G4HCofThisEvent *hitCollection)
static constexpr double nm
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
static constexpr double gray
G4String SensitiveDetectorName
G4double GetVertexKineticEnergy() const
static constexpr double g
TrackerSD(const G4String &name, const G4String &hitsCollectionName)
void SetEdep(G4double de)
void insert(G4String str)
TrackerHitsCollection * fHitsCollection
const G4ThreeVector & GetPosition() const
G4THitsCollection< TrackerHit > TrackerHitsCollection
G4Track * GetTrack() const
G4double GetTotalEnergyDeposit() const
static constexpr double eV
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
virtual G4bool ProcessHits(G4Step *step, G4TouchableHistory *history)
double epsilon(double density, double temperature)
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
void SetTrackID(G4int track)
virtual void EndOfEvent(G4HCofThisEvent *hitCollection)
static constexpr double cm3
static constexpr double pi
void SetIncidentEnergy(G4double e)
G4int GetParentID() const
Definition of the TrackerSD class.