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 GeometryTGeo;
37
40template <int nLayers = 11>
41class TimeFrame : public o2::its::TimeFrame<nLayers>
42{
43 public:
44 TimeFrame() = default;
45 ~TimeFrame() override = default;
46
49
56 int loadROFsFromHitTree(TTree* hitsTree, GeometryTGeo* gman, const nlohmann::json& config);
57
63 void getPrimaryVerticesFromMC(TTree* mcHeaderTree, int nRofs, Long64_t nEvents, int inROFpileup);
64};
65
66} // namespace trk
67} // namespace o2
68
69#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