ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/advanced/ChargeExchangeMC/include/CexmcSetup.hh>
Classes | |
struct | CalorimeterGeometryData |
Public Types | |
enum | SpecialVolumeType { Monitor, VetoCounter, Calorimeter, Target } |
Private Member Functions | |
void | SetupSpecialVolumes (const G4GDMLParser &gdmlParser) |
void | ReadTransforms (const G4GDMLParser &gdmlParser) |
void | ReadCalorimeterGeometryData (const G4LogicalVolume *lVolume) |
void | ReadRightDetectors (void) |
Static Private Member Functions | |
static void | AssertAndAsignDetectorRole (CexmcDetectorRole &detectorRole, CexmcDetectorRole value) |
static void | RotateMatrix (const G4ThreeVector &pos, G4RotationMatrix &rm) |
Additional Inherited Members | |
Protected Member Functions inherited from G4VUserDetectorConstruction | |
void | SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false) |
void | SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD) |
Definition at line 59 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 59 of file CexmcSetup.hh
Definition at line 62 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 62 of file CexmcSetup.hh
|
explicit |
Definition at line 71 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 71 of file CexmcSetup.cc
|
staticprivate |
Definition at line 475 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 475 of file CexmcSetup.cc
References CexmcMultipleDetectorRoles, and CexmcNumberOfDetectorRoles.
Referenced by SetupSpecialVolumes().
|
virtual |
Implements G4VUserDetectorConstruction.
Definition at line 82 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 82 of file CexmcSetup.cc
References CexmcWeirdException, gdmlFile, G4RunManager::GetRunManager(), G4RunManager::GetUserPhysicsList(), G4GDMLParser::GetWorldVolume(), G4GDMLParser::Read(), ReadRightDetectors(), ReadTransforms(), CexmcPhysicsManager::SetupConstructionHook(), CexmcRunManager::SetupConstructionHook(), SetupSpecialVolumes(), validateGDMLFile, and world.
void CexmcSetup::ConvertToCrystalGeometry | ( | const G4ThreeVector & | src, |
G4int & | row, | ||
G4int & | column, | ||
G4ThreeVector & | dst | ||
) | const |
Definition at line 418 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 418 of file CexmcSetup.cc
References calorimeterGeometry, CexmcSetup::CalorimeterGeometryData::crystalHeight, CexmcSetup::CalorimeterGeometryData::crystalWidth, CexmcSetup::CalorimeterGeometryData::nCrystalsInColumn, CexmcSetup::CalorimeterGeometryData::nCrystalsInRow, CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::x(), and CLHEP::Hep3Vector::y().
|
inline |
Definition at line 182 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 182 of file CexmcSetup.hh
References calorimeterGeometry.
Referenced by CexmcEnergyDepositDigitizer::CexmcEnergyDepositDigitizer(), CexmcReconstructor::CexmcReconstructor(), CexmcTrackPointsDigitizer::CexmcTrackPointsDigitizer(), and CexmcScenePrimitives::HighlightInnerCrystals().
|
inline |
Definition at line 167 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 167 of file CexmcSetup.hh
References calorimeterLeftTransform.
Referenced by CexmcReconstructor::CexmcReconstructor(), and CexmcScenePrimitives::HighlightInnerCrystals().
|
inline |
Definition at line 174 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 174 of file CexmcSetup.hh
References calorimeterRightTransform.
Referenced by CexmcReconstructor::CexmcReconstructor(), and CexmcScenePrimitives::HighlightInnerCrystals().
|
inline |
Definition at line 161 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 161 of file CexmcSetup.hh
References targetTransform.
Referenced by CexmcReconstructor::CexmcReconstructor(), CexmcScenePrimitives::DrawRadialLine(), CexmcScenePrimitives::MarkTargetCenter(), and CexmcPhysicsList< BasePhysics, StudiedPhysics, ProductionModel >::SetupConstructionHook().
|
inline |
Definition at line 188 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 188 of file CexmcSetup.hh
References Calorimeter, calorimeterVolume, Monitor, monitorVolume, Target, targetVolume, VetoCounter, and vetoCounterVolume.
Referenced by CexmcSteppingAction::CexmcSteppingAction(), CexmcTrackingAction::CexmcTrackingAction(), and CexmcPhysicsList< BasePhysics, StudiedPhysics, ProductionModel >::SetupConstructionHook().
|
inline |
Definition at line 217 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 217 of file CexmcSetup.hh
References rightCalorimeter.
Referenced by CexmcEnergyDepositInCalorimeter::GetIndex(), and CexmcTrackPointsInCalorimeter::GetIndex().
|
inline |
Definition at line 207 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 207 of file CexmcSetup.hh
References rightCalorimeter, and rightVetoCounter.
Referenced by CexmcEnergyDepositInLeftRightSet::GetIndex(), and CexmcTrackPointsInLeftRightSet::GetIndex().
|
private |
Definition at line 364 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 364 of file CexmcSetup.cc
References calorimeterGeometry, CexmcIncompatibleGeometry, CexmcSetup::CalorimeterGeometryData::crystalHeight, CexmcSetup::CalorimeterGeometryData::crystalLength, CexmcSetup::CalorimeterGeometryData::crystalWidth, G4LogicalVolume::GetDaughter(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetSolid(), G4Box::GetXHalfLength(), G4Box::GetYHalfLength(), G4Box::GetZHalfLength(), CexmcSetup::CalorimeterGeometryData::nCrystalsInColumn, CexmcSetup::CalorimeterGeometryData::nCrystalsInRow, offset, and width.
Referenced by SetupSpecialVolumes().
Definition at line 441 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 441 of file CexmcSetup.cc
References calorimeterVolume, G4PhysicalVolumeStore::GetInstance(), k, rightCalorimeter, rightVetoCounter, and vetoCounterVolume.
Referenced by Construct().
|
private |
Definition at line 338 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 338 of file CexmcSetup.cc
References calorimeterLeftTransform, calorimeterRightTransform, G4GDMLParser::GetPosition(), G4GDMLParser::GetRotation(), position, RotateMatrix(), G4AffineTransform::SetNetRotation(), G4AffineTransform::SetNetTranslation(), and targetTransform.
Referenced by Construct().
|
staticprivate |
Definition at line 485 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 485 of file CexmcSetup.cc
References CLHEP::HepRotation::rotateX(), CLHEP::HepRotation::rotateY(), CLHEP::HepRotation::rotateZ(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by ReadTransforms().
|
private |
Definition at line 118 of file CexmcSetup.cc.
View newest version in sPHENIX GitHub at line 118 of file CexmcSetup.cc
References G4SDManager::AddNewDetector(), G4Region::AddRootLogicalVolume(), AssertAndAsignDetectorRole(), calorimeterGeometryDataInitialized, calorimeterRegionInitialized, calorimeterVolume, CEXMC_LINE_START, CexmcCalorimeterDetectorRole, CexmcCalorimeterGeometryDataNotInitialized, CexmcCalorimeterRegionName, CexmcCalorimeterRegionNotInitialized, CexmcDetectorRoleName, CexmcDetectorTypeName, CexmcEDDetector, CexmcMonitorDetectorRole, CexmcNumberOfDetectorRoles, CexmcTargetDetectorRole, CexmcTPDetector, CexmcVetoCounterDetectorRole, filter, G4cout, G4endl, G4VUserPhysicsList::GetDefaultCutValue(), G4LogicalVolumeStore::GetInstance(), G4RegionStore::GetInstance(), G4RunManager::GetRunManager(), G4SDManager::GetSDMpointer(), G4GDMLParser::GetVolumeAuxiliaryInformation(), CexmcPrimitiveScorer::InitializeMessenger(), mm, monitorVolume, ReadCalorimeterGeometryData(), G4MultiFunctionalDetector::RegisterPrimitive(), G4VPrimitiveScorer::SetFilter(), G4ProductionCuts::SetProductionCut(), G4Region::SetProductionCuts(), targetVolume, and vetoCounterVolume.
Referenced by Construct().
|
private |
Definition at line 157 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 157 of file CexmcSetup.hh
Referenced by ConvertToCrystalGeometry(), GetCalorimeterGeometry(), and ReadCalorimeterGeometryData().
|
private |
Definition at line 137 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 137 of file CexmcSetup.hh
Referenced by SetupSpecialVolumes().
|
private |
Definition at line 153 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 153 of file CexmcSetup.hh
Referenced by GetCalorimeterLeftTransform(), and ReadTransforms().
|
private |
Definition at line 135 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 135 of file CexmcSetup.hh
Referenced by SetupSpecialVolumes().
|
private |
Definition at line 155 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 155 of file CexmcSetup.hh
Referenced by GetCalorimeterRightTransform(), and ReadTransforms().
|
private |
Definition at line 143 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 143 of file CexmcSetup.hh
Referenced by GetVolume(), ReadRightDetectors(), and SetupSpecialVolumes().
|
private |
Definition at line 131 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 131 of file CexmcSetup.hh
Referenced by Construct().
|
private |
Definition at line 139 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 139 of file CexmcSetup.hh
Referenced by GetVolume(), and SetupSpecialVolumes().
|
private |
Definition at line 149 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 149 of file CexmcSetup.hh
Referenced by IsRightCalorimeter(), IsRightDetector(), and ReadRightDetectors().
|
private |
Definition at line 147 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 147 of file CexmcSetup.hh
Referenced by IsRightDetector(), and ReadRightDetectors().
|
private |
Definition at line 151 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 151 of file CexmcSetup.hh
Referenced by GetTargetTransform(), and ReadTransforms().
|
private |
Definition at line 145 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 145 of file CexmcSetup.hh
Referenced by GetVolume(), and SetupSpecialVolumes().
|
private |
Definition at line 133 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 133 of file CexmcSetup.hh
Referenced by Construct().
|
private |
Definition at line 141 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 141 of file CexmcSetup.hh
Referenced by GetVolume(), ReadRightDetectors(), and SetupSpecialVolumes().
|
private |
Definition at line 129 of file CexmcSetup.hh.
View newest version in sPHENIX GitHub at line 129 of file CexmcSetup.hh
Referenced by Construct().