Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B5CellParameterisation Class Reference

EM Calorimeter cell parameterisation. More...

#include <B5CellParameterisation.hh>

Inheritance diagram for B5CellParameterisation:
Collaboration diagram for B5CellParameterisation:

Public Member Functions

 B5CellParameterisation ()
 
virtual ~B5CellParameterisation ()
 
virtual void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const
 
- Public Member Functions inherited from G4VPVParameterisation
 G4VPVParameterisation ()
 
virtual ~G4VPVParameterisation ()
 
virtual G4VSolidComputeSolid (const G4int, G4VPhysicalVolume *)
 
virtual G4MaterialComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
 
virtual G4bool IsNested () const
 
virtual G4VVolumeMaterialScannerGetMaterialScanner ()
 
virtual void ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 

Detailed Description

EM Calorimeter cell parameterisation.

Definition at line 45 of file B5CellParameterisation.hh.

Constructor & Destructor Documentation

B5CellParameterisation::B5CellParameterisation ( )

Definition at line 40 of file B5CellParameterisation.cc.

42 {
43  for (auto copyNo=0; copyNo<kNofEmCells; copyNo++) {
44  auto column = copyNo / kNofEmRows ;
45  auto row = copyNo % kNofEmRows;
46  fXCell[copyNo] = (column-9)*15.*cm - 7.5*cm;
47  fYCell[copyNo] = (row-1)*15*cm - 7.5*cm;
48  }
49 }
static constexpr double cm
Definition: G4SIunits.hh:119
constexpr G4int kNofEmRows
Definition: B5Constants.hh:40
constexpr G4int kNofEmCells
Definition: B5Constants.hh:41
B5CellParameterisation::~B5CellParameterisation ( )
virtual

Definition at line 53 of file B5CellParameterisation.cc.

54 {}

Member Function Documentation

void B5CellParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume physVol 
) const
virtual

Implements G4VPVParameterisation.

Definition at line 58 of file B5CellParameterisation.cc.

60 {
61  physVol->SetTranslation(G4ThreeVector(fXCell[copyNo],fYCell[copyNo],0.));
62 }
CLHEP::Hep3Vector G4ThreeVector
void SetTranslation(const G4ThreeVector &v)

Here is the call graph for this function:


The documentation for this class was generated from the following files: