Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4InnerHcalDetector.h>
Public Types | |
typedef CGAL::Exact_circular_kernel_2 | Circular_k |
typedef CGAL::Point_2< Circular_k > | Point_2 |
Public Member Functions | |
PHG4InnerHcalDetector (PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam) | |
constructor | |
~PHG4InnerHcalDetector () override | |
destructor | |
void | ConstructMe (G4LogicalVolume *world) override |
construct | |
void | Print (const std::string &what="ALL") const override |
void | SuperDetector (const std::string &name) |
const std::string | SuperDetector () const |
int | get_Layer () const |
G4VSolid * | ConstructSteelPlate (G4LogicalVolume *hcalenvelope) |
G4VSolid * | ConstructScintillatorBox (G4LogicalVolume *hcalenvelope) |
void | ShiftSecantToTangent (Point_2 &lowleft, Point_2 &upleft, Point_2 &upright, Point_2 &lowright) |
G4AssemblyVolume * | ConstructHcalScintillatorAssembly (G4LogicalVolume *hcalenvelope) |
void | ConstructHcalSingleScintillators (G4LogicalVolume *hcalenvelope) |
int | CheckTiltAngle () const |
int | ConsistencyCheck () const |
void | SetTiltViaNcross () |
std::pair< int, int > | GetLayerTowerId (G4VPhysicalVolume *volume) const |
volume accessors | |
int | IsInInnerHcal (G4VPhysicalVolume *) const |
Public Member Functions inherited from PHG4Detector | |
PHG4Detector ()=delete | |
constructor | |
PHG4Detector (PHG4Subsystem *subsys, PHCompositeNode *Node, const std::string &nam) | |
virtual | ~PHG4Detector (void) |
destructor | |
virtual void | Construct (G4LogicalVolume *world) final |
construct method | |
virtual void | PostConstruction () |
Optional PostConstruction call after all geometry is constructed. | |
virtual void | Verbosity (const int v) |
virtual int | Verbosity () const |
virtual G4UserSteppingAction * | GetSteppingAction () |
virtual std::string | GetName () const |
virtual void | OverlapCheck (const bool chk) |
virtual bool | OverlapCheck () const |
virtual int | DisplayVolume (G4VSolid *volume, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr) |
virtual int | DisplayVolume (G4LogicalVolume *checksolid, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr) |
virtual PHCompositeNode * | topNode () |
virtual PHG4Subsystem * | GetMySubsystem () |
Protected Member Functions | |
void | AddGeometryNode () |
int | ConstructInnerHcal (G4LogicalVolume *sandwich) |
double | x_at_y (Point_2 &p0, Point_2 &p1, double yin) |
Additional Inherited Members | |
Static Public Member Functions inherited from PHG4Detector | |
static G4Material * | GetDetectorMaterial (const std::string &name, const bool quit=true) |
static G4Element * | GetDetectorElement (const std::string &name, const bool quit=true) |
Definition at line 33 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 33 of file PHG4InnerHcalDetector.h
typedef CGAL::Exact_circular_kernel_2 PHG4InnerHcalDetector::Circular_k |
Definition at line 36 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 36 of file PHG4InnerHcalDetector.h
typedef CGAL::Point_2<Circular_k> PHG4InnerHcalDetector::Point_2 |
Definition at line 37 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 37 of file PHG4InnerHcalDetector.h
PHG4InnerHcalDetector::PHG4InnerHcalDetector | ( | PHG4Subsystem * | subsys, |
PHCompositeNode * | Node, | ||
PHParameters * | parameters, | ||
const std::string & | dnam | ||
) |
constructor
Definition at line 81 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 81 of file PHG4InnerHcalDetector.cc
References PHParameters::get_int_param(), m_NumScintiTilesNeg, m_NumScintiTilesPos, m_Params, m_ScintiTilesVec, PHG4HcalDefs::n_scinti_tiles, and PHParameters::set_int_param().
|
override |
destructor
Definition at line 123 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 123 of file PHG4InnerHcalDetector.cc
References m_ScintiMotherAssembly.
|
protected |
Definition at line 952 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 952 of file PHG4InnerHcalDetector.cc
References RawTowerGeomContainer::add_tower_geometry(), PHCompositeNode::addNode(), RawTowerDefs::convert_name_to_caloid(), Acts::UnitConstants::e, RawTowerDefs::encode_towerid(), PHNodeIterator::findFirst(), RawTowerGeom::get_center_x(), PHParameters::get_double_param(), RawTowerGeomContainer::get_etabins(), RawTowerGeomContainer::get_etacenter(), PHParameters::get_int_param(), RawTowerGeomContainer::get_phibins(), RawTowerGeomContainer::get_phicenter(), PHG4Utils::get_theta(), RawTowerGeomContainer::get_tower_geometry(), i, RawTowerGeomContainer::identify(), PHG4HcalDefs::innerrad, m_Params, m_RawTowerGeom, m_SuperDetector, m_TowerGeomNodeName, PHG4HcalDefs::n_towers, PHG4HcalDefs::outerrad, PHCompositeNode::PHCompositeNode(), G4HCALIN::phistart, PHWHERE, RawTowerGeomContainer::set_etabins(), RawTowerGeomContainer::set_etabounds(), RawTowerGeomContainer::set_phibins(), RawTowerGeomContainer::set_phibounds(), RawTowerGeomContainer::set_radius(), RawTowerGeomContainer::set_thickness(), tg, thickness, PHG4Detector::topNode(), PHG4Detector::Verbosity(), ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
Referenced by ConstructMe().
int PHG4InnerHcalDetector::CheckTiltAngle | ( | ) | const |
Definition at line 785 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 785 of file PHG4InnerHcalDetector.cc
References deg, m_InnerRadius, m_OuterRadius, m_TiltAngle, PHWHERE, and Acts::UnitConstants::rad.
Referenced by ConstructInnerHcal().
int PHG4InnerHcalDetector::ConsistencyCheck | ( | ) | const |
Definition at line 813 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 813 of file PHG4InnerHcalDetector.cc
References Acts::UnitConstants::cm, m_InnerRadius, m_OuterRadius, m_ScintiInnerGap, m_ScintiOuterRadius, m_ScintiTileThickness, and PHWHERE.
Referenced by ConstructInnerHcal().
G4AssemblyVolume * PHG4InnerHcalDetector::ConstructHcalScintillatorAssembly | ( | G4LogicalVolume * | hcalenvelope | ) |
Definition at line 760 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 760 of file PHG4InnerHcalDetector.cc
References PHG4InnerHcalDisplayAction::AddScintiVolume(), Acts::UnitConstants::cm, ConstructHcalSingleScintillators(), PHParameters::get_double_param(), PHG4Detector::GetDetectorMaterial(), i, m_DisplayAction, m_Params, m_ScintiLogicNamePrefix, m_ScintiTilesVec, and perf_headwind::name.
Referenced by ConstructInnerHcal().
void PHG4InnerHcalDetector::ConstructHcalSingleScintillators | ( | G4LogicalVolume * | hcalenvelope | ) |
Definition at line 582 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 582 of file PHG4InnerHcalDetector.cc
References Acts::UnitConstants::cm, ConstructScintillatorBox(), deg, eta, PHParameters::get_double_param(), PHG4Utils::get_theta(), i, j, m_InnerRadius, m_NumScintiTilesNeg, m_NumScintiTilesPos, m_OuterRadius, m_Params, m_ScintiTilesVec, m_ScintiTileThickness, m_ScintiTileX, Acts::UnitConstants::mm, perf_headwind::name, offset, PHParameters::set_double_param(), ActsTests::PropagationDatasets::theta, testSigmaEff::v, ambiguity_solver_full_chain::x, x_at_y(), physmon_track_finding_ttbar::z, and KFPMath::zero().
Referenced by ConstructHcalScintillatorAssembly().
|
protected |
Definition at line 507 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 507 of file PHG4InnerHcalDetector.cc
References PHG4InnerHcalDisplayAction::AddSteelVolume(), CheckTiltAngle(), ConsistencyCheck(), ConstructHcalScintillatorAssembly(), ConstructSteelPlate(), PHParameters::get_string_param(), PHG4Detector::GetDetectorMaterial(), i, m_DisplayAction, m_InnerRadius, m_NumScintiPlates, m_OuterRadius, m_Params, m_ScintiMotherAssembly, m_ScintiTileX, m_ScintiTileXLower, m_ScintiTileXUpper, m_SteelAbsorberPhysVolSet, m_TiltAngle, perf_headwind::name, PHG4Detector::OverlapCheck(), ActsTests::PropagationDatasets::phi, Acts::UnitConstants::rad, SetTiltViaNcross(), subtract_from_scinti_x, and xpos.
Referenced by ConstructMe().
|
overridevirtual |
construct
Implements PHG4Detector.
Definition at line 430 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 430 of file PHG4InnerHcalDetector.cc
References AddGeometryNode(), Acts::UnitConstants::cm, ConstructInnerHcal(), deg, PHParameters::get_double_param(), PHParameters::get_int_param(), PHFlag::get_StringFlag(), PHG4Detector::GetDetectorMaterial(), i, recoConsts::instance(), it, m_DisplayAction, m_EnvelopeInnerRadius, m_EnvelopeOuterRadius, m_EnvelopeZ, m_NumScintiPlates, m_Params, m_ScintiMotherAssembly, m_ScintiTilePhysVolMap, m_VolumeEnvelope, PHG4Detector::OverlapCheck(), PHWHERE, and PHG4InnerHcalDisplayAction::SetMyTopVolume().
G4VSolid * PHG4InnerHcalDetector::ConstructScintillatorBox | ( | G4LogicalVolume * | hcalenvelope | ) |
Definition at line 150 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 150 of file PHG4InnerHcalDetector.cc
References m_InnerRadius, m_NumScintiPlates, m_OuterRadius, m_ScintiOuterRadius, m_ScintiTileThickness, m_ScintiTileX, m_ScintiTileXLower, m_ScintiTileXUpper, m_ScintiTileZ, m_TiltAngle, m_VolumeScintillator, Acts::VectorHelpers::perp(), Acts::UnitConstants::rad, and subtract_from_scinti_x.
Referenced by ConstructHcalSingleScintillators().
G4VSolid * PHG4InnerHcalDetector::ConstructSteelPlate | ( | G4LogicalVolume * | hcalenvelope | ) |
Definition at line 227 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 227 of file PHG4InnerHcalDetector.cc
References m_InnerRadius, m_NumScintiPlates, m_OuterRadius, m_ScintiInnerGap, m_ScintiOuterGap, m_SizeZ, m_TiltAngle, m_VolumeSteel, Acts::VectorHelpers::perp(), Acts::UnitConstants::rad, ShiftSecantToTangent(), v1, v2, v3, v4, and KFPMath::zero().
Referenced by ConstructInnerHcal().
|
inline |
Definition at line 57 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4InnerHcalDetector.h
References m_Layer.
std::pair< int, int > PHG4InnerHcalDetector::GetLayerTowerId | ( | G4VPhysicalVolume * | volume | ) | const |
Definition at line 936 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 936 of file PHG4InnerHcalDetector.cc
References it, and m_ScintiTilePhysVolMap.
Referenced by PHG4InnerHcalSteppingAction::NoHitSteppingAction(), and PHG4InnerHcalSteppingAction::UserSteppingAction().
int PHG4InnerHcalDetector::IsInInnerHcal | ( | G4VPhysicalVolume * | volume | ) | const |
Definition at line 130 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 130 of file PHG4InnerHcalDetector.cc
References m_AbsorberActive, m_Active, m_ScintiTilePhysVolMap, and m_SteelAbsorberPhysVolSet.
Referenced by PHG4InnerHcalSteppingAction::NoHitSteppingAction(), and PHG4InnerHcalSteppingAction::UserSteppingAction().
|
overridevirtual |
Reimplemented from PHG4Detector.
Definition at line 923 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 923 of file PHG4InnerHcalDetector.cc
References Acts::UnitConstants::cm3, m_VolumeEnvelope, m_VolumeScintillator, and m_VolumeSteel.
Referenced by PHG4InnerHcalSubsystem::Print().
void PHG4InnerHcalDetector::SetTiltViaNcross | ( | ) |
Definition at line 840 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 840 of file PHG4InnerHcalDetector.cc
References autodiff::detail::copysign(), deg, PHParameters::get_int_param(), m_InnerRadius, m_NumScintiPlates, m_OuterRadius, m_Params, m_TiltAngle, Acts::UnitConstants::rad, PHParameters::set_double_param(), PHParameters::set_int_param(), and PHG4Detector::Verbosity().
Referenced by ConstructInnerHcal().
void PHG4InnerHcalDetector::ShiftSecantToTangent | ( | Point_2 & | lowleft, |
Point_2 & | upleft, | ||
Point_2 & | upright, | ||
Point_2 & | lowright | ||
) |
Definition at line 381 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 381 of file PHG4InnerHcalDetector.cc
References m_InnerRadius.
Referenced by ConstructSteelPlate().
|
inline |
Definition at line 55 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4InnerHcalDetector.h
References m_SuperDetector, and perf_headwind::name.
Referenced by PHG4InnerHcalSteppingAction::CreateNodeTree(), PHG4InnerHcalSubsystem::InitRunSubsystem(), and PHG4InnerHcalSteppingAction::SetInterfacePointers().
|
inline |
Definition at line 56 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 56 of file PHG4InnerHcalDetector.h
References m_SuperDetector.
Definition at line 730 of file PHG4InnerHcalDetector.cc.
View newest version in sPHENIX GitHub at line 730 of file PHG4InnerHcalDetector.cc
References PHWHERE, ambiguity_solver_full_chain::x, and y.
Referenced by ConstructHcalSingleScintillators().
|
protected |
Definition at line 100 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 100 of file PHG4InnerHcalDetector.h
Referenced by IsInInnerHcal().
|
protected |
Definition at line 99 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 99 of file PHG4InnerHcalDetector.h
Referenced by IsInInnerHcal().
|
protected |
Definition at line 73 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 73 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalScintillatorAssembly(), ConstructInnerHcal(), and ConstructMe().
|
protected |
Definition at line 88 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 88 of file PHG4InnerHcalDetector.h
Referenced by ConstructMe().
|
protected |
Definition at line 89 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 89 of file PHG4InnerHcalDetector.h
Referenced by ConstructMe().
|
protected |
Definition at line 90 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 90 of file PHG4InnerHcalDetector.h
Referenced by ConstructMe().
|
protected |
Definition at line 76 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 76 of file PHG4InnerHcalDetector.h
Referenced by CheckTiltAngle(), ConsistencyCheck(), ConstructHcalSingleScintillators(), ConstructInnerHcal(), ConstructScintillatorBox(), ConstructSteelPlate(), SetTiltViaNcross(), and ShiftSecantToTangent().
|
protected |
Definition at line 102 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 102 of file PHG4InnerHcalDetector.h
Referenced by get_Layer().
|
protected |
Definition at line 95 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 95 of file PHG4InnerHcalDetector.h
Referenced by ConstructInnerHcal(), ConstructMe(), ConstructScintillatorBox(), ConstructSteelPlate(), and SetTiltViaNcross().
|
protected |
Definition at line 97 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 97 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalSingleScintillators(), and PHG4InnerHcalDetector().
|
protected |
Definition at line 96 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 96 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalSingleScintillators(), and PHG4InnerHcalDetector().
|
protected |
Definition at line 77 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 77 of file PHG4InnerHcalDetector.h
Referenced by CheckTiltAngle(), ConsistencyCheck(), ConstructHcalSingleScintillators(), ConstructInnerHcal(), ConstructScintillatorBox(), ConstructSteelPlate(), and SetTiltViaNcross().
|
protected |
Definition at line 74 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 74 of file PHG4InnerHcalDetector.h
Referenced by AddGeometryNode(), ConstructHcalScintillatorAssembly(), ConstructHcalSingleScintillators(), ConstructInnerHcal(), ConstructMe(), PHG4InnerHcalDetector(), and SetTiltViaNcross().
|
protected |
Definition at line 108 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 108 of file PHG4InnerHcalDetector.h
Referenced by AddGeometryNode().
|
protected |
Definition at line 84 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 84 of file PHG4InnerHcalDetector.h
Referenced by ConsistencyCheck(), and ConstructSteelPlate().
|
protected |
Definition at line 107 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 107 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalScintillatorAssembly().
|
protected |
Definition at line 75 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 75 of file PHG4InnerHcalDetector.h
Referenced by ConstructInnerHcal(), ConstructMe(), and ~PHG4InnerHcalDetector().
|
protected |
Definition at line 85 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 85 of file PHG4InnerHcalDetector.h
Referenced by ConstructSteelPlate().
|
protected |
Definition at line 86 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 86 of file PHG4InnerHcalDetector.h
Referenced by ConsistencyCheck(), and ConstructScintillatorBox().
|
protected |
Definition at line 105 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 105 of file PHG4InnerHcalDetector.h
Referenced by ConstructMe(), GetLayerTowerId(), and IsInInnerHcal().
|
protected |
Definition at line 106 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 106 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalScintillatorAssembly(), ConstructHcalSingleScintillators(), and PHG4InnerHcalDetector().
|
protected |
Definition at line 83 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 83 of file PHG4InnerHcalDetector.h
Referenced by ConsistencyCheck(), ConstructHcalSingleScintillators(), and ConstructScintillatorBox().
|
protected |
Definition at line 79 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 79 of file PHG4InnerHcalDetector.h
Referenced by ConstructHcalSingleScintillators(), ConstructInnerHcal(), and ConstructScintillatorBox().
|
protected |
Definition at line 80 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 80 of file PHG4InnerHcalDetector.h
Referenced by ConstructInnerHcal(), and ConstructScintillatorBox().
|
protected |
Definition at line 81 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 81 of file PHG4InnerHcalDetector.h
Referenced by ConstructInnerHcal(), and ConstructScintillatorBox().
|
protected |
Definition at line 82 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 82 of file PHG4InnerHcalDetector.h
Referenced by ConstructScintillatorBox().
|
protected |
Definition at line 78 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 78 of file PHG4InnerHcalDetector.h
Referenced by ConstructSteelPlate().
|
protected |
Definition at line 104 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 104 of file PHG4InnerHcalDetector.h
Referenced by ConstructInnerHcal(), and IsInInnerHcal().
|
protected |
Definition at line 103 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 103 of file PHG4InnerHcalDetector.h
Referenced by AddGeometryNode(), and SuperDetector().
|
protected |
Definition at line 87 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 87 of file PHG4InnerHcalDetector.h
Referenced by CheckTiltAngle(), ConstructInnerHcal(), ConstructScintillatorBox(), ConstructSteelPlate(), and SetTiltViaNcross().
|
protected |
Definition at line 109 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 109 of file PHG4InnerHcalDetector.h
Referenced by AddGeometryNode().
|
protected |
Definition at line 91 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 91 of file PHG4InnerHcalDetector.h
Referenced by ConstructMe(), and Print().
|
protected |
Definition at line 93 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 93 of file PHG4InnerHcalDetector.h
Referenced by ConstructScintillatorBox(), and Print().
|
protected |
Definition at line 92 of file PHG4InnerHcalDetector.h.
View newest version in sPHENIX GitHub at line 92 of file PHG4InnerHcalDetector.h
Referenced by ConstructSteelPlate(), and Print().