Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
File size:
789 bytes
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: Meteoroid.cc 756 2004-06-15 18:01:25Z thea $ |
---|
3 | // created Dec, 4 2003 |
---|
4 | |
---|
5 | #include "Meteoroid.hh" |
---|
6 | |
---|
7 | ClassImp(Meteoroid) |
---|
8 | |
---|
9 | // ctor |
---|
10 | // description of a meteoroid with mass, density, initial velocity and |
---|
11 | // position, heat of ablation and heat transfer coefficiencts |
---|
12 | Meteoroid::Meteoroid( double mass, double density, const EVector& v, |
---|
13 | const EVector& x,double heat_abla, double heat_transf) { |
---|
14 | fMass = mass; |
---|
15 | fDensity = density; |
---|
16 | fVelocity = v; |
---|
17 | fPosition = x; |
---|
18 | fHeatAbla = heat_abla; |
---|
19 | fHeatTransf = heat_transf; |
---|
20 | } |
---|
21 | |
---|
22 | // dtor |
---|
23 | Meteoroid::~Meteoroid() { |
---|
24 | } |
---|
25 | |
---|
26 | // get meteoroid radius |
---|
27 | double Meteoroid::GetRadius() const { |
---|
28 | return TMath::Power((3.*GetMass())/(4.*GetDensity() * TMath::Pi() ),(1./3.)); |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.