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
18#include "Align/utils.h"
20#include "Framework/Logger.h"
22//#include "AliTrackPointArray.h"
23//#include "AliESDtrack.h"
24
26
27using namespace o2::align::utils;
28using namespace TMath;
29
30namespace o2
31{
32namespace align
33{
34
35//_________________________________________________________
36AlignableSensorTOF::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//____________________________________________
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
Wrapper for TOF detector.
ClassImp(o2::align::AlignableSensorTOF)
Meausered point in the sensor.
Collection of auxillary methods.
const TGeoHMatrix & getMatrixL2GIdeal() const
void setMatrixT2L(const TGeoHMatrix &m)
GLuint const GLchar * name
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...