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 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"
 
const typedef char * ShapeType
 

Typedef Documentation

◆ handles

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

Definition at line 154 of file BaseVolumeHandle.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.

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 }

References filterCSVwithJSON::copy, gather_cfg::cout, mps_fire::end, mps_fire::i, createfilelist::int, names, jetUpdater_cfi::sort, and tier0::unique().

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

Variable Documentation

◆ newln

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

◆ ShapeType

const typedef char* magneticfield::ShapeType

Definition at line 21 of file DD4hep_volumeHandle.h.

mps_fire.i
i
Definition: mps_fire.py:428
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
gather_cfg.cout
cout
Definition: gather_cfg.py:144
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
mps_fire.end
end
Definition: mps_fire.py:242
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
createfilelist.int
int
Definition: createfilelist.py:10
tier0.unique
def unique(seq, keepstr=True)
Definition: tier0.py:24