Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
B5::CellParameterisation Class Reference

EM Calorimeter cell parameterisation. More...

#include <Doxymodules_basic.h>

Inheritance diagram for B5::CellParameterisation:
G4VPVParameterisation

Public Member Functions

 CellParameterisation ()
 
 ~CellParameterisation () override=default
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const override
 

Private Attributes

std::array< G4double, kNofEmCellsfXCell
 
std::array< G4double, kNofEmCellsfYCell
 

Detailed Description

EM Calorimeter cell parameterisation.

Definition at line 185 of file Doxymodules_basic.h.

Constructor & Destructor Documentation

◆ CellParameterisation()

B5::CellParameterisation::CellParameterisation ( )

Definition at line 42 of file CellParameterisation.cc.

43{
44 for (auto copyNo=0; copyNo<kNofEmCells; copyNo++) {
45 auto column = copyNo / kNofEmRows ;
46 auto row = copyNo % kNofEmRows;
47 fXCell[copyNo] = (column-9)*15.*cm - 7.5*cm;
48 fYCell[copyNo] = (row-1)*15*cm - 7.5*cm;
49 }
50}
std::array< G4double, kNofEmCells > fYCell
std::array< G4double, kNofEmCells > fXCell
constexpr G4int kNofEmCells
Definition Constants.hh:43
constexpr G4int kNofEmRows
Definition Constants.hh:42

◆ ~CellParameterisation()

B5::CellParameterisation::~CellParameterisation ( )
overridedefault

Member Function Documentation

◆ ComputeTransformation()

void B5::CellParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume physVol 
) const
override

Definition at line 54 of file CellParameterisation.cc.

56{
57 physVol->SetTranslation(G4ThreeVector(fXCell[copyNo],fYCell[copyNo],0.));
58}

Member Data Documentation

◆ fXCell

std::array<G4double, kNofEmCells> B5::CellParameterisation::fXCell
private

Definition at line 57 of file CellParameterisation.hh.

◆ fYCell

std::array<G4double, kNofEmCells> B5::CellParameterisation::fYCell
private

Definition at line 58 of file CellParameterisation.hh.


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

Applications | User Support | Publications | Collaboration