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

#include <ExExChProcessChanneling.hh>

Inheritance diagram for ExExChProcessChanneling:
Collaboration diagram for ExExChProcessChanneling:

Public Member Functions

 ExExChProcessChanneling (const G4String &processName="ExExChProcessChanneling")
 
virtual ~ExExChProcessChanneling ()
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
XVCrystalCharacteristicGetPotential ()
 
void SetPotential (XVCrystalCharacteristic *)
 
XVCrystalCharacteristicGetElectricField ()
 
void SetElectricField (XVCrystalCharacteristic *)
 
XCrystalIntegratedDensityHubGetIntegratedDensity ()
 
void SetIntegratedDensity (XCrystalIntegratedDensityHub *)
 
XVCrystalCharacteristicGetNucleiDensity ()
 
void SetNucleiDensity (XVCrystalCharacteristic *)
 
XVCrystalCharacteristicGetElectronDensity ()
 
void SetElectronDensity (XVCrystalCharacteristic *)
 
G4double GetTransverseVariationMax ()
 
void SetTransverseVariationMax (G4double aDouble)
 
G4double GetTimeStepMin ()
 
void SetTimeStepMin (G4double aDouble)
 
void ReadFromFileCharacteristics (G4bool)
 
void SetFileCharacteristicsName (const G4String &vFilename)
 
G4bool GetFileCharacteristicsName ()
 
- Public Member Functions inherited from G4VDiscreteProcess
 G4VDiscreteProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4int operator== (const G4VProcess &right) const
 
G4int operator!= (const G4VProcess &right) const
 
G4double GetCurrentInteractionLength () const
 
void SetPILfactor (G4double value)
 
G4double GetPILfactor () const
 
G4double AlongStepGPIL (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 
G4double AtRestGPIL (const G4Track &track, G4ForceCondition *condition)
 
G4double PostStepGPIL (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual void PreparePhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
virtual G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
const G4StringGetPhysicsTableFileName (const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
 
const G4StringGetProcessName () const
 
G4ProcessType GetProcessType () const
 
void SetProcessType (G4ProcessType)
 
G4int GetProcessSubType () const
 
void SetProcessSubType (G4int)
 
virtual void StartTracking (G4Track *)
 
virtual void EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4double GetNumberOfInteractionLengthLeft () const
 
G4double GetTotalNumberOfInteractionLengthTraversed () const
 
G4bool isAtRestDoItIsEnabled () const
 
G4bool isAlongStepDoItIsEnabled () const
 
G4bool isPostStepDoItIsEnabled () const
 
virtual void DumpInfo () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
virtual void SetMasterProcess (G4VProcess *masterP)
 
const G4VProcessGetMasterProcess () const
 
virtual void BuildWorkerPhysicsTable (const G4ParticleDefinition &part)
 
virtual void PrepareWorkerPhysicsTable (const G4ParticleDefinition &)
 

Protected Member Functions

virtual G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *)
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager
 
G4VParticleChangepParticleChange
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft
 
G4double currentInteractionLength
 
G4double theInitialNumberOfInteractionLength
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType
 
G4int theProcessSubType
 
G4double thePILfactor
 
G4bool enableAtRestDoIt
 
G4bool enableAlongStepDoIt
 
G4bool enablePostStepDoIt
 
G4int verboseLevel
 

Detailed Description

Definition at line 46 of file ExExChProcessChanneling.hh.

Constructor & Destructor Documentation

ExExChProcessChanneling::ExExChProcessChanneling ( const G4String processName = "ExExChProcessChanneling")

Definition at line 62 of file ExExChProcessChanneling.cc.

62  :
63 G4VDiscreteProcess(aName){
64  fLatticeManager = XLatticeManager3::GetXLatticeManager();
65 
68  G4cout<<"\n ExExChProcessChanneling::Constructor:";
69  G4cout<<"Geometry surface tolerance is: ";
70  G4cout<< kCarTolerance / mm << " mm"<<G4endl;
71  if(verboseLevel>1) {
72  G4cout << GetProcessName() << " is created "<< G4endl;
73  }
74 
75  fFileCharacteristicsName = "";
76  fTimeStepMax = 0.;
77  fTimeStepMin = 2.E2 * CLHEP::angstrom;
78  fTransverseVariationMax = 2.E-2 * CLHEP::angstrom;
79 
80  fPointYPre = -1.;
81  fPointYPost = -1.;
82 }
static XLatticeManager3 * GetXLatticeManager()
static constexpr double mm
Definition: G4SIunits.hh:115
G4int verboseLevel
Definition: G4VProcess.hh:368
G4double GetSurfaceTolerance() const
G4GLOB_DLL std::ostream G4cout
const G4double kCarTolerance
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
static G4GeometryTolerance * GetInstance()
static constexpr double angstrom
Definition: SystemOfUnits.h:82

Here is the call graph for this function:

ExExChProcessChanneling::~ExExChProcessChanneling ( )
virtual

Definition at line 86 of file ExExChProcessChanneling.cc.

86  {
87 }

Member Function Documentation

void ExExChProcessChanneling::BuildPhysicsTable ( const G4ParticleDefinition )
virtual

Reimplemented from G4VProcess.

Definition at line 852 of file ExExChProcessChanneling.cc.

852  {
853 
854 }
XVCrystalCharacteristic * ExExChProcessChanneling::GetElectricField ( )

Definition at line 112 of file ExExChProcessChanneling.cc.

112  {
113  return fElectricField;
114 }
XVCrystalCharacteristic * ExExChProcessChanneling::GetElectronDensity ( )

Definition at line 152 of file ExExChProcessChanneling.cc.

152  {
153  return fElectronDensity;
154 }
G4bool ExExChProcessChanneling::GetFileCharacteristicsName ( )
inline

Definition at line 102 of file ExExChProcessChanneling.hh.

102 {return fFileCharacteristicsName;};
XCrystalIntegratedDensityHub * ExExChProcessChanneling::GetIntegratedDensity ( )

Definition at line 126 of file ExExChProcessChanneling.cc.

126  {
127  return fIntegratedDensity;
128 }
G4double ExExChProcessChanneling::GetMeanFreePath ( const G4Track aTrack,
G4double  ,
G4ForceCondition condition 
)
protectedvirtual

Implements G4VDiscreteProcess.

Definition at line 496 of file ExExChProcessChanneling.cc.

498  {
499 
500  //----------------------------------------
501  // the condition is forced to check if
502  // the volume has a lattice at each step.
503  // if it hasn't, return DBL_MAX
504  //----------------------------------------
505 
506  *condition = Forced;
507 
508  if(HasLattice(aTrack)){
509  GetInfo(aTrack)->SetInTheCrystal(true);
510  return GetChannelingMeanFreePath(aTrack);
511  }
512  else{
513  GetInfo(aTrack)->SetInTheCrystal(false);
514  return DBL_MAX;
515  }
516 }
G4double condition(const G4ErrorSymMatrix &m)
#define DBL_MAX
Definition: templates.hh:83

Here is the call graph for this function:

XVCrystalCharacteristic * ExExChProcessChanneling::GetNucleiDensity ( )

Definition at line 139 of file ExExChProcessChanneling.cc.

139  {
140  return fNucleiDensity;
141 }
XVCrystalCharacteristic * ExExChProcessChanneling::GetPotential ( )

Definition at line 99 of file ExExChProcessChanneling.cc.

99  {
100  return fPotentialEnergy;
101 }
G4double ExExChProcessChanneling::GetTimeStepMin ( )
inline

Definition at line 95 of file ExExChProcessChanneling.hh.

95 {return fTimeStepMin;};
G4double ExExChProcessChanneling::GetTransverseVariationMax ( )
inline

Definition at line 87 of file ExExChProcessChanneling.hh.

87  {
88  return fTransverseVariationMax;
89  };
G4bool ExExChProcessChanneling::IsApplicable ( const G4ParticleDefinition aPD)
virtual

Reimplemented from G4VProcess.

Definition at line 845 of file ExExChProcessChanneling.cc.

845  {
846  return(aPD.GetPDGCharge() != 0.);
847 }
G4double GetPDGCharge() const

Here is the call graph for this function:

G4VParticleChange * ExExChProcessChanneling::PostStepDoIt ( const G4Track aTrack,
const G4Step  
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 521 of file ExExChProcessChanneling.cc.

522  {
523 
524  //----------------------------------------
525  // check if the volume has a lattice
526  // and if the particle is in channeling.
527  // If it is so, the particle is forced
528  // to follow the channeling plane
529  // direction. If the particle has
530  // dechanneled or exited the crystal,
531  // the outgoing angle is evaluated
532  //----------------------------------------
533 
534  aParticleChange.Initialize(aTrack);
535 
536  GetInfo(aTrack)->StoreDensityPreviousStep();
537 
538  if((HasLattice(aTrack) == true) &&
539  (HasLatticeOnBoundaryPost(aTrack) == false)){
540  UpdateParameters(aTrack);
541 
542  G4ThreeVector vMomentum =
543  GetInfo(aTrack)->GetMomentumChanneled().unit();
544 
545  G4ThreeVector vPosition;
546  vPosition =
547  ComputePositionInTheCrystal(aTrack.GetStep()->GetPostStepPoint(),
548  aTrack);
549 
550  GetXPL(aTrack)->ProjectMomentumVectorFromLatticeToWorld(vMomentum,
551  vPosition);
552 
554  }
555  else{
556  // if the volume has no lattice it resets the density factors
557  ResetDensity(aTrack);
558  GetInfo(aTrack)->SetMomentumChanneled(G4ThreeVector(DBL_MAX,
559  DBL_MAX,
560  DBL_MAX));
561 
562  GetInfo(aTrack)->SetPositionChanneled(G4ThreeVector(DBL_MAX,
563  DBL_MAX,
564  DBL_MAX));
565  }
566 
567  return &aParticleChange;
568 }
CLHEP::Hep3Vector G4ThreeVector
const G4Step * GetStep() const
void SetMomentumChanneled(G4ThreeVector)
void SetPositionChanneled(G4ThreeVector)
G4ThreeVector ProjectMomentumVectorFromLatticeToWorld(G4ThreeVector &, G4ThreeVector &)
virtual void Initialize(const G4Track &)
Hep3Vector unit() const
G4StepPoint * GetPostStepPoint() const
G4ParticleChange aParticleChange
Definition: G4VProcess.hh:289
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
#define DBL_MAX
Definition: templates.hh:83

Here is the call graph for this function:

void ExExChProcessChanneling::ReadFromFileCharacteristics ( G4bool  )
void ExExChProcessChanneling::SetElectricField ( XVCrystalCharacteristic vElectricField)

Definition at line 119 of file ExExChProcessChanneling.cc.

119  {
120  fElectricField = vElectricField;
121 }

Here is the caller graph for this function:

void ExExChProcessChanneling::SetElectronDensity ( XVCrystalCharacteristic vElectronDensity)

Definition at line 159 of file ExExChProcessChanneling.cc.

159  {
160  fElectronDensity = vElectronDensity;
161 }

Here is the caller graph for this function:

void ExExChProcessChanneling::SetFileCharacteristicsName ( const G4String vFilename)
inline

Definition at line 100 of file ExExChProcessChanneling.hh.

101  {fFileCharacteristicsName = vFilename;};

Here is the caller graph for this function:

void ExExChProcessChanneling::SetIntegratedDensity ( XCrystalIntegratedDensityHub vIntegratedDensity)

Definition at line 133 of file ExExChProcessChanneling.cc.

133  {
134  fIntegratedDensity = vIntegratedDensity;
135 }

Here is the caller graph for this function:

void ExExChProcessChanneling::SetNucleiDensity ( XVCrystalCharacteristic vNucleiDensity)

Definition at line 146 of file ExExChProcessChanneling.cc.

146  {
147  fNucleiDensity = vNucleiDensity;
148 }

Here is the caller graph for this function:

void ExExChProcessChanneling::SetPotential ( XVCrystalCharacteristic vPotential)

Definition at line 106 of file ExExChProcessChanneling.cc.

106  {
107  fPotentialEnergy = vPotential;
108 }

Here is the caller graph for this function:

void ExExChProcessChanneling::SetTimeStepMin ( G4double  aDouble)
inline

Definition at line 96 of file ExExChProcessChanneling.hh.

96 {fTimeStepMin = aDouble;};

Here is the caller graph for this function:

void ExExChProcessChanneling::SetTransverseVariationMax ( G4double  aDouble)
inline

Definition at line 91 of file ExExChProcessChanneling.hh.

91  {
92  fTransverseVariationMax = aDouble;
93  };

Here is the caller graph for this function:


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