Project
Loading...
Searching...
No Matches
StandaloneAODProducerSpec.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
14
15#ifndef O2_PHOS_STANDALONEAODPRODUCERSPEC_SPEC
16#define O2_PHOS_STANDALONEAODPRODUCERSPEC_SPEC
17
21#include "Framework/Task.h"
22#include <TStopwatch.h>
23
24namespace o2
25{
26namespace phos
27{
28
30{
31 public:
33 ~StandaloneAODProducerSpec() override = default;
35 void init(o2::framework::InitContext& ic) final;
37
38 private:
39 int64_t mTFNumber = -1; // Timeframe ID
40 int mRunNumber = -1; // Run number
41 uint32_t mCaloAmp = 0xFFFFFF00; // 15 bits
42 uint32_t mCaloTime = 0xFFFFFF00; // 15 bits
43 TStopwatch mTimer;
44};
45
48
49} // namespace phos
50} // namespace o2
51
52#endif
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
~StandaloneAODProducerSpec() override=default
void init(o2::framework::InitContext &ic) final
void run(o2::framework::ProcessingContext &pc) final
framework::DataProcessorSpec getPHOSStandaloneAODProducerSpec()
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...