AiresUtilities.h
Go to the documentation of this file.
1 
11 #ifndef _io_AiresUtilities_h_
12 #define _io_AiresUtilities_h_
13 
14 #include <utl/GeometryUtilities.h>
15 #include <utl/AugerUnits.h>
16 
17 #include <iostream>
18 
19 
20 namespace io {
21 
22  namespace Aires {
23 
24  // This value just initialises the variable. The declination proper is
25  // set via the value taken from the Aires shower file header record. See
26  // AiresShowerFile::Open() for further details.
27  static double kMagneticFieldDeclination = 0;
28 
30  int AiresToPDG(int theAiresCode);
31 
33  inline
34  double
35  AiresAzimuthToAuger(const double airesAzimuth)
36  {
37  using utl::deg;
38  using utl::NormalizeAngle;
39 
40  return NormalizeAngle(airesAzimuth + 90*deg - io::Aires::kMagneticFieldDeclination);
41  }
42 
43  }
44 
45 }
46 
47 
48 #endif
int AiresToPDG(int theAiresCode)
Convert AIRES particle code to PDG.
constexpr double deg
Definition: AugerUnits.h:140
double AiresAzimuthToAuger(const double airesAzimuth)
Returns the azimuth rotated from AIRES&#39;s system to Auger standard.
static double kMagneticFieldDeclination

, generated on Tue Sep 26 2023.