-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathTimeFrame.h
More file actions
69 lines (58 loc) · 2.26 KB
/
TimeFrame.h
File metadata and controls
69 lines (58 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file TimeFrame.h
/// \brief TRK TimeFrame class derived from ITS TimeFrame
///
#ifndef ALICEO2_TRK_TIMEFRAME_H
#define ALICEO2_TRK_TIMEFRAME_H
#include "ITStracking/TimeFrame.h"
#include "ITStracking/Constants.h"
#include "ITStracking/Configuration.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include <vector>
#include <unordered_map>
#include <bitset>
#include <cstdint>
#include <nlohmann/json.hpp>
class TTree;
namespace o2
{
namespace trk
{
class GeometryTGeo;
/// TRK TimeFrame class that extends ITS TimeFrame functionality
/// This allows for customization of tracking algorithms specific to the TRK detector
template <int nLayers = 11>
class TimeFrame : public o2::its::TimeFrame<nLayers>
{
public:
TimeFrame() = default;
~TimeFrame() override = default;
/// Override methods if needed for TRK-specific behavior
/// For now, we inherit all functionality from ITS TimeFrame
/// Process hits from TTree to initialize ROFs
/// \param hitsTree Tree containing TRK hits
/// \param mcHeaderTree Tree containing MC event headers
/// \param nEvents Number of events to process
/// \param gman TRK geometry manager instance
/// \param config Configuration parameters for hit reconstruction
int loadROFsFromHitTree(TTree* hitsTree, GeometryTGeo* gman, const nlohmann::json& config);
/// Add primary vertices from MC headers for each ROF
/// \param mcHeaderTree Tree containing MC event headers
/// \param nRofs Number of ROFs (Read-Out Frames)
/// \param nEvents Number of events to process
/// \param inROFpileup Number of events per ROF
void getPrimaryVerticesFromMC(TTree* mcHeaderTree, int nRofs, Long64_t nEvents, int inROFpileup);
};
} // namespace trk
} // namespace o2
#endif // ALICEO2_TRK_TIMEFRAME_H