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_FT0RECONSTRUCTORDPL_H
15#define O2_FT0RECONSTRUCTORDPL_H
16
18#include "Framework/Task.h"
21#include "FT0Base/Geometry.h"
22#include "TStopwatch.h"
24
25using namespace o2::framework;
26
27namespace o2
28{
29namespace ft0
30{
31
32class ReconstructionDPL : public Task
33{
34 static constexpr int NCHANNELS = o2::ft0::Geometry::Nchannels;
35
36 public:
37 ReconstructionDPL(bool useMC, const std::string& ccdbpath, bool useTimeOffsetCalib, bool useSlewingCalib) : mUseMC(useMC), mCCDBpath(ccdbpath), mUseTimeOffsetCalib(useTimeOffsetCalib), mUseSlewingCalib(useSlewingCalib) {}
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 bool mUseTimeOffsetCalib = true;
48 bool mUseSlewingCalib = true;
49 const std::string mCCDBpath = o2::base::NameConf::getCCDBServer();
50 std::vector<o2::ft0::RecPoints> mRecPoints;
51 std::vector<o2::ft0::ChannelDataFloat> mRecChData;
54 TStopwatch mTimer;
55};
56
58framework::DataProcessorSpec getReconstructionSpec(bool useMC = false, const std::string ccdbpath = "http://alice-ccdb.cern.ch", bool useTimeOffsetCalib = true, bool useSlewingCalib = true);
59
60} // namespace ft0
61} // namespace o2
62
63#endif /* O2_FT0RECONSTRUCTORDPL_H */
Definition of the FDD reconstruction.
Definition of the FIT RecPoints class.
Definition of the Names Generator class.
static std::string getCCDBServer()
Definition NameConf.cxx:110
static constexpr int Nchannels
Definition Geometry.h:50
void init(InitContext &ic) final
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void run(ProcessingContext &pc) final
ReconstructionDPL(bool useMC, const std::string &ccdbpath, bool useTimeOffsetCalib, bool useSlewingCalib)
~ReconstructionDPL() override=default
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
constexpr o2::header::DataOrigin gDataOriginFT0
Definition DataHeader.h:566
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getReconstructionSpec(bool useMC=false, const std::string ccdbpath="http://alice-ccdb.cern.ch", bool useTimeOffsetCalib=true, bool useSlewingCalib=true)
create a processor spec
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...