Project
Loading...
Searching...
No Matches
FITIntegrateClusterWriterSpec.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
12#ifndef O2_FIT_FITINTEGRATECLUSTERWRITER_SPEC
13#define O2_FIT_FITINTEGRATECLUSTERWRITER_SPEC
14
15#include <vector>
16#include <boost/algorithm/string.hpp>
21
22using namespace o2::framework;
23
24namespace o2
25{
26namespace fit
27{
28template <typename T>
30
31template <typename DataT>
33{
35
36 const std::string treeFile = fmt::format("o2currents_{}.root", FitType::getName());
37 const std::string treeName = FitType::getName();
38 return MakeRootTreeWriterSpec(fmt::format("{}-currents-writer", FitType::getName()).data(),
39 treeFile.data(),
40 treeName.data(),
41 BranchDefinition<typename DataDescriptionFITCurrents<DataT>::DataTStruct>{InputSpec{"ifitc", FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Timeframe}, "IFITC", 1},
42 BranchDefinition<o2::dataformats::TFIDInfo>{InputSpec{"tfID", FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Timeframe}, "tfID", 1})();
43}
44
45} // end namespace fit
46} // end namespace o2
47
48#endif
Configurable generator for RootTreeWriter processor spec.
Generate a processor spec for the RootTreeWriter utility.
GLboolean * data
Definition glcorearb.h:298
DataProcessorSpec getFITIntegrateClusterWriterSpec()
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
TFitResultPtr fit(const size_t nBins, const T *arr, const T xMin, const T xMax, TF1 &func, std::string_view option="")
Definition fit.h:59
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...