EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldConfigv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHFieldConfigv1.cc
1 // $Id: $
2 
11 #include "PHFieldConfigv1.h"
12 
13 #include <iostream>
14 
16  const std::string& filename,
17  double magfield_rescale)
18  : field_config_(field_config)
19  , filename_(filename)
20  , magfield_rescale_(magfield_rescale)
21 {
22 }
23 
27 void PHFieldConfigv1::identify(std::ostream& os) const
28 {
29  os << "PHFieldConfigv1::identify -";
30  if (isValid())
31  {
32  os << " Field type of [" << get_field_config_description();
33  os << "] from file [" << get_filename();
34  os << "] with a scale factor of " << get_magfield_rescale();
35  }
36  else
37  {
38  os << "Empty";
39  }
40  os << std::endl;
41 }
42 
45 {
46  return filename_.length();
47 }