Project
Loading...
Searching...
No Matches
EventVertex.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/Controller.h"
18#include "Align/EventVertex.h"
21#include "Framework/Logger.h"
22#include <TMath.h>
23
24using namespace TMath;
25
26namespace o2
27{
28namespace align
29{
30
31//_________________________________________________________
33{
34 // def c-tor
36 setFreeDOFPattern(BIT(kDOFTX) | BIT(kDOFTY) | BIT(kDOFTZ));
37 //
38}
39
40//____________________________________________
42{
43 // T2L matrix for vertex needs to be adjusted for every track
44 // in order to have X axis along the track direction.
45 // This method assumes that the mAlp was already set accordingly
46 // fX is fixed to 0
47 //
48 mMatT2L.Clear();
49 mMatT2L.RotateZ(mAlp * RadToDeg());
50 // mMatT2L.MultiplyLeft(&getMatrixL2GIdeal().Inverse()); L2G=I !!!
51 //
52}
53
54//____________________________________________
55void EventVertex::applyCorrection(double* vtx) const
56{
57 // apply eventual correction to supplied vertex position
58 vtx[kDOFTX] += getParVal(kDOFTX);
59 vtx[kDOFTY] += getParVal(kDOFTY);
60 vtx[kDOFTZ] += getParVal(kDOFTZ);
61 //
62}
63
64} // namespace align
65} // namespace o2
Base class for detector: wrapper for set of volumes.
Meausered point in the sensor.
Steering class for the global alignment.
Special fake "sensor" for event vertex.
void setFreeDOFPattern(uint32_t pat)
float getParVal(int par) const
Definition DOFSet.h:39
void prepareMatrixT2L() final
void applyCorrection(double *vtx) const
void align(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...