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
17
18namespace o2::its3
19{
20
22{
24 static bool initOnceDone = false;
25 if (!initOnceDone) { // this params need to be queried only once
26 initOnceDone = true;
27 pc.inputs().get<o2::its3::TopologyDictionary*>("cldict"); // just to trigger the finaliseCCDB
29 if (pc.inputs().getPos("itsTGeo") >= 0) {
30 pc.inputs().get<o2::its::GeometryTGeo*>("itsTGeo");
31 }
32 auto geom = its::GeometryTGeo::Instance();
35 }
36}
37
39{
41 return;
42 }
43 if (matcher == framework::ConcreteDataMatcher("IT3", "CLUSDICT", 0)) {
44 LOG(info) << "cluster dictionary updated";
46 return;
47 }
48 if (matcher == framework::ConcreteDataMatcher("ITS", "ALPIDEPARAM", 0)) {
49 LOG(info) << "Alpide param updated";
51 par.printKeyValues();
52 return;
53 }
54 if (matcher == framework::ConcreteDataMatcher("GLO", "MEANVERTEX", 0)) {
55 LOGP(info, "Mean vertex acquired");
57 return;
58 }
59 if (matcher == framework::ConcreteDataMatcher("ITS", "GEOMTGEO", 0)) {
60 LOG(info) << "ITS GeometryTGeo loaded from ccdb";
62 return;
63 }
64}
65
66void ITS3TrackingInterface::loadROF(gsl::span<itsmft::ROFRecord>& trackROFspan,
67 gsl::span<const itsmft::CompClusterExt> clusters,
68 gsl::span<const unsigned char>::iterator& pattIt,
70{
71 ioutils::loadROFrameDataITS3(mTimeFrame, trackROFspan, clusters, pattIt, mDict, mcLabels);
72}
73
74} // namespace o2::its3
Helper for geometry and GRP related CCDB requests.
Definition of the GeometryTGeo class.
void checkUpdates(o2::framework::ProcessingContext &pc)
static GRPGeomHelper & instance()
A container to hold and manage MC truth information/labels.
int getPos(const char *name) const
decltype(auto) get(R binding, int part=0) const
InputRecord & inputs()
The inputs associated with this processing context.
void finaliseCCDB(framework::ConcreteDataMatcher &matcher, void *obj) final
void updateTimeDependentParams(framework::ProcessingContext &pc) final
void setClusterDictionary(const o2::its3::TopologyDictionary *d)
void loadROF(gsl::span< itsmft::ROFRecord > &trackROFspan, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const dataformats::MCTruthContainer< MCCompLabel > *mcLabels) final
static GeometryTGeo * Instance()
static void adopt(GeometryTGeo *raw, bool canDelete=false)
void setMeanVertex(const o2::dataformats::MeanVertexObject *v)
void getConfiguration(framework::ProcessingContext &pc)
int loadROFrameDataITS3(its::TimeFrame *tf, gsl::span< o2::itsmft::ROFRecord > rofs, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const its3::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *mcLabels=nullptr)
Definition IOUtils.cxx:61
static constexpr int T2L
Definition Cartesian.h:55
static constexpr int T2GRot
Definition Cartesian.h:57
static constexpr int T2G
Definition Cartesian.h:56
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< Cluster > clusters