Project
Loading...
Searching...
No Matches
DumpDigitsSpec.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
18
19#ifndef DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_DUMPDIGITSPEC_H_
20#define DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_DUMPDIGITSPEC_H_
21
23#include "Framework/Task.h"
24
25#include "HMPIDBase/Common.h"
27
28namespace o2
29{
30namespace hmpid
31{
32
34{
35 public:
36 DumpDigitsTask() = default;
37 ~DumpDigitsTask() override = default;
38 void init(framework::InitContext& ic) final;
39 void run(framework::ProcessingContext& pc) final;
41
42 private:
43 bool mPrintDigits = false;
44 bool mIsOutputOnFile = false;
45 std::string mOutputFileName = "";
46 std::ofstream mOsFile;
47
48 int mOrbit;
49 int mBc;
50 long mDigitsReceived;
51
52 ExecutionTimer mExTimer;
53};
54
55o2::framework::DataProcessorSpec getDumpDigitsSpec(std::string inputSpec = "HMP/DIGITS");
56
57} // end namespace hmpid
58} // end namespace o2
59
60#endif
void init(framework::InitContext &ic) final
void run(framework::ProcessingContext &pc) final
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
~DumpDigitsTask() override=default
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
o2::framework::DataProcessorSpec getDumpDigitsSpec(std::string inputSpec="HMP/DIGITS")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...