GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
genie::RefFrame Class Reference

An enumeration of reference frames. More...

#include <RefFrame.h>

Static Public Member Functions

static const char * AsString (RefFrame_t rf)
 

Detailed Description

An enumeration of reference frames.

Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
May 04, 2004
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 35 of file RefFrame.h.

Member Function Documentation

static const char* genie::RefFrame::AsString ( RefFrame_t  rf)
inlinestatic

Definition at line 39 of file RefFrame.h.

References genie::kRfCM, genie::kRfHCM, genie::kRfHitElRest, genie::kRfHitNucRest, genie::kRfLab, genie::kRfTgtRest, and genie::kRfUndefined.

40  {
41  switch (rf) {
42  case (kRfLab) : return "[LAB]"; break;
43  case (kRfCM) : return "[Center of mass]"; break;
44  case (kRfHCM) : return "[Hadronic center of mass]"; break;
45  case (kRfTgtRest) : return "[Nuclear target @ rest]"; break;
46  case (kRfHitNucRest) : return "[Hit nucleon @ rest]"; break;
47  case (kRfHitElRest) : return "[Hit electron@ rest]"; break;
48  case (kRfUndefined) :
49  default : return "** Undefined reference frame ** ";
50  }
51  }

The documentation for this class was generated from the following file: