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

#include <XCrystalCharacteristicArray.hh>

Inheritance diagram for XCrystalCharacteristicArray:
Collaboration diagram for XCrystalCharacteristicArray:

Public Member Functions

std::vector
< XVCrystalCharacteristic * > 
GetCharacteristicVector ()
 
virtual G4ThreeVector ComputeEC (G4ThreeVector, XPhysicalLattice *)
 
virtual G4ThreeVector ComputePositionInUnitCell (G4ThreeVector, XPhysicalLattice *)
 
 XCrystalCharacteristicArray ()
 
 ~XCrystalCharacteristicArray ()
 
- Public Member Functions inherited from XVCrystalCharacteristic
XPhysicalLatticeGetXPhysicalLattice (G4VPhysicalVolume *)
 
XUnitCellGetXUnitCell (G4VPhysicalVolume *)
 
XLogicalLatticeGetLogicalLattice (G4VPhysicalVolume *)
 
void InitializePhysicalLattice (XPhysicalLattice *)
 
G4ThreeVector GetEC (G4ThreeVector, XPhysicalLattice *)
 
virtual G4ThreeVector ComputeECFromVector (G4ThreeVector)=0
 
virtual G4double ComputeTFScreeningRadius (XPhysicalLattice *)
 
virtual G4double GetMaximum (XPhysicalLattice *)
 
virtual G4double GetMinimum (XPhysicalLattice *)
 
virtual G4double ComputeMaximum (XPhysicalLattice *)
 
virtual G4double ComputeMinimum (XPhysicalLattice *)
 
virtual void PrintOnFile (const G4String &, XPhysicalLattice *, G4double=1)=0
 
virtual void ReadFromFile (const G4String &, XPhysicalLattice *, G4double=1)=0
 
virtual void ReadFromECHARM (const G4String &, G4double=1)=0
 
G4bool IsInitialized (XPhysicalLattice *)
 
virtual void InitializeVector ()=0
 
 XVCrystalCharacteristic ()
 
 ~XVCrystalCharacteristic ()
 

Additional Inherited Members

- Protected Attributes inherited from XVCrystalCharacteristic
G4double fMaximum
 
G4double fMinimum
 
XPhysicalLatticefPhysicalLattice
 
G4PhysicsVectorfVectorEC
 

Detailed Description

Definition at line 36 of file XCrystalCharacteristicArray.hh.

Constructor & Destructor Documentation

XCrystalCharacteristicArray::XCrystalCharacteristicArray ( )

Definition at line 32 of file XCrystalCharacteristicArray.cc.

32  {
33 }
XCrystalCharacteristicArray::~XCrystalCharacteristicArray ( )

Definition at line 37 of file XCrystalCharacteristicArray.cc.

37  {
38 }

Member Function Documentation

G4ThreeVector XCrystalCharacteristicArray::ComputeEC ( G4ThreeVector  vPosition,
XPhysicalLattice vLattice 
)
virtual

Implements XVCrystalCharacteristic.

Definition at line 43 of file XCrystalCharacteristicArray.cc.

44  {
45 
46  G4ThreeVector vValue = G4ThreeVector(0.,0.,0.);
47 
48  if(fCharacteristicVector.size()!=0){
49  for(unsigned int i=0;i<fCharacteristicVector.size();i++){
50  vValue += fCharacteristicVector.at(i)->GetEC(vPosition,vLattice);
51  }
52  return (vValue * G4double(1./G4double(fCharacteristicVector.size())));
53  }
54 
56 }
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
G4ThreeVector XCrystalCharacteristicArray::ComputePositionInUnitCell ( G4ThreeVector  vPosition,
XPhysicalLattice vLattice 
)
virtual

Reimplemented from XVCrystalCharacteristic.

Definition at line 61 of file XCrystalCharacteristicArray.cc.

62  {
63 
64  G4ThreeVector vPositionInTheCellPrevious = G4ThreeVector(0.,0.,0.);
65  G4ThreeVector vPositionInTheCell = G4ThreeVector(0.,0.,0.);
66 
67  if(fCharacteristicVector.size()!=0){
68  for(unsigned int i=0;i<fCharacteristicVector.size();i++){
69  if(vPositionInTheCellPrevious != vPositionInTheCell){
71  }
72  vPositionInTheCellPrevious = vPositionInTheCell;
73  vPositionInTheCell =
74  fCharacteristicVector.at(i)->ComputePositionInUnitCell(vPosition,
75  vLattice);
76  }
77  return vPositionInTheCell;
78  }
79 
81 }
CLHEP::Hep3Vector G4ThreeVector
#define DBL_MAX
Definition: templates.hh:83
std::vector<XVCrystalCharacteristic*> XCrystalCharacteristicArray::GetCharacteristicVector ( )

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