Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:27

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // G4VTransitionRadiation  -- header file
0027 //
0028 // Generic process of transition radiation
0029 //
0030 // History:
0031 // 29.02.04, V.Ivanchenko created
0032 // 28.07.05, P.Gumplinger add G4ProcessType to constructor
0033 
0034 #ifndef G4VTransitionRadiation_h
0035 #define G4VTransitionRadiation_h
0036 
0037 #include "globals.hh"
0038 #include "G4ForceCondition.hh"
0039 #include "G4ParticleDefinition.hh"
0040 #include "G4Region.hh"
0041 #include "G4Step.hh"
0042 #include "G4Track.hh"
0043 #include "G4VDiscreteProcess.hh"
0044 #include "G4VParticleChange.hh"
0045 
0046 #include <vector>
0047 
0048 class G4LossTableManager;
0049 class G4Material;
0050 class G4VTRModel;
0051 
0052 class G4VTransitionRadiation : public G4VDiscreteProcess
0053 {
0054  public:
0055   // Constructors
0056   explicit G4VTransitionRadiation(const G4String& processName = "TR",
0057                                   G4ProcessType type = fElectromagnetic);
0058 
0059   // Destructor
0060   virtual ~G4VTransitionRadiation();
0061 
0062   virtual G4bool IsApplicable(
0063     const G4ParticleDefinition& aParticleType) override;
0064 
0065   void ProcessDescription(std::ostream&) const override;
0066   void DumpInfo() const override { ProcessDescription(G4cout); };
0067 
0068   virtual G4double GetMeanFreePath(const G4Track& track, G4double,
0069                                    G4ForceCondition* condition) override;
0070 
0071   virtual G4VParticleChange* PostStepDoIt(const G4Track& track,
0072                                           const G4Step& step) override;
0073 
0074   void SetRegion(const G4Region* reg);
0075 
0076   void SetModel(G4VTRModel* m);
0077 
0078   void Clear();
0079 
0080   // hide assignment operator
0081   G4VTransitionRadiation& operator=(const G4VTransitionRadiation& right) =
0082     delete;
0083   G4VTransitionRadiation(const G4VTransitionRadiation&) = delete;
0084 
0085  private:
0086   G4LossTableManager* theManager;
0087   const G4Region* region;
0088   G4VTRModel* model;
0089 
0090   std::vector<const G4Material*> materials;
0091   std::vector<G4double> steps;
0092   std::vector<G4ThreeVector> normals;
0093 
0094   G4ThreeVector startingPosition;
0095   G4ThreeVector startingDirection;
0096 
0097   G4double gammaMin;
0098   G4double cosDThetaMax;
0099 
0100   G4int nSteps;
0101 };
0102 
0103 #endif  // G4VTransitionRadiation_h