Project
Loading...
Searching...
No Matches
AlignableSensorTPC.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
15
18#include "Align/utils.h"
19#include "Framework/Logger.h"
21
22namespace o2
23{
24namespace align
25{
26using namespace o2::align::utils;
27using namespace TMath;
28
29//_________________________________________________________
30AlignableSensorTPC::AlignableSensorTPC(const char* name, int vid, int iid, int isec, Controller* ctr) : AlignableSensor(name, vid, iid, ctr), mSector(isec)
31{
32 // def c-tor
33}
34
35//____________________________________________
37{
38 double alp = math_utils::detail::sector2Angle<float>(mSector % 18);
39 TGeoHMatrix m;
40 m.RotateZ(alp * RadToDeg());
42}
43
44//____________________________________________
46{
47 double alp = math_utils::detail::sector2Angle<float>(mSector % 18);
48 TGeoHMatrix m;
49 m.RotateZ(alp * RadToDeg());
51}
52
53//____________________________________________
55{
56 // local and tracking matrices are the same
57 double alp = math_utils::detail::sector2Angle<float>(mSector % 18);
58 mAlp = alp;
59 TGeoHMatrix m;
61 //
62}
63
64} // namespace align
65} // namespace o2
TPC detector wrapper.
TPC fake sensor (sector)
Meausered point in the sensor.
Collection of auxillary methods.
void prepareMatrixL2G(bool reco=false) final
void setMatrixL2GIdeal(const TGeoHMatrix &m)
void setMatrixL2GReco(const TGeoHMatrix &m)
void setMatrixL2G(const TGeoHMatrix &m)
void setMatrixT2L(const TGeoHMatrix &m)
const GLfloat * m
Definition glcorearb.h:4066
GLuint const GLchar * name
Definition glcorearb.h:781
void align(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...