Project
Loading...
Searching...
No Matches
AlignableSensorTOF.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
16
17
#include "
Align/AlignableSensorTOF.h
"
18
#include "
Align/utils.h
"
19
#include "
Align/AlignableDetectorTOF.h
"
20
#include "
Framework/Logger.h
"
21
#include "
Align/AlignmentPoint.h
"
22
//#include "AliTrackPointArray.h"
23
//#include "AliESDtrack.h"
24
25
ClassImp
(
o2::align::AlignableSensorTOF
);
26
27
using namespace
o2::align::utils
;
28
using namespace
TMath;
29
30
namespace
o2
31
{
32
namespace
align
33
{
34
35
//_________________________________________________________
36
AlignableSensorTOF::AlignableSensorTOF
(
const
char
*
name
,
int
vid,
int
iid,
int
isec,
Controller
* ctr) :
AlignableSensor
(
name
, vid, iid, ctr), mSector(isec)
37
{
38
// def c-tor
39
}
40
41
//____________________________________________
42
void
AlignableSensorTOF::prepareMatrixT2L
()
43
{
44
// extract from geometry T2L matrix
45
double
alp = math_utils::detail::sector2Angle<float>(
mSector
);
46
mAlp
= alp;
47
TGeoHMatrix t2l;
48
double
loc[3] = {0, 0, 0}, glo[3];
49
getMatrixL2GIdeal
().LocalToMaster(loc, glo);
50
mX
=
Sqrt
(glo[0] * glo[0] + glo[1] * glo[1]);
51
t2l.RotateZ(alp * RadToDeg());
52
const
TGeoHMatrix l2gi =
getMatrixL2GIdeal
().Inverse();
53
t2l.MultiplyLeft(&l2gi);
54
setMatrixT2L
(t2l);
55
//
56
}
57
58
}
// namespace align
59
}
// namespace o2
AlignableDetectorTOF.h
Wrapper for TOF detector.
ClassImp
ClassImp(o2::align::AlignableSensorTOF)
AlignableSensorTOF.h
TOF sensor.
AlignmentPoint.h
Meausered point in the sensor.
utils.h
Collection of auxillary methods.
Logger.h
o2::align::AlignableSensorTOF
Definition
AlignableSensorTOF.h:33
o2::align::AlignableSensorTOF::prepareMatrixT2L
void prepareMatrixT2L() final
Definition
AlignableSensorTOF.cxx:42
o2::align::AlignableSensorTOF::AlignableSensorTOF
AlignableSensorTOF()=default
o2::align::AlignableSensorTOF::mSector
uint8_t mSector
Definition
AlignableSensorTOF.h:46
o2::align::AlignableSensor
Definition
AlignableSensor.h:36
o2::align::AlignableVolume::mAlp
double mAlp
Definition
AlignableVolume.h:229
o2::align::AlignableVolume::mX
double mX
Definition
AlignableVolume.h:228
o2::align::AlignableVolume::getMatrixL2GIdeal
const TGeoHMatrix & getMatrixL2GIdeal() const
Definition
AlignableVolume.h:154
o2::align::AlignableVolume::setMatrixT2L
void setMatrixT2L(const TGeoHMatrix &m)
Definition
AlignableVolume.h:163
o2::align::Controller
Definition
Controller.h:91
name
GLuint const GLchar * name
Definition
glcorearb.h:781
o2::align::utils
Definition
utils.h:37
o2::framework::Sqrt
@ Sqrt
Definition
BasicOps.h:34
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
Align
src
AlignableSensorTOF.cxx
Generated on Tue Feb 25 2025 22:50:36 for Project by
1.9.8