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_EMCAL_STANDALONEAODPRODUCERSPEC_SPEC
16#define O2_EMCAL_STANDALONEAODPRODUCERSPEC_SPEC
17
21#include "Framework/Task.h"
23#include <TStopwatch.h>
24
25namespace o2
26{
27namespace emcal
28{
29
31{
32 public:
34 ~StandaloneAODProducerSpec() override = default;
36 void init(o2::framework::InitContext& ic) final;
38
39 static const char* getCellBinding() { return "EMCCells"; }
40 static const char* getCellTriggerRecordBinding() { return "EMCCellsTrgR"; }
41
42 private:
43 int64_t mTFNumber = -1; // Timeframe ID
44 int mRunNumber = -1; // Run number
45 uint32_t mCaloAmp = 0xFFFFFF00; // 15 bits
46 uint32_t mCaloTime = 0xFFFFFF00; // 15 bits
47 o2::emcal::EventHandler<o2::emcal::Cell>* mCaloEventHandler = nullptr;
48 TStopwatch mTimer;
49
50 static const char* BININGCELLS;
51 static const char* BINDINGCELLSTRG;
52};
53
56
57} // namespace emcal
58} // namespace o2
59
60#endif
Handler for EMCAL event data.
void run(o2::framework::ProcessingContext &pc) final
~StandaloneAODProducerSpec() override=default
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(o2::framework::InitContext &ic) final
framework::DataProcessorSpec getStandaloneAODProducerSpec()
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...