ATLAS Offline Software
Loading...
Searching...
No Matches
TRTDetectorFactory_Full.cxx File Reference
#include "TRTDetectorFactory_Full.h"
#include "TRT_DetDescrDB_ParameterInterface.h"
#include "TRT_ReadoutGeometry/TRT_Numerology.h"
#include "TRT_ReadoutGeometry/TRT_BarrelDescriptor.h"
#include "TRT_ReadoutGeometry/TRT_BarrelElement.h"
#include "TRT_ReadoutGeometry/TRT_EndcapDescriptor.h"
#include "TRT_ReadoutGeometry/TRT_EndcapElement.h"
#include "TRT_ConditionsData/StrawStatus.h"
#include "InDetReadoutGeometry/Version.h"
#include "ReadoutGeometryBase/InDetDD_Defs.h"
#include "InDetIdentifier/TRT_ID.h"
#include "ArrayFunction.h"
#include "InDetGeoModelUtils/ExtraMaterial.h"
#include "InDetGeoModelUtils/InDetDDAthenaComps.h"
#include "InDetGeoModelUtils/GeoNodePtr.h"
#include "GeoModelKernel/GeoTube.h"
#include "GeoModelKernel/GeoTrd.h"
#include "GeoModelKernel/GeoLogVol.h"
#include "GeoModelKernel/GeoNameTag.h"
#include "GeoModelKernel/GeoPhysVol.h"
#include "GeoModelKernel/GeoFullPhysVol.h"
#include "GeoModelKernel/GeoTransform.h"
#include "GeoModelKernel/GeoAlignableTransform.h"
#include "GeoModelKernel/GeoSerialDenominator.h"
#include "GeoModelKernel/GeoSerialTransformer.h"
#include "GeoModelKernel/GeoShapeShift.h"
#include "GeoModelKernel/GeoShapeUnion.h"
#include "GeoModelKernel/GeoIdentifierTag.h"
#include "GeoModelKernel/GeoSerialIdentifier.h"
#include "GeoModelKernel/GeoMaterial.h"
#include "GeoModelKernel/GeoDefinitions.h"
#include "GeoModelKernel/Units.h"
#include "GeoGenericFunctions/AbsFunction.h"
#include "GeoGenericFunctions/Variable.h"
#include "GeoGenericFunctions/Sin.h"
#include "GeoGenericFunctions/Cos.h"
#include "StoreGate/StoreGateSvc.h"
#include <vector>
#include <sstream>
#include <cmath>
#include <format>
#include <fstream>

Go to the source code of this file.

Functions

void rotate (double angler, GeoTrf::Vector2D &vector)
double angle (const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
double magn (GeoTrf::Vector2D &vector)

Function Documentation

◆ angle()

double angle ( const GeoTrf::Vector2D & a,
const GeoTrf::Vector2D & b )
inline

Definition at line 71 of file TRTDetectorFactory_Full.cxx.

72{
73 double ptot2 = a.mag2()*b.mag2();
74 return ptot2 <= 0.0 ? 0.0 : std::acos(a.dot(b)/std::sqrt(ptot2));
75}
static Double_t a

◆ magn()

double magn ( GeoTrf::Vector2D & vector)
inline

Definition at line 77 of file TRTDetectorFactory_Full.cxx.

78{
79 return std::sqrt(vector.x()*vector.x() + vector.y()*vector.y());
80}

◆ rotate()

void rotate ( double angler,
GeoTrf::Vector2D & vector )
inline

Definition at line 61 of file TRTDetectorFactory_Full.cxx.

62{
63 double s1 = std::sin(angler);
64 double c = std::cos(angler);
65 double xx = vector.x();
66 double yy = vector.y();
67 vector.x() = c*xx - s1*yy;
68 vector.y() = s1*xx + c*yy;
69}