Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -29,17 +29,16 @@
|
||||
|
||||
#include "DriftChamberHit.hh"
|
||||
|
||||
#include "G4VVisManager.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4AttDef.hh"
|
||||
#include "G4AttDefStore.hh"
|
||||
#include "G4AttValue.hh"
|
||||
#include "G4Circle.hh"
|
||||
#include "G4Colour.hh"
|
||||
#include "G4AttDefStore.hh"
|
||||
#include "G4AttDef.hh"
|
||||
#include "G4AttValue.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VVisManager.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
|
||||
namespace B5
|
||||
{
|
||||
@@ -50,13 +49,11 @@ G4ThreadLocal G4Allocator<DriftChamberHit>* DriftChamberHitAllocator;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
DriftChamberHit::DriftChamberHit(G4int layerID)
|
||||
: fLayerID(layerID)
|
||||
{}
|
||||
DriftChamberHit::DriftChamberHit(G4int layerID) : fLayerID(layerID) {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4bool DriftChamberHit::operator==(const DriftChamberHit &/*right*/) const
|
||||
G4bool DriftChamberHit::operator==(const DriftChamberHit& /*right*/) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -66,7 +63,7 @@ G4bool DriftChamberHit::operator==(const DriftChamberHit &/*right*/) const
|
||||
void DriftChamberHit::Draw()
|
||||
{
|
||||
auto visManager = G4VVisManager::GetConcreteInstance();
|
||||
if (! visManager) return;
|
||||
if (!visManager) return;
|
||||
|
||||
G4Circle circle(fWorldPos);
|
||||
circle.SetScreenSize(2);
|
||||
@@ -78,23 +75,19 @@ void DriftChamberHit::Draw()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
const std::map<G4String,G4AttDef>* DriftChamberHit::GetAttDefs() const
|
||||
const std::map<G4String, G4AttDef>* DriftChamberHit::GetAttDefs() const
|
||||
{
|
||||
G4bool isNew;
|
||||
auto store = G4AttDefStore::GetInstance("DriftChamberHit",isNew);
|
||||
auto store = G4AttDefStore::GetInstance("DriftChamberHit", isNew);
|
||||
|
||||
if (isNew) {
|
||||
(*store)["HitType"]
|
||||
= G4AttDef("HitType","Hit Type","Physics","","G4String");
|
||||
(*store)["HitType"] = G4AttDef("HitType", "Hit Type", "Physics", "", "G4String");
|
||||
|
||||
(*store)["ID"]
|
||||
= G4AttDef("ID","ID","Physics","","G4int");
|
||||
(*store)["ID"] = G4AttDef("ID", "ID", "Physics", "", "G4int");
|
||||
|
||||
(*store)["Time"]
|
||||
= G4AttDef("Time","Time","Physics","G4BestUnit","G4double");
|
||||
(*store)["Time"] = G4AttDef("Time", "Time", "Physics", "G4BestUnit", "G4double");
|
||||
|
||||
(*store)["Pos"]
|
||||
= G4AttDef("Pos", "Position", "Physics","G4BestUnit","G4ThreeVector");
|
||||
(*store)["Pos"] = G4AttDef("Pos", "Position", "Physics", "G4BestUnit", "G4ThreeVector");
|
||||
}
|
||||
|
||||
return store;
|
||||
@@ -106,14 +99,10 @@ std::vector<G4AttValue>* DriftChamberHit::CreateAttValues() const
|
||||
{
|
||||
auto values = new std::vector<G4AttValue>;
|
||||
|
||||
values
|
||||
->push_back(G4AttValue("HitType","DriftChamberHit",""));
|
||||
values
|
||||
->push_back(G4AttValue("ID",G4UIcommand::ConvertToString(fLayerID),""));
|
||||
values
|
||||
->push_back(G4AttValue("Time",G4BestUnit(fTime,"Time"),""));
|
||||
values
|
||||
->push_back(G4AttValue("Pos",G4BestUnit(fWorldPos,"Length"),""));
|
||||
values->push_back(G4AttValue("HitType", "DriftChamberHit", ""));
|
||||
values->push_back(G4AttValue("ID", G4UIcommand::ConvertToString(fLayerID), ""));
|
||||
values->push_back(G4AttValue("Time", G4BestUnit(fTime, "Time"), ""));
|
||||
values->push_back(G4AttValue("Pos", G4BestUnit(fWorldPos, "Length"), ""));
|
||||
|
||||
return values;
|
||||
}
|
||||
@@ -122,11 +111,10 @@ std::vector<G4AttValue>* DriftChamberHit::CreateAttValues() const
|
||||
|
||||
void DriftChamberHit::Print()
|
||||
{
|
||||
G4cout << " Layer[" << fLayerID << "] : time " << fTime/ns
|
||||
<< " (nsec) --- local (x,y) " << fLocalPos.x()
|
||||
<< ", " << fLocalPos.y() << G4endl;
|
||||
G4cout << " Layer[" << fLayerID << "] : time " << fTime / ns << " (nsec) --- local (x,y) "
|
||||
<< fLocalPos.x() << ", " << fLocalPos.y() << G4endl;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
}
|
||||
} // namespace B5
|
||||
|
||||
Reference in New Issue
Block a user