Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:58

0001 
0002 /*!
0003  * \file PHFieldConfig.cc
0004  * \brief
0005  * \author Jin Huang <jhuang@bnl.gov>
0006  * \version $Revision:   $
0007  * \date $Date: $
0008  */
0009 
0010 #include "PHFieldConfig.h"
0011 
0012 #include <iostream>
0013 
0014 using namespace std;
0015 
0016 const std::string PHFieldConfig::kInvalid_FileName("INVALID FILE");
0017 
0018 string PHFieldConfig::get_field_config_description() const
0019 {
0020   switch (get_field_config())
0021   {
0022   case kFieldUniform:
0023     return "Uniform field";
0024     break;
0025   case kField2D:
0026     return "2D field map expressed in cylindrical coordinates";
0027     break;
0028   case kField3DCylindrical:
0029     return "3D field map expressed in cylindrical coordinates";
0030     break;
0031   case Field3DCartesian:
0032     return "3D field map expressed in Cartesian coordinates";
0033     break;
0034   case kFieldBeast:
0035     return "Beast Field";
0036     break;
0037   case kFieldCleo:
0038     return "Cleo Magnet Field";
0039     break;
0040   default:
0041     return "Invalid Field";
0042   }
0043 }
0044 
0045 /** identify Function from PHObject
0046  @param os Output Stream
0047  */
0048 void PHFieldConfig::identify(std::ostream& os) const
0049 {
0050   os << "PHFieldConfig::identify - isValid() = " << isValid() << endl;
0051 }