Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -0,0 +1,92 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01HodoscopeHit.cc,v 1.3 2002/12/13 11:34:34 gunter Exp $
// --------------------------------------------------------------
//
#include "A01HodoscopeHit.hh"
#include "G4VVisManager.hh"
#include "G4Circle.hh"
#include "G4Colour.hh"
#include "G4VisAttributes.hh"
#include "G4ios.hh"
G4Allocator<A01HodoscopeHit> A01HodoscopeHitAllocator;
A01HodoscopeHit::A01HodoscopeHit(G4int i,G4double t)
{
id = i;
time = t;
pLogV = 0;
}
A01HodoscopeHit::~A01HodoscopeHit()
{;}
A01HodoscopeHit::A01HodoscopeHit(const A01HodoscopeHit &right)
{
id = right.id;
time = right.time;
pos = right.pos;
rot = right.rot;
pLogV = right.pLogV;
}
const A01HodoscopeHit& A01HodoscopeHit::operator=(const A01HodoscopeHit &right)
{
id = right.id;
time = right.time;
pos = right.pos;
rot = right.rot;
pLogV = right.pLogV;
return *this;
}
int A01HodoscopeHit::operator==(const A01HodoscopeHit &right) const
{
return 0;
}
void A01HodoscopeHit::Draw()
{
G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
if(pVVisManager)
{
G4Transform3D trans(rot.inverse(),pos);
G4VisAttributes attribs;
const G4VisAttributes* pVA = pLogV->GetVisAttributes();
if(pVA) attribs = *pVA;
G4Colour colour(0.,1.,1.);
attribs.SetColour(colour);
attribs.SetForceWireframe(false);
attribs.SetForceSolid(true);
pVVisManager->Draw(*pLogV,attribs,trans);
}
}
void A01HodoscopeHit::Print()
{
G4cout << " Hodoscope[" << id << "] " << time/ns << " (nsec)" << G4endl;
}