Project
Loading...
Searching...
No Matches
WriteRawFileSpec.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 DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_WRITERAWFROMDIGITS_H_
13#define DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_WRITERAWFROMDIGITS_H_
14
15#include <vector>
17#include "Framework/Task.h"
19#include "HMPIDBase/Common.h"
23
24namespace o2
25{
26namespace hmpid
27{
28
30{
31 public:
32 WriteRawFileTask() = default;
33 ~WriteRawFileTask() override = default;
34 void init(framework::InitContext& ic) final;
35 void run(framework::ProcessingContext& pc) final;
37
38 private:
39 // static bool eventEquipPadsComparision(o2::hmpid::Digit d1, o2::hmpid::Digit d2);
40 std::string mBaseFileName = "";
41 std::vector<o2::hmpid::Digit> mDigits;
42 std::vector<o2::hmpid::Trigger> mEvents;
43 bool mSkipEmpty = false;
44 bool mFixedPacketLenght = false;
45 bool mOrderTheEvents = true;
46 long mDigitsReceived;
47 long mFramesReceived;
48 bool mIsTheStremClosed = false;
49 HmpidCoder2* mCod;
50
51 ExecutionTimer mExTimer;
52};
53
54o2::framework::DataProcessorSpec getWriteRawFileSpec(std::string inputSpec = "HMP/DIGITS");
55
56} // end namespace hmpid
57} // end namespace o2
58
59#endif
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
void init(framework::InitContext &ic) final
void run(framework::ProcessingContext &pc) final
~WriteRawFileTask() override=default
o2::framework::DataProcessorSpec getWriteRawFileSpec(std::string inputSpec="HMP/DIGITS")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...