Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -23,6 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: LXePMTSD.cc 73915 2013-09-17 07:32:26Z gcosmo $
//
/// \file optical/LXe/src/LXePMTSD.cc
/// \brief Implementation of the LXePMTSD class
//
@@ -57,6 +59,17 @@ LXePMTSD::~LXePMTSD() {}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void LXePMTSD::SetPmtPositions(const std::vector<G4ThreeVector>& positions)
{
for (G4int i=0; i<G4int(positions.size()); ++i) {
if(fPMTPositionsX)fPMTPositionsX->push_back(positions[i].x());
if(fPMTPositionsY)fPMTPositionsY->push_back(positions[i].y());
if(fPMTPositionsZ)fPMTPositionsZ->push_back(positions[i].z());
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void LXePMTSD::Initialize(G4HCofThisEvent* hitsCE){
fPMTHitCollection = new LXePMTHitsCollection
(SensitiveDetectorName,collectionName[0]);