Project
Loading...
Searching...
No Matches
RawToDigitsSpec.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 STEER_DIGITIZERWORKFLOW_SRC_HMPDIGITWRITERSPEC_H_
13#define STEER_DIGITIZERWORKFLOW_SRC_HMPDIGITWRITERSPEC_H_
14
17#include "Framework/Task.h"
18#include "Framework/InputSpec.h"
19
22#include "HMPIDBase/Common.h"
28
29namespace o2
30{
31namespace hmpid
32{
33
35{
36 public:
37 RawToDigitsTask() = default;
38 ~RawToDigitsTask() override = default;
39 void init(framework::InitContext& ic) final;
40 void run(framework::ProcessingContext& pc) final;
42
43 private:
44 void writeResults();
45 void parseNoTF();
46
47 // static bool eventEquipPadsComparision(o2::hmpid::Digit d1, o2::hmpid::Digit d2);
48 std::string mBaseFileName = "";
49 std::string mInputRawFileName = "";
50 std::string mOutRootFileName = "";
51
54 std::vector<o2::hmpid::Digit> mAccumulateDigits;
55 std::vector<o2::hmpid::Trigger> mEvents;
56
57 long mDigitsReceived;
58 long mFramesReceived;
59 long mTotalDigits;
60 long mTotalFrames;
61 bool mFastAlgorithm;
62
63 ExecutionTimer mExTimer;
64};
65
66o2::framework::DataProcessorSpec getRawToDigitsSpec(std::string inputSpec = "HMP/RAWDATA");
67
68} // end namespace hmpid
69} // end namespace o2
70
71#endif /* STEER_DIGITIZERWORKFLOW_SRC_HMPIDDIGITWRITERSPEC_H_ */
Definition of a container to keep Monte Carlo truth external to simulation objects.
Configurable generator for RootTreeWriter processor spec.
Reader for (multiple) raw data files.
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
~RawToDigitsTask() override=default
void init(framework::InitContext &ic) final
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
void run(framework::ProcessingContext &pc) final
o2::framework::DataProcessorSpec getRawToDigitsSpec(std::string inputSpec="HMP/RAWDATA")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...