41 #include "TestParameters.hh"
84 G4cout <<
" BinsCluster= " << binsCluster <<
" BinsE= " <<
fNbins
112 G4cout <<
" ====================================================" <<
G4endl;
113 G4cout <<
" Beam Particle: "
119 G4cout <<
" ================== run summary =====================" <<
G4endl;
121 G4cout <<
" End of Run TotNbofEvents = "
123 G4cout <<
" Energy(keV) per ADC channel = "
127 G4cout <<
" Mean energy deposit in absorber = " <<
128 y1/
keV <<
" +- " << y2*std::sqrt(norm)/
keV <<
" keV; ";
129 if(y1 > 0.0) {
G4cout <<
" RMS/Emean = " << y2/
y1; }
131 G4cout <<
" Mean number of steps in absorber= "
132 <<
fTotStepGas <<
"; mean number of ion-clusters = "
137 G4cout <<
" ====== Energy deposit distribution Noverflows= " <<
fOverflow
141 std::ofstream fileOut(
"distribution.out", std::ios::out );
142 fileOut.setf( std::ios::scientific, std::ios::floatfield );
150 G4cout << std::setw(5) << j << std::setw(10) << x1/
keV
151 << std::setw(12) <<
fEgas[j] << std::setw(12) <<
fEgas[j]*norm
161 analysisManager->ScaleH1(1,norm);
162 analysisManager->ScaleH1(2,norm);
163 analysisManager->ScaleH1(3,norm*normf);
165 G4cout <<
" ================== run end ==========================" <<
G4endl;
193 if(idx < 0) {
fEgas[0] += 1.0; }
195 else {
fEgas[idx] += 1.0; }
200 analysisManager->FillH1(2,
fCluster,1.0);
209 const Run* localRun =
static_cast<const Run*
>(run);
233 G4cout <<
"Run::AddEnergy: e(keV)= " << edep/
keV
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double GetMaxEnergy() const
const G4ParticleDefinition * GetBeamParticle() const
G4double GetBeamEnergy() const
static constexpr double MeV
void AddEnergy(G4double edep)
Float_t y1[n_points_granero]
static constexpr double keV
static constexpr double mm
Float_t x1[n_points_granero]
const G4String & GetParticleName() const
G4int SampleNumberOfIonsAlongStep(const G4Step *)
G4double GetEnergySmear() const
G4int GetNumberBinsCluster() const
Float_t y2[n_points_geant4]
G4int GetNumberOfEvent() const
G4ElectronIonPair * ElectronIonPair()
G4ElectronIonPair * fElIonPair
G4double GetPositionZ() const
G4double GetNormFactor() const
G4Track * GetTrack() const
virtual void Merge(const G4Run *)
G4CsvAnalysisManager G4AnalysisManager
ThreeVector shoot(const G4int Ap, const G4int Af)
G4int GetNumberBins() const
const G4StatDouble * GetStat() const
G4GLOB_DLL std::ostream G4cout
static G4LossTableManager * Instance()
G4double GetFactorALICE() const
virtual void Merge(const G4Run *)
G4double MeanNumberOfIonsAlongStep(const G4ParticleDefinition *, const G4Material *, G4double edepTotal, G4double edepNIEL=0.0)
void SetVerbose(G4int val)