Project
Loading...
Searching...
No Matches
TimeFrame.h
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.
15
16#ifndef ALICEO2_TRK_TIMEFRAME_H
17#define ALICEO2_TRK_TIMEFRAME_H
18
23#include <vector>
24#include <unordered_map>
25#include <bitset>
26#include <cstdint>
27
28#include <nlohmann/json.hpp>
29
30class TTree;
31
32namespace o2
33{
34namespace trk
35{
36class Hit;
37class GeometryTGeo;
38
41template <int nLayers = 11>
42class TimeFrame : public o2::its::TimeFrame<nLayers>
43{
44 public:
45 TimeFrame() = default;
46 ~TimeFrame() override = default;
47
50
57 int loadROFsFromHitTree(TTree* hitsTree, GeometryTGeo* gman, const nlohmann::json& config);
58
64 void getPrimaryVerticesFromMC(TTree* mcHeaderTree, int nRofs, Long64_t nEvents, int inROFpileup);
65};
66
67} // namespace trk
68} // namespace o2
69
70#endif // ALICEO2_TRK_TIMEFRAME_H
int loadROFsFromHitTree(TTree *hitsTree, GeometryTGeo *gman, const nlohmann::json &config)
Definition TimeFrame.cxx:30
~TimeFrame() override=default
void getPrimaryVerticesFromMC(TTree *mcHeaderTree, int nRofs, Long64_t nEvents, int inROFpileup)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
const int nEvents
Definition test_Fifo.cxx:27