ATLAS Offline Software
Functions
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 "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>

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

69 {
70  double ptot2 = a.mag2()*b.mag2();
71  return ptot2 <= 0.0 ? 0.0 : std::acos(a.dot(b)/std::sqrt(ptot2));
72 }

◆ magn()

double magn ( GeoTrf::Vector2D &  vector)
inline

Definition at line 74 of file TRTDetectorFactory_Full.cxx.

75 {
76  return std::sqrt(vector.x()*vector.x() + vector.y()*vector.y());
77 }

◆ rotate()

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

Definition at line 58 of file TRTDetectorFactory_Full.cxx.

59 {
60  double s1 = std::sin(angler);
61  double c = std::cos(angler);
62  double xx = vector.x();
63  double yy = vector.y();
64  vector.x() = c*xx - s1*yy;
65  vector.y() = s1*xx + c*yy;
66 }
cmd-l1calo-dq-test.xx
xx
Definition: cmd-l1calo-dq-test.py:16
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:76
a
TList * a
Definition: liststreamerinfos.cxx:10
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
python.compressB64.c
def c
Definition: compressB64.py:93