Project
Loading...
Searching...
No Matches
ReconstructionSpec.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
13
14#ifndef O2_FV0RECONSTRUCTORDPL_H
15#define O2_FV0RECONSTRUCTORDPL_H
16
18#include "Framework/Task.h"
21#include "FV0Base/Constants.h"
22#include "TStopwatch.h"
24
25using namespace o2::framework;
26
27namespace o2
28{
29namespace fv0
30{
31
32class ReconstructionDPL : public Task
33{
34 static constexpr int NCHANNELS = o2::fv0::Constants::nFv0Channels;
35
36 public:
37 ReconstructionDPL(bool useMC, const std::string ccdbpath) : mUseMC(useMC), mCCDBpath(ccdbpath) {}
38 ~ReconstructionDPL() override = default;
39 void init(InitContext& ic) final;
40 void run(ProcessingContext& pc) final;
42 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
43
44 private:
45 bool mUseMC = false;
46 bool mUpdateCCDB = true;
47 const std::string mCCDBpath = o2::base::NameConf::getCCDBServer();
48 std::vector<o2::fv0::RecPoints> mRecPoints;
49 std::vector<o2::fv0::ChannelDataFloat> mRecChData;
52 TStopwatch mTimer;
53};
54
56framework::DataProcessorSpec getReconstructionSpec(bool useMC = false, const std::string ccdbpath = "http://alice-ccdb.cern.ch");
57
58} // namespace fv0
59} // namespace o2
60
61#endif /* O2_FV0RECONSTRUCTORDPL_H */
Definition of the FV0 reconstruction task.
General constants in FV0.
Definition of the FV0 RecPoints class.
Definition of the Names Generator class.
static std::string getCCDBServer()
Definition NameConf.cxx:110
ReconstructionDPL(bool useMC, const std::string ccdbpath)
void run(ProcessingContext &pc) final
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
void init(InitContext &ic) final
~ReconstructionDPL() override=default
constexpr o2::header::DataOrigin gDataOriginFV0
Definition DataHeader.h:567
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getReconstructionSpec(bool useMC=false, const std::string ccdbpath="http://alice-ccdb.cern.ch")
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static constexpr int nFv0Channels
Definition Constants.h:32