MagneticField
GeomBuilder
src
bSlab.h
Go to the documentation of this file.
1
#ifndef bSlab_H
2
#define bSlab_H
3
12
#include "
BaseVolumeHandle.h
"
13
14
#include "
DataFormats/GeometryVector/interface/Phi.h
"
15
16
#include "
MagneticField/VolumeGeometry/interface/MagVolume6Faces.h
"
17
#include "
MagneticField/Layers/interface/MagBSlab.h
"
18
19
class
MagBSlab
;
20
21
namespace
magneticfield
{
22
23
class
bSlab
{
24
public
:
26
bSlab
(handles::const_iterator startIter, handles::const_iterator endIter,
bool
debugVal =
false
);
27
29
~bSlab
() =
default
;
30
32
const
float
RN
()
const
{
return
volumes
.front()->RN(); }
33
35
// FIXME: use volumeHandle [max|min]Phi, which returns phi at median of
36
// phi plane (not absolute limits). Used by: bRod ctor (only for dphi)
37
Geom::Phi<float>
minPhi
()
const
;
38
40
Geom::Phi<float>
maxPhi
()
const
;
41
43
MagBSlab
*
buildMagBSlab
()
const
;
44
45
private
:
46
handles
volumes
;
// pointers to all volumes in the slab
47
mutable
MagBSlab
*
mslab
;
48
bool
debug
;
// Allow assignment
49
};
50
}
// namespace magneticfield
51
52
#endif
Phi.h
magneticfield
Definition:
MagFieldConfig.h:22
MagBSlab
Definition:
MagBSlab.h:23
magneticfield::bSlab::buildMagBSlab
MagBSlab * buildMagBSlab() const
Construct the MagBSlab upon request.
Definition:
bSlab.cc:49
magneticfield::bSlab::minPhi
Geom::Phi< float > minPhi() const
Boundary in phi.
Definition:
bSlab.cc:45
magneticfield::bSlab::mslab
MagBSlab * mslab
Definition:
bSlab.h:47
magneticfield::bSlab
Definition:
bSlab.h:23
magneticfield::handles
std::vector< BaseVolumeHandle * > handles
Definition:
BaseVolumeHandle.h:154
magneticfield::bSlab::~bSlab
~bSlab()=default
Destructor.
magneticfield::bSlab::maxPhi
Geom::Phi< float > maxPhi() const
Boundary in phi.
Definition:
bSlab.cc:47
Geom::Phi< float >
MagBSlab.h
MagVolume6Faces.h
magneticfield::bSlab::bSlab
bSlab(handles::const_iterator startIter, handles::const_iterator endIter, bool debugVal=false)
Constructor from list of volumes.
Definition:
bSlab.cc:19
magneticfield::bSlab::RN
const float RN() const
Distance from center along sector normal.
Definition:
bSlab.h:32
BaseVolumeHandle.h
magneticfield::bSlab::volumes
handles volumes
Definition:
bSlab.h:46
magneticfield::bSlab::debug
bool debug
Definition:
bSlab.h:48
Generated for CMSSW Reference Manual by
1.8.16