#include <MagGeometry.h>
Public Types | |
typedef Surface::GlobalPoint | GlobalPoint |
typedef Surface::GlobalVector | GlobalVector |
Public Member Functions | |
const std::vector < MagVolume6Faces * > & | barrelVolumes () const |
const std::vector < MagVolume6Faces * > & | endcapVolumes () const |
GlobalVector | fieldInTesla (const GlobalPoint &gp) const |
Return field vector at the specified global point. More... | |
MagVolume * | findVolume (const GlobalPoint &gp, double tolerance=0.) const |
Find a volume. More... | |
bool | isZSymmetric () const |
MagGeometry (const edm::ParameterSet &config, std::vector< MagBLayer * >, std::vector< MagESector * >, std::vector< MagVolume6Faces * >, std::vector< MagVolume6Faces * >) | |
Constructor. More... | |
~MagGeometry () | |
Destructor. More... | |
Private Member Functions | |
MagVolume * | findVolume1 (const GlobalPoint &gp, double tolerance=0.) const |
bool | inBarrel (const GlobalPoint &gp) const |
Private Attributes | |
bool | cacheLastVolume |
int | geometryVersion |
MagVolume * | lastVolume |
MagBinFinders::GeneralBinFinderInR < double > * | theBarrelBinFinder |
std::vector< MagBLayer * > | theBLayers |
std::vector< MagVolume6Faces * > | theBVolumes |
PeriodicBinFinderInPhi< float > * | theEndcapBinFinder |
std::vector< MagESector * > | theESectors |
std::vector< MagVolume6Faces * > | theEVolumes |
Friends | |
class | MagGeometryExerciser |
Entry point to the geometry of magnetic volumes.
Definition at line 25 of file MagGeometry.h.
Definition at line 29 of file MagGeometry.h.
Definition at line 28 of file MagGeometry.h.
MagGeometry::MagGeometry | ( | const edm::ParameterSet & | config, |
std::vector< MagBLayer * > | tbl, | ||
std::vector< MagESector * > | tes, | ||
std::vector< MagVolume6Faces * > | tbv, | ||
std::vector< MagVolume6Faces * > | tev | ||
) |
Constructor.
Definition at line 26 of file MagGeometry.cc.
References cacheLastVolume, gather_cfg::cout, verbose::debugOut, geometryVersion, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), Geom::pi(), theBarrelBinFinder, theBLayers, theEndcapBinFinder, and theESectors.
MagGeometry::~MagGeometry | ( | ) |
Destructor.
Definition at line 61 of file MagGeometry.cc.
References theBarrelBinFinder, theBLayers, theEndcapBinFinder, and theESectors.
|
inline |
|
inline |
GlobalVector MagGeometry::fieldInTesla | ( | const GlobalPoint & | gp | ) | const |
Return field vector at the specified global point.
Definition at line 78 of file MagGeometry.cc.
References MagVolume::fieldInTesla(), findVolume(), edm::isNotFinite(), PV3DBase< T, PVType, FrameType >::mag(), and findQualityFiles::v.
Referenced by VolumeBasedMagneticField::inTesla(), and VolumeBasedMagneticField::inTeslaUnchecked().
MagVolume * MagGeometry::findVolume | ( | const GlobalPoint & | gp, |
double | tolerance = 0. |
||
) | const |
Find a volume.
Definition at line 137 of file MagGeometry.cc.
References newFWLiteAna::bin, PeriodicBinFinderInPhi< T >::binIndex(), MagBinFinders::GeneralBinFinderInR< T >::binIndex(), cacheLastVolume, gather_cfg::cout, verbose::debugOut, inBarrel(), MagVolume::inside(), lastVolume, max(), PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), dttmaxenums::R, query::result, theBarrelBinFinder, theBLayers, theEndcapBinFinder, and theESectors.
Referenced by fieldInTesla(), and VolumeBasedMagneticField::findVolume().
|
private |
Definition at line 101 of file MagGeometry.cc.
References gather_cfg::cout, newFWLiteAna::found, inBarrel(), theBVolumes, theEVolumes, and findQualityFiles::v.
|
private |
Definition at line 184 of file MagGeometry.cc.
References geometryVersion, PV3DBase< T, PVType, FrameType >::perp(), dttmaxenums::R, Gflash::Z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by findVolume(), and findVolume1().
|
inline |
Definition at line 47 of file MagGeometry.h.
Referenced by VolumeBasedMagneticField::isZSymmetric().
|
friend |
Definition at line 55 of file MagGeometry.h.
|
private |
Definition at line 75 of file MagGeometry.h.
Referenced by findVolume(), and MagGeometry().
|
private |
Definition at line 76 of file MagGeometry.h.
Referenced by inBarrel(), and MagGeometry().
|
mutableprivate |
Definition at line 63 of file MagGeometry.h.
Referenced by findVolume().
|
private |
Definition at line 72 of file MagGeometry.h.
Referenced by findVolume(), MagGeometry(), and ~MagGeometry().
|
private |
Definition at line 65 of file MagGeometry.h.
Referenced by findVolume(), MagGeometry(), and ~MagGeometry().
|
private |
Definition at line 69 of file MagGeometry.h.
Referenced by barrelVolumes(), and findVolume1().
|
private |
Definition at line 73 of file MagGeometry.h.
Referenced by findVolume(), MagGeometry(), and ~MagGeometry().
|
private |
Definition at line 66 of file MagGeometry.h.
Referenced by findVolume(), MagGeometry(), and ~MagGeometry().
|
private |
Definition at line 70 of file MagGeometry.h.
Referenced by endcapVolumes(), and findVolume1().