1 #ifndef FASTSIM_BARRELSIMPLIFIEDGEOMETRY_H 2 #define FASTSIM_BARRELSIMPLIFIEDGEOMETRY_H 71 return getThickness(position) / (fabs(momentum.X() * position.X() + momentum.Y() * position.Y()) / (momentum.P() *
std::sqrt(position.X() * position.X() + position.Y() * position.Y())));
const double getMagneticFieldZ(const math::XYZTLorentzVector &position) const override
Return magnetic field (field only has Z component!) on the barrel layer.
Implementation of a generic detector layer (base class for forward/barrel layers).
std::unique_ptr< TH1F > magneticFieldHist_
Histogram that stores the size of the magnetic field along the layer.
Implementation of a barrel detector layer (cylindrical).
BarrelSimplifiedGeometry(double radius)
Constructor.
std::unique_ptr< TH1F > thicknessHist_
Histogram that stores the tickness (radLengths) along the layer.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
const double getThickness(const math::XYZTLorentzVector &position) const override
Return thickness of the barrel layer at a given position.
static int position[264][3]
~BarrelSimplifiedGeometry()
Default destructor.
bool isForward() const override
Returns false since class for barrel layer.
const double getRadius() const
Return radius of the barrel layer.
double geomProperty_
Geometric property of the layer: radius (barrel layer) / position z (forward layer) ...
const double getThickness(const math::XYZTLorentzVector &position, const math::XYZTLorentzVector &momentum) const override
Return thickness of the barrel layer at a given position, also considering the incident angle...