Project
Loading...
Searching...
No Matches
VertexReaderSpec.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
13
14#ifndef O2_ITS_VERTEXREADER
15#define O2_ITS_VERTEXREADER
16
17#include "TFile.h"
18#include "TTree.h"
19
21#include "Framework/Task.h"
24
25namespace o2
26{
27namespace its
28{
29// read ITS vertices from the output tree of ITS tracking
30
32{
34
35 public:
36 VertexReader() = default;
37 ~VertexReader() override = default;
38 void init(o2::framework::InitContext& ic) final;
40
41 protected:
42 void connectTree(const std::string& filename);
43 void accumulate();
44
45 std::vector<o2::itsmft::ROFRecord> mVerticesROFRec, *mVerticesROFRecPtr = &mVerticesROFRec;
46 std::vector<Vertex> mVertices, *mVerticesPtr = &mVertices;
47
49
50 std::unique_ptr<TFile> mFile;
51 std::unique_ptr<TTree> mTree;
52 std::string mFileName = "";
53 std::string mVertexTreeName = "o2sim";
54 std::string mVertexBranchName = "Vertices";
55 std::string mVertexROFBranchName = "VerticesROF";
56};
57
61
62} // namespace its
63} // namespace o2
64
65#endif /* O2_ITS_VERTEXREADER */
Definition of the ITSMFT ROFrame (trigger) record.
void connectTree(const std::string &filename)
~VertexReader() override=default
std::unique_ptr< TFile > mFile
std::string mVertexROFBranchName
std::vector< Vertex > * mVerticesPtr
std::unique_ptr< TTree > mTree
void init(o2::framework::InitContext &ic) final
std::vector< Vertex > mVertices
std::vector< o2::itsmft::ROFRecord > mVerticesROFRec
void run(o2::framework::ProcessingContext &pc) final
o2::header::DataOrigin mOrigin
std::vector< o2::itsmft::ROFRecord > * mVerticesROFRecPtr
constexpr o2::header::DataOrigin gDataOriginITS
Definition DataHeader.h:570
o2::framework::DataProcessorSpec getITSVertexReaderSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string filename()