63 G4double CexmcRadialLineWidth( 2.0 );
64 G4double CexmcRadialLineCapScreenSize( 4.0 );
65 G4double CexmcMarkerScreenSize( 2.0 );
66 G4double CexmcICHlLineLineWidth( 1.0 );
67 G4Colour CexmcDefaultSPColour( 1.0, 1.0, 1.0 );
72 setup( setup_ ), markTargetCenter( false ), highlightInnerCrystals( false ),
95 for ( CexmcRadialLines::const_iterator k(
radialLines.begin() );
112 transform.NetTranslation() );
126 G4Point3D radialLineEnd( - std::sin( theta ) * std::cos( phi ) * length,
127 std::sin( theta ) * std::sin( phi ) * length,
128 std::cos( theta ) * length );
132 line.push_back( radialLineEnd );
145 transform.NetTranslation() );
158 G4double icWidth( calorimeterGeometry.crystalWidth *
159 ( calorimeterGeometry.nCrystalsInRow - 2 ) / 2 );
160 G4double icHeight( calorimeterGeometry.crystalHeight *
161 ( calorimeterGeometry.nCrystalsInColumn - 2 ) / 2 );
162 G4double icLength( calorimeterGeometry.crystalLength / 2 );
163 icWidth = icWidth < 0 ? 0 : icWidth;
164 icHeight = icHeight < 0 ? 0 : icHeight;
174 transformLeft.NetRotation().inverse(),
175 transformLeft.NetTranslation() );
179 transformRight.NetRotation().inverse(),
180 transformRight.NetTranslation() );
G4bool highlightInnerCrystals
CexmcRadialLines radialLines
CLHEP::Hep3Vector G4ThreeVector
void SetGlobalDescription(const G4String &)
const G4String CexmcScenePrimitivesDescription("CexmcScenePrimitives")
void DescribeYourselfTo(G4VGraphicsScene &scene)
CexmcScenePrimitives(CexmcSetup *setup)
CLHEP::HepRotation G4RotationMatrix
virtual void EndPrimitives()=0
virtual void BeginPrimitives(const G4Transform3D &objectTransformation=G4Transform3D())=0
const G4AffineTransform & GetCalorimeterRightTransform(void) const
void SetScreenSize(G4double)
CexmcScenePrimitivesMessenger * messenger
static constexpr double deg
void MarkTargetCenter(G4bool on=true)
const G4AffineTransform & GetTargetTransform(void) const
const CalorimeterGeometryData & GetCalorimeterGeometry(void) const
virtual void AddPrimitive(const G4Polyline &)=0
const G4AffineTransform & GetCalorimeterLeftTransform(void) const
CexmcSPColourMap spColours
static constexpr double cm
void SetLineWidth(G4double)
void DrawRadialLine(const G4ThreeVector &line)
void HighlightInnerCrystals(G4bool=true)
void SetVisAttributes(const G4VisAttributes *)
void SetFillStyle(FillStyle)