ATLAS Offline Software
Functions
TRTDetectorFactory_Full.cxx File Reference
#include "GeoPrimitives/GeoPrimitives.h"
#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 "InDetReadoutGeometry/Version.h"
#include "ReadoutGeometryBase/InDetDD_Defs.h"
#include "IdDictDetDescr/IdDictManager.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/GeoElement.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 "AthenaPoolUtilities/CondAttrListCollection.h"
#include "DetDescrConditions/AlignableTransformContainer.h"
#include "StoreGate/StoreGateSvc.h"
#include <vector>
#include <sstream>
#include <cmath>

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 73 of file TRTDetectorFactory_Full.cxx.

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

◆ magn()

double magn ( GeoTrf::Vector2D &  vector)
inline

Definition at line 79 of file TRTDetectorFactory_Full.cxx.

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

◆ rotate()

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

Definition at line 63 of file TRTDetectorFactory_Full.cxx.

64 {
65  double s1 = std::sin(angler);
66  double c = std::cos(angler);
67  double xx = vector.x();
68  double yy = vector.y();
69  vector.x() = c*xx - s1*yy;
70  vector.y() = s1*xx + c*yy;
71 }
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
PlotCalibFromCool.yy
yy
Definition: PlotCalibFromCool.py:714
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
python.compressB64.c
def c
Definition: compressB64.py:93