RefFrame.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::RefFrame
5 
6 \brief An enumeration of reference frames.
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created May 04, 2004
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _REF_FRAME_H_
20 #define _REF_FRAME_H_
21 
22 namespace genie {
23 
24 typedef enum ERefFrame {
25 
33 
34 } RefFrame_t;
35 
36 class RefFrame {
37 
38 public:
39 
40  static const char * AsString(RefFrame_t rf)
41  {
42  switch (rf) {
43  case (kRfLab) : return "[LAB]"; break;
44  case (kRfCM) : return "[Center of mass]"; break;
45  case (kRfHCM) : return "[Hadronic center of mass]"; break;
46  case (kRfTgtRest) : return "[Nuclear target @ rest]"; break;
47  case (kRfHitNucRest) : return "[Hit nucleon @ rest]"; break;
48  case (kRfHitElRest) : return "[Hit electron@ rest]"; break;
49  case (kRfUndefined) :
50  default : return "** Undefined reference frame ** ";
51  }
52  }
53 };
54 
55 } // genie namespace
56 
57 #endif // _REF_FRAME_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
ERefFrame
Definition: RefFrame.h:24
enum genie::ERefFrame RefFrame_t
An enumeration of reference frames.
Definition: RefFrame.h:36
static const char * AsString(RefFrame_t rf)
Definition: RefFrame.h:40