CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
magneticfield Namespace Reference

Classes

class  AutoParametrizedMagneticFieldProducer
 
class  BaseVolumeHandle
 
class  bLayer
 
class  bRod
 
class  bSector
 
class  bSlab
 
class  DD4hep_VolumeBasedMagneticFieldESProducer
 
class  DD4hep_VolumeBasedMagneticFieldESProducerFromDB
 
class  eLayer
 
class  eSector
 
struct  ExtractAbsZ
 
struct  ExtractPhi
 
struct  ExtractPhiMax
 
struct  ExtractR
 
struct  ExtractRN
 
struct  ExtractZ
 
class  FakeInterpolator
 
struct  LessDPhi
 
struct  LessZ
 
class  MagGeoBuilder
 
class  ParametrizedMagneticFieldProducer
 
class  UniformMagneticFieldESProducer
 
class  VolumeBasedMagneticFieldESProducer
 
class  VolumeBasedMagneticFieldESProducerFromDB
 
class  volumeHandle
 

Typedefs

using handles = std::vector< BaseVolumeHandle * >
 
typedef const char * ShapeType
 
typedef std::map< int,
std::pair< std::string, int > > 
TableFileMap
 

Functions

void printUniqueNames (handles::const_iterator begin, handles::const_iterator end, bool uniq=true)
 Just for debugging... More...
 

Variables

const char *const newln = "\n"
 

Typedef Documentation

typedef std::vector< BaseVolumeHandle * > magneticfield::handles

Definition at line 154 of file BaseVolumeHandle.h.

typedef const char* magneticfield::ShapeType

Definition at line 21 of file DD4hep_volumeHandle.h.

typedef std::map<int, std::pair<std::string, int> > magneticfield::TableFileMap

Definition at line 23 of file MagFieldConfig.h.

Function Documentation

void magneticfield::printUniqueNames ( handles::const_iterator  begin,
handles::const_iterator  end,
bool  uniq = true 
)

Just for debugging...

Definition at line 9 of file printUniqueNames.cc.

References filterCSVwithJSON::copy, gather_cfg::cout, dataset::end, mps_fire::i, names, cond::impl::to_string(), and tier0::unique().

Referenced by magneticfield::bLayer::bLayer(), magneticfield::bRod::bRod(), magneticfield::bSector::bSector(), and magneticfield::eSector::eSector().

9  {
10  std::vector<std::string> names;
11  for (handles::const_iterator i = begin; i != end; ++i) {
12  if (uniq)
13  names.push_back((*i)->name);
14  else
15  names.push_back((*i)->name + ":" + std::to_string((*i)->copyno));
16  }
17 
18  sort(names.begin(), names.end());
19  if (uniq) {
20  std::vector<std::string>::iterator i = unique(names.begin(), names.end());
21  int nvols = int(i - names.begin());
22  cout << nvols << " ";
23  copy(names.begin(), i, ostream_iterator<std::string>(cout, " "));
24  } else {
25  cout << names.size() << " ";
26  copy(names.begin(), names.end(), ostream_iterator<std::string>(cout, " "));
27  }
28  cout << endl;
29 }
def unique
Definition: tier0.py:24
std::string to_string(const V &value)
Definition: OMSAccess.h:71
const std::string names[nVars_]
string end
Definition: dataset.py:937
tuple cout
Definition: gather_cfg.py:144

Variable Documentation

const char* const magneticfield::newln = "\n"
inline