Project
Loading...
Searching...
No Matches
DigitsWriterSpec.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_DIGITSTOROOTSPEC_H_
20#define DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_DIGITSTOROOTSPEC_H_
21
22#include "TTree.h"
23#include "TFile.h"
24
26#include "Framework/Task.h"
27
28#include "HMPIDBase/Common.h"
32
34
35namespace o2
36{
37namespace hmpid
38{
39
41{
42 public:
43 DigitsToRootTask() = default;
44 ~DigitsToRootTask() override = default;
45 void init(framework::InitContext& ic) final;
46 void run(framework::ProcessingContext& pc) final;
48
49 private:
50 ExecutionTimer mExTimer;
51 std::vector<o2::hmpid::Trigger> mTriggers;
52 std::vector<o2::hmpid::Digit> mDigits;
53 TFile* mfileOut;
54 TTree* mTheTree;
55 std::string mOutRootFileName;
56};
57
58o2::framework::DataProcessorSpec getDigitsToRootSpec(std::string inputSpec = "HMP/DIGITS");
59
60} // end namespace hmpid
61} // end namespace o2
62
63#endif
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
~DigitsToRootTask() override=default
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
o2::framework::DataProcessorSpec getDigitsToRootSpec(std::string inputSpec="HMP/DIGITS")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...