Project
Loading...
Searching...
No Matches
DigitsToClustersSpec.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 DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_DIGITSTOCLUSTERSPEC_H_
16#define DETECTORS_HMPID_WORKFLOW_INCLUDE_HMPIDWORKFLOW_DIGITSTOCLUSTERSPEC_H_
17
19#include "Framework/Task.h"
21
22#include "HMPIDBase/Common.h"
27#include "HMPIDBase/Geo.h"
28
29#include "TFile.h"
30#include "TTree.h"
31
32namespace o2
33{
34namespace hmpid
35{
36
38{
39 public:
41 ~DigitsToClustersTask() override = default;
42 void init(framework::InitContext& ic) final;
43 void run(framework::ProcessingContext& pc) final;
45
46 private:
47 bool mReadFile = false;
48 std::string mSigmaCutPar;
49 float mSigmaCut[7] = {4, 4, 4, 4, 4, 4, 4};
50
51 std::unique_ptr<TFile> mFile;
52 std::unique_ptr<TTree> mTree;
53
54 std::unique_ptr<o2::hmpid::Clusterer> mRec; // ef: changed to smart-pointer
55 long mDigitsReceived;
56 long mClustersReceived;
57
58 void initFileIn(const std::string& fileName);
59
60 ExecutionTimer mExTimer;
61 void strToFloatsSplit(std::string s, std::string delimiter, float* res,
62 int maxElem = 7);
63};
64
65// ef : read from stream by default:
68
69} // end namespace hmpid
70} // end namespace o2
71
72#endif
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
Definition of the HMPID cluster finder.
uint32_t res
Definition RawData.h:0
void init(framework::InitContext &ic) final
~DigitsToClustersTask() override=default
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
void run(framework::ProcessingContext &pc) final
HMPID Derived class for the Time of Workflows.
Definition Common.h:34
o2::framework::DataProcessorSpec getDigitsToClustersSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...