CMS 3D CMS Logo

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

◆ handles

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

Definition at line 154 of file BaseVolumeHandle.h.

◆ ShapeType

typedef const char* magneticfield::ShapeType

Definition at line 21 of file DD4hep_volumeHandle.h.

◆ TableFileMap

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

Definition at line 23 of file MagFieldConfig.h.

Function Documentation

◆ printUniqueNames()

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, mps_fire::end, mps_fire::i, createfilelist::int, names, jetUpdater_cfi::sort, 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 }
std::string to_string(const V &value)
Definition: OMSAccess.h:71
const std::string names[nVars_]
def unique(seq, keepstr=True)
Definition: tier0.py:24

Variable Documentation

◆ newln

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