Classes | Typedefs | Functions | Variables
io::Corsika Namespace Reference

Classes

struct  AtmosphereParameters
 
class  BasicBlock
 
class  BlockID
 Sub-block used in CORSIKA files. More...
 
struct  CherenkovData
 struct with Cherenkov data More...
 
struct  CherenkovDataUnthinned
 
class  CherenkovFlags
 
struct  EventHeader
 event header struct for Corsika files More...
 
struct  EventTrailer
 event trailer struct for Corsika files More...
 
class  Padded
 
struct  ParticleData
 struct with particle data More...
 
struct  ParticleDataUnthinned
 
class  RawFile
 Raw disk file. More...
 
struct  RunHeader
 run header struct for Corsika files More...
 
struct  RunTrailer
 run trailer struct for Corsika files More...
 

Typedefs

typedef BasicBlock
< ParticleData, CherenkovData,
kParticlesInBlock, 39 > 
Block
 
typedef BasicBlock
< ParticleDataUnthinned,
CherenkovDataUnthinned,
kParticlesInBlock, 0 > 
BlockUnthinned
 
typedef float RWORD
 

Functions

double CorsikaAzimuthToAuger (const double corsikaAzimuth, const double magneticFieldDeclination)
 Returns the azimuth rotated from Corisika's system to Auger standard. More...
 
int CorsikaToPDG (const int corsikaCode)
 converters from CORSIKA to PDG particle codes More...
 

Variables

const double hAtmBoundary = 112.8292*utl::km
 
const double kEarthRadius = 6.371315e6*utl::m
 
static const unsigned int kMaxObservationLevels = 10
 
static const unsigned int kParticlesInBlock = 39
 

Typedef Documentation

Definition at line 443 of file CorsikaBlock.h.

Definition at line 445 of file CorsikaBlock.h.

typedef float io::Corsika::RWORD

Definition at line 47 of file CorsikaBlock.h.

Function Documentation

double io::Corsika::CorsikaAzimuthToAuger ( const double  corsikaAzimuth,
const double  magneticFieldDeclination 
)

Returns the azimuth rotated from Corisika's system to Auger standard.

Rotate form the Corsika coordinate system to Auger standard. Auger places the x axis east and the y axis north. Corsika places the x axis in the magnetic north and the y axis west. Therefore, the geomagnetic field direction for the location and time of an event has to be taken into account for the correct transformation.

Auger uses the incomming direction, Corsika the outgoing direction. This adds 180 deg to the difference.

Note
The current value for the magnetic field rotation is valid for the southern site in 2002. The drift is around 2.5 degree in 20 years.

For info: http://www.ngdc.noaa.gov/geomag-web 35S, 70W 2002-10-24) 4.19deg E changing by 0.13deg W per year 2016-10-24) 2.16deg E (+-0.37deg) changing by 0.15deg W per year

Magnetic field declination is now part of the det::Detector model.

Definition at line 151 of file CorsikaUtilities.cc.

References utl::deg, and utl::NormalizeAngleMinusPiPi().

Referenced by io::CorsikaShowerFileGeometryProducer::MakeGroundParticleCoordinateSystem(), io::CorsikaShowerFile::Read(), and testCorsikaUtilities::testCorsikaAzimuthToAuger().

Variable Documentation

const double io::Corsika::hAtmBoundary = 112.8292*utl::km

Definition at line 26 of file CorsikaUtilities.h.

Referenced by io::CorsikaShowerFile::SetHeaderTrailer().

const double io::Corsika::kEarthRadius = 6.371315e6*utl::m
const unsigned int io::Corsika::kMaxObservationLevels = 10
static

Definition at line 103 of file CorsikaBlock.h.

const unsigned int io::Corsika::kParticlesInBlock = 39
static

, generated on Tue Sep 26 2023.