Project
Loading...
Searching...
No Matches
TrackingInterface.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
12#include "ITS3Base/SpecsV2.h"
18
19namespace o2::its3
20{
21
22void ITS3TrackingInterface::overrideParameters(std::vector<o2::its::TrackingParameters>& t, std::vector<o2::its::VertexingParameters>& v)
23{
24 // only override IB radii
25 for (auto& tt : t) {
26 tt.LayerRadii[0] = constants::radii[0];
27 tt.LayerRadii[1] = constants::radii[1];
28 tt.LayerRadii[2] = constants::radii[2];
29 }
30 for (auto& vv : v) {
31 vv.LayerRadii[0] = constants::radii[0];
32 vv.LayerRadii[1] = constants::radii[1];
33 vv.LayerRadii[2] = constants::radii[2];
34 }
35}
36
38{
39 pc.inputs().get<o2::its3::TopologyDictionary*>("itscldict"); // just to trigger the finaliseCCDB
40}
41
43{
45 return;
46 }
47 if (matcher == framework::ConcreteDataMatcher("IT3", "CLUSDICT", 0)) {
48 LOG(info) << "cluster dictionary updated";
50 return;
51 }
52 if (matcher == framework::ConcreteDataMatcher("ITS", "ALPIDEPARAM", 0)) {
53 LOG(info) << "Alpide param updated";
55 par.printKeyValues();
56 return;
57 }
58 if (matcher == framework::ConcreteDataMatcher("GLO", "MEANVERTEX", 0)) {
59 LOGP(info, "Mean vertex acquired");
61 return;
62 }
63 if (matcher == framework::ConcreteDataMatcher("ITS", "GEOMTGEO", 0)) {
64 LOG(info) << "ITS GeometryTGeo loaded from ccdb";
66 return;
67 }
68}
69
70void ITS3TrackingInterface::loadROF(gsl::span<const itsmft::ROFRecord>& trackROFspan,
71 gsl::span<const itsmft::CompClusterExt> clusters,
72 gsl::span<const unsigned char>::iterator& pattIt,
73 int layer,
75{
76 ioutils::loadROFrameDataITS3(mTimeFrame, trackROFspan, clusters, pattIt, mDict, layer, mcLabels);
77}
78
79} // namespace o2::its3
Helper for geometry and GRP related CCDB requests.
Definition of the GeometryTGeo class.
static GRPGeomHelper & instance()
A container to hold and manage MC truth information/labels.
decltype(auto) get(R binding, int part=0) const
InputRecord & inputs()
The inputs associated with this processing context.
void loadROF(gsl::span< const itsmft::ROFRecord > &trackROFspan, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, int layer, const dataformats::MCTruthContainer< MCCompLabel > *mcLabels) final
void finaliseCCDB(framework::ConcreteDataMatcher &matcher, void *obj) final
void setClusterDictionary(const o2::its3::TopologyDictionary *d)
void requestTopologyDictionary(framework::ProcessingContext &pc) final
void overrideParameters(std::vector< o2::its::TrackingParameters > &t, std::vector< o2::its::VertexingParameters > &v) final
static void adopt(GeometryTGeo *raw, bool canDelete=false)
void setMeanVertex(const o2::dataformats::MeanVertexObject *v)
const GLdouble * v
Definition glcorearb.h:832
GLenum GLuint GLint GLint layer
Definition glcorearb.h:1310
constexpr std::array< double, nLayers > radii
Definition SpecsV2.h:134
int loadROFrameDataITS3(its::TimeFrame< 7 > *tf, gsl::span< const o2::itsmft::ROFRecord > rofs, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const o2::its3::TopologyDictionary *dict, int layer, const dataformats::MCTruthContainer< MCCompLabel > *mcLabels=nullptr)
Definition IOUtils.cxx:59
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< Cluster > clusters