Project
Loading...
Searching...
No Matches
DigitsToRawSpec.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#ifndef _HMPID_DIGITS_TO_RAW_SPEC_H_
13#define _HMPID_DIGITS_TO_RAW_SPEC_H_
14
15#include <vector>
17#include "Framework/Task.h"
20
21#include "HMPIDBase/Common.h"
25
26namespace o2
27{
28namespace hmpid
29{
30
32{
33 public:
34 DigitsToRawSpec() = default;
35 ~DigitsToRawSpec() override = default;
36 void init(framework::InitContext& ic) final;
37 void run(framework::ProcessingContext& pc) final;
39
40 private:
41 void readRootFile();
42 std::string mBaseFileName = "";
43 std::string mDirectoryName = "";
44 std::string mBaseRootFileName = "";
45 bool mSkipEmpty = false;
46 bool mDumpDigits = false;
47 std::string mFileFor = "all";
48 bool mFastAlgorithm;
49
50 std::vector<o2::hmpid::Digit> mDigits;
51 long mDigitsReceived;
52 int mEventsReceived;
53 HmpidCoder2* mCod;
54 ExecutionTimer mExTimer;
55 TTree* mDigTree;
56};
57
59
60} // end namespace hmpid
61} // end namespace o2
62
63#endif
Utility class to write detectors data to (multiple) raw data file(s) respecting CRU format.
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
void run(framework::ProcessingContext &pc) final
void init(framework::InitContext &ic) final
~DigitsToRawSpec() override=default
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
o2::framework::DataProcessorSpec getDigitsToRawSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...