Project
Loading...
Searching...
No Matches
LaserTracksCalibrator.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 <fmt/format.h>
13
15
16using namespace o2::tpc;
17
19{
20 mCalibPerSlot.clear();
21}
22
23//______________________________________________________________________________
25{
26 auto& calibLaser = *slot.getContainer();
27 calibLaser.finalize();
28 calibLaser.print();
29
30 mCalibPerSlot.emplace_back(calibLaser.getCalibData());
31}
32
33//______________________________________________________________________________
35{
36 auto& cont = getSlots();
37 auto& slot = front ? cont.emplace_front(tstart, tend) : cont.emplace_back(tstart, tend);
38 slot.setContainer(std::make_unique<CalibLaserTracks>());
39 auto& calibLaser = *slot.getContainer();
40 //calibLaser.setTFtimes(tstart, tend);
41
42 if (mWriteDebug) {
43 calibLaser.setWriteDebugTree(mWriteDebug);
44 calibLaser.setDebugOutputName(fmt::format("CalibLaserTracks_debug_{}_{}.root", tstart, tend));
45 }
46
47 return slot;
48}
time slot calibration using laser tracks
const Container * getContainer() const
Definition TimeSlot.h:53
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
Global TPC definitions and constants.
Definition SimTraits.h:167