|
|
Go to the documentation of this file.
24 : cacheIdentifierTrackerRecoGeometry_(0),
25 cacheIdentifierIdealMagneticField_(0),
26 geometricSearchTracker_(nullptr),
27 magneticField_(nullptr),
28 useFixedMagneticFieldZ_(
cfg.exists(
"magneticFieldZ")),
29 fixedMagneticFieldZ_(
cfg.getUntrackedParameter<double>(
"magneticFieldZ", 0.)),
30 useTrackerRecoGeometryRecord_(
cfg.getUntrackedParameter<
bool>(
"useTrackerRecoGeometryRecord",
true)),
31 trackerAlignmentLabel_(
cfg.getUntrackedParameter<
std::
string>(
"trackerAlignmentLabel",
"")),
34 maxRadius_(
cfg.getUntrackedParameter<double>(
"maxRadius", 500.)),
35 maxZ_(
cfg.getUntrackedParameter<double>(
"maxZ", 1200.)),
36 barrelBoundary_(
cfg.exists(
"trackerBarrelBoundary"))
38 forwardBoundary_(
cfg.exists(
"trackerForwardBoundary"))
40 trackerBarrelBoundaryCfg_(barrelBoundary_
44 trackerForwardBoundaryCfg_(forwardBoundary_
50 const std::map<std::string, fastsim::InteractionModel*>& interactionModelMap) {
110 <<
"barrel layers must be ordered according to increading radius"
111 <<
"\nbarrel layer " <<
index <<
" has radius smaller than or equal to radius of barrel layer " <<
index - 1
147 <<
"forward layers must be ordered according to increasing z"
148 <<
"forward layer " <<
index <<
" has z smaller than or equal to z of forward layer " <<
index - 1;
160 <<
"\n# fastsim::Geometry"
161 <<
"\n## BarrelLayers:";
162 for (
const auto& layer :
geometry.barrelLayers_) {
163 os <<
"\n " << *layer << layer->getInteractionModels().size() <<
" interaction models";
165 os <<
"\n## ForwardLayers:";
166 for (
const auto& layer :
geometry.forwardLayers_) {
167 os <<
"\n " << *layer << layer->getInteractionModels().size() <<
" interaction models";
169 os <<
"\n-----------";
std::unique_ptr< ForwardSimplifiedGeometry > createForwardSimplifiedGeometry(LayerType type, const edm::ParameterSet &cfg) const
Helper method for createSimplifiedGeometry(..) to create a forward layer (ForwardSimplifiedGeometry).
const edm::ParameterSet trackerBarrelBoundaryCfg_
Hack to interface "old" calo to "new" tracking.
Definition the tracker geometry (vectors of forward/barrel layers).
const MagneticField * magneticField_
The tracker geometry.
const edm::ParameterSet trackerForwardBoundaryCfg_
Hack to interface "old" calo to "new" tracking.
const bool forwardBoundary_
Hack to interface "old" calo to "new" tracking.
unsigned long long cacheIdentifierIdealMagneticField_
Check interval of validity of the magnetic field.
const std::string trackerAlignmentLabel_
The tracker alignment label.
unsigned long long cacheIdentifierTrackerRecoGeometry_
Check interval of validity of the tracker geometry.
std::unique_ptr< MagneticField > ownedMagneticField_
Needed to create a uniform magnetic field if speciefied in config.
std::vector< std::unique_ptr< BarrelSimplifiedGeometry > > barrelLayers_
The vector of barrel layers (increasing radius)
const double fixedMagneticFieldZ_
Use a uniform magnetic field or non-uniform from MagneticFieldRecord.
Constructs a tracker layer according to entry in python config (incl interaction models).
Geometry(const edm::ParameterSet &cfg)
Constructor.
const std::vector< edm::ParameterSet > barrelLayerCfg_
The config in which all parameters of the barrel layers are defined.
std::unique_ptr< BarrelSimplifiedGeometry > createBarrelSimplifiedGeometry(const edm::ParameterSet &cfg) const
Helper method for createSimplifiedGeometry(..) to create a barrel layer (BarrelSimplifiedGeometry).
~Geometry()
Default destructor.
double getMagneticFieldZ(const math::XYZTLorentzVector &position) const
Initializes the tracker geometry.
const double maxZ_
Upper bound of the radius of the whole tracker geometry.
const bool barrelBoundary_
Upper bound of the length/2 (0 to +Z) of the whole tracker geometry.
Global3DPoint GlobalPoint
const bool useTrackerRecoGeometryRecord_
Use GeometricSearchTracker (active layers/reco geometry). Can be used to get position/radius of track...
std::ostream & operator<<(std::ostream &os, const fastsim::Geometry &geometry)
static int position[264][3]
const GeometricSearchTracker * geometricSearchTracker_
std::vector< std::unique_ptr< ForwardSimplifiedGeometry > > forwardLayers_
The vector of forward layers (increasing Z-position)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
unsigned long long cacheIdentifier() const
const std::vector< edm::ParameterSet > forwardLayerCfg_
The config in which all parameters of the forward layers are defined.
const bool useFixedMagneticFieldZ_
Needed to create a uniform magnetic field if speciefied in config.
void update(const edm::EventSetup &iSetup, const std::map< std::string, InteractionModel * > &interactionModelMap)
Initializes the tracker geometry.