Project
Loading...
Searching...
No Matches
TRDEventDisplayFeedSpec.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
12#include <gsl/span>
13
14#include "TRDBase/Geometry.h"
16
17#include "Framework/Task.h"
19
24
25#include "ITStracking/json.h"
26
28
29namespace o2
30{
31namespace trd
32{
33
35{
36 public:
37 TRDEventDisplayFeedSpec(int nEventsMax) : mNeventsMax(nEventsMax){};
38 ~TRDEventDisplayFeedSpec() override = default;
39 void init(o2::framework::InitContext& ic) override;
40 void run(o2::framework::ProcessingContext& pc) override;
41 json getTracksJson(gsl::span<const TrackTRD> tracks, gsl::span<const Tracklet64> tracklets, gsl::span<const TrackTriggerRecord> trackTrigRecs, int iEvent);
42 json getTrackletsJson(gsl::span<const Tracklet64> tracklets, int iEvent);
43 void writeDigits(gsl::span<const Digit> digits, int iEvent);
44
45 private:
46 TrackletTransformer mTransformer;
48
49 std::map<std::string, std::string> mTrackletMap;
50 std::bitset<constants::MAXCHAMBER> mUsedDetectors;
51 gsl::span<const TriggerRecord> mTrigRecs;
52
53 float mBz;
54 int mNeventsMax;
55};
56
58
59} // end namespace trd
60} // end namespace o2
Wrapper container for different reconstructed object types.
~TRDEventDisplayFeedSpec() override=default
json getTrackletsJson(gsl::span< const Tracklet64 > tracklets, int iEvent)
json getTracksJson(gsl::span< const TrackTRD > tracks, gsl::span< const Tracklet64 > tracklets, gsl::span< const TrackTriggerRecord > trackTrigRecs, int iEvent)
void run(o2::framework::ProcessingContext &pc) override
void init(o2::framework::InitContext &ic) override
basic_json<> json
default JSON class
Definition json.h:120
o2::framework::DataProcessorSpec getTRDEventDisplayFeedSpec(int nEventsMax)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
void writeDigits()
std::vector< Digit > digits
std::vector< Tracklet64 > tracklets