Project
Loading...
Searching...
No Matches
IOUtils.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 O2_MFT_IOUTILS_H_
17#define O2_MFT_IOUTILS_H_
18
19#include <iosfwd>
20#include <string>
21#include <unordered_map>
22#include <vector>
23#include <gsl/gsl>
24
25#include "MFTTracking/Tracker.h"
26#include "MFTTracking/ROframe.h"
30
31namespace o2
32{
33
34class MCCompLabel;
35
36namespace dataformats
37{
38template <typename T>
40}
41
42namespace itsmft
43{
44class Cluster;
45class CompClusterExt;
46class TopologyDictionary;
47} // namespace itsmft
48
49namespace mft
50{
51
52namespace ioutils
53{
58
59template <typename T>
60int loadROFrameData(const o2::itsmft::ROFRecord& rof, ROframe<T>& events, gsl::span<const itsmft::CompClusterExt> clusters,
61 gsl::span<const unsigned char>::iterator& pattIt, const itsmft::TopologyDictionary* dict,
62 const dataformats::MCTruthContainer<MCCompLabel>* mClsLabels = nullptr, const o2::mft::Tracker<T>* tracker = nullptr);
63
64template <typename T>
65int loadROFrameData(const o2::itsmft::ROFRecord& rof, ROframe<T>& events, gsl::span<const itsmft::CompClusterExt> clusters,
66 gsl::span<const unsigned char>::iterator& pattIt, const itsmft::TopologyDictionary* dict,
69
70void convertCompactClusters(gsl::span<const itsmft::CompClusterExt> clusters,
71 gsl::span<const unsigned char>::iterator& pattIt,
72 std::vector<o2::BaseCluster<float>>& output,
73 const itsmft::TopologyDictionary* dict);
74} // namespace ioutils
75} // namespace mft
76} // namespace o2
77
78#endif /* O2_MFT_IOUTILS_H_ */
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char events
Definition of the ITSMFT ROFrame (trigger) record.
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
The main container for the standalone track finding within a read-out-frame.
Definition of the SegmentationAlpide class.
HMPID cluster implementation.
Definition Cluster.h:27
static constexpr float PitchCol
static constexpr float PitchRow
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition glcorearb.h:1308
void convertCompactClusters(gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, std::vector< o2::BaseCluster< float > > &output, const itsmft::TopologyDictionary *dict)
convert compact clusters to 3D spacepoints into std::vector<o2::BaseCluster<float>>
Definition IOUtils.cxx:111
constexpr float DefClusErrorCol
Definition IOUtils.h:55
constexpr float DefClusError2Col
Definition IOUtils.h:57
constexpr float DefClusError2Row
Definition IOUtils.h:56
int loadROFrameData(const o2::itsmft::ROFRecord &rof, ROframe< T > &events, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const itsmft::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *mClsLabels=nullptr, const o2::mft::Tracker< T > *tracker=nullptr)
Definition IOUtils.cxx:148
constexpr float DefClusErrorRow
Definition IOUtils.h:54
std::function< bool(const ROFRecord &)> ROFFilter
Definition Tracker.h:40
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Cluster > clusters