|
||||
File indexing completed on 2024-09-27 07:03:37
0001 /////////////////////////////////////////////////////////////////////////// 0002 // 0003 // Copyright 2010 0004 // 0005 // This file is part of starlight. 0006 // 0007 // starlight is free software: you can redistribute it and/or modify 0008 // it under the terms of the GNU General Public License as published by 0009 // the Free Software Foundation, either version 3 of the License, or 0010 // (at your option) any later version. 0011 // 0012 // starlight is distributed in the hope that it will be useful, 0013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 // GNU General Public License for more details. 0016 // 0017 // You should have received a copy of the GNU General Public License 0018 // along with starlight. If not, see <http://www.gnu.org/licenses/>. 0019 // 0020 /////////////////////////////////////////////////////////////////////////// 0021 // 0022 // File and Version Information: 0023 // $Rev:: 259 $: revision of last commit 0024 // $Author:: jseger $: author of last commit 0025 // $Date:: 2016-04-19 01:58:25 +0100 #$: date of last commit 0026 // 0027 // Description: 0028 // 0029 // 0030 // 0031 /////////////////////////////////////////////////////////////////////////// 0032 0033 0034 #ifndef BEAM_H 0035 #define BEAM_H 0036 0037 0038 //This calls inclues a single beam of nucleons 0039 #include "nucleus.h" 0040 0041 class beam : public nucleus 0042 { 0043 0044 public: 0045 0046 beam(const int Z, 0047 const int A, 0048 const int productionMode, 0049 const double beamLorentzGamma); 0050 0051 ~beam(); 0052 0053 double photonDensity(const double impactparameter, 0054 const double photonEnergy) const; ///< calculates photon density (number of photons / (energy * area)) 0055 0056 double rapidity() const { return acosh(_beamLorentzGamma); } 0057 0058 void setBeamLorentzGamma(double gamma) {_beamLorentzGamma = gamma;} 0059 protected: 0060 0061 double _beamLorentzGamma; ///< Lorentz gamma factor of beams in collider frame (from inputParameters) 0062 0063 }; 0064 0065 0066 #endif // BEAM_H
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |