Project
Loading...
Searching...
No Matches
TrivialVertexer.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.
11
14#ifndef ALICEO2_ITS_TRIVIALVERTEXER_H
15#define ALICEO2_ITS_TRIVIALVERTEXER_H
16
17#include <array>
18
19#include "Rtypes.h" // for TrivialVertexer::Class, Double_t, ClassDef, etc
20
21class TFile;
22class TTree;
24
25namespace o2
26{
27namespace itsmft
28{
29class Cluster;
30}
31} // namespace o2
32
33namespace o2
34{
35class MCCompLabel;
36namespace dataformats
37{
38template <typename T>
40}
41namespace its
42{
44{
46 using Label = o2::MCCompLabel;
47
48 public:
51
54
55 Bool_t openInputFile(const Char_t*);
56
57 void process(const std::vector<Cluster>& clusters, std::vector<std::array<Double_t, 3>>& vertices);
59
60 private:
61 const o2::dataformats::MCTruthContainer<o2::MCCompLabel>* mClsLabels = nullptr; // Cluster MC labels
62
63 TFile* mFile = nullptr;
64 TTree* mTree = nullptr;
65 FairMCEventHeader* mHeader = nullptr;
66};
67} // namespace its
68} // namespace o2
69
70#endif /* ALICEO2_ITS_TRIVIALVERTEXER_H */
HMPID cluster implementation.
Definition Cluster.h:27
TrivialVertexer(const TrivialVertexer &)=delete
void setMCTruthContainer(const o2::dataformats::MCTruthContainer< o2::MCCompLabel > *truth)
TrivialVertexer & operator=(const TrivialVertexer &)=delete
Bool_t openInputFile(const Char_t *)
Cluster class for the ITSMFT.
Definition Cluster.h:34
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Cluster > clusters