BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSSamplerHit.cc
1 /*
2 Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3 University of London 2001 - 2018.
4 
5 This file is part of BDSIM.
6 
7 BDSIM is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published
9 by the Free Software Foundation version 3 of the License.
10 
11 BDSIM is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #include "BDSSamplerHit.hh"
20 #include "G4ios.hh"
21 
22 G4Allocator<BDSSamplerHit> BDSSamplerHitAllocator;
23 
24 BDSSamplerHit::BDSSamplerHit(G4String aName,
25  G4int samplerID,
26  BDSParticle init,
27  BDSParticle prod,
28  BDSParticle last_scat,
29  BDSParticle local,
30  BDSParticle global,
31  G4double s,
32  G4double weight,
33  G4int PDGtype,
34  G4int nEvent,
35  G4int ParentID,
36  G4int TrackID,
37  G4int TurnsTaken,
38  G4String process,
39  G4int beamlineIndex):
40  itsName(aName),
41  itsSamplerID(samplerID),
42  itsInit(init),
43  itsProd(prod),
44  itsLastScat(last_scat),
45  itsLocal(local),
46  itsGlobal(global),
47  itsS(s),
48  itsWeight(weight),
49  itsPDGtype(PDGtype),
50  itsEventNo(nEvent),
51  itsParentID(ParentID),
52  itsTrackID(TrackID),
53  itsTurnsTaken(TurnsTaken),
54  itsProcess(process),
55  itsBeamlineIndex(beamlineIndex)
56 {;}
57 
58 BDSSamplerHit::~BDSSamplerHit()
59 {;}
a particle definition
Definition: BDSParticle.hh:36