29 #include "SteppingAction.hh"
30 #include "Analysis.hh"
36 :fRun(run),fDetector(det)
82 fThetaIn = std::asin(angleIn[0]/std::sqrt(angleIn[0]
83 *angleIn[0]+angleIn[1]*angleIn[1]+angleIn[2]*angleIn[2]));
84 fPhiIn = std::asin(angleIn[1]/std::sqrt(angleIn[0]
85 *angleIn[0]+angleIn[1]*angleIn[1]+angleIn[2]*angleIn[2]));
88 <<
" Y(microns)="<< fYIn/
micrometer <<
" THETA(mrad)="
102 man->FillNtupleDColumn(3,0,fXIn/
um);
103 man->FillNtupleDColumn(3,1,fYIn/
um);
104 man->FillNtupleDColumn(3,2,fThetaIn/
mrad);
105 man->FillNtupleDColumn(3,3,fPhiIn/
mrad);
106 man->AddNtupleRow(3);
126 man->FillNtupleDColumn(1,0,fXIn/
um);
127 man->FillNtupleDColumn(1,1,fYIn/
um);
128 man->FillNtupleDColumn(1,2,fZIn/
um);
129 man->AddNtupleRow(1);
149 man->FillNtupleDColumn(2,0,fXIn/
um);
150 man->FillNtupleDColumn(2,1,fYIn/
um);
151 man->FillNtupleDColumn(2,2,fE/
MeV);
152 man->AddNtupleRow(2);
G4LogicalVolume * GetLogicalWorld()
void AddToXVector(float v)
static constexpr double mm
const G4DynamicParticle * GetDynamicParticle() const
static G4Proton * ProtonDefinition()
G4ParticleDefinition * GetDefinition() const
void UserSteppingAction(const G4Step *)
G4StepPoint * GetPreStepPoint() const
G4LogicalVolume * GetLogicalGrid()
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
static constexpr double um
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
static constexpr double mrad
G4LogicalVolume * GetLogicalVol()
void AddToPhiVector(float v)
const G4ThreeVector & GetMomentumDirection() const
G4LogicalVolume * GetLogicalVolume() const
void AddToThetaVector(float v)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4StepPoint * GetPostStepPoint() const
void AddToYVector(float v)
Detector construction class to define materials and geometry.
static constexpr double MeV
const G4String & GetName() const
G4Track * GetTrack() const
G4CsvAnalysisManager G4AnalysisManager
static constexpr double micrometer
const G4TouchableHandle & GetTouchableHandle() const