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
18
#include "
Framework/DataProcessorSpec.h
"
19
#include "
Framework/Task.h
"
20
#include "
Framework/WorkflowSpec.h
"
21
22
#include "
HMPIDBase/Common.h
"
23
#include "
HMPIDReconstruction/Clusterer.h
"
24
#include "
DataFormatsHMP/Cluster.h
"
25
#include "
DataFormatsHMP/Digit.h
"
26
#include "
DataFormatsHMP/Trigger.h
"
27
#include "
HMPIDBase/Geo.h
"
28
29
#include "TFile.h"
30
#include "TTree.h"
31
32
namespace
o2
33
{
34
namespace
hmpid
35
{
36
37
class
DigitsToClustersTask
:
public
framework::Task
38
{
39
public
:
40
DigitsToClustersTask
() =
default
;
41
~DigitsToClustersTask
()
override
=
default
;
42
void
init
(
framework::InitContext
& ic)
final
;
43
void
run
(
framework::ProcessingContext
& pc)
final
;
44
void
endOfStream
(
framework::EndOfStreamContext
& ec)
override
;
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:
66
o2::framework::DataProcessorSpec
67
getDigitsToClustersSpec
();
68
69
}
// end namespace hmpid
70
}
// end namespace o2
71
72
#endif
Common.h
Cluster.h
Digit.h
Trigger.h
DataProcessorSpec.h
Geo.h
Clusterer.h
Definition of the HMPID cluster finder.
res
uint32_t res
Definition
RawData.h:0
Task.h
WorkflowSpec.h
o2::framework::EndOfStreamContext
Definition
EndOfStreamContext.h:22
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework::Task
Definition
Task.h:32
o2::hmpid::DigitsToClustersTask
Definition
DigitsToClustersSpec.h:38
o2::hmpid::DigitsToClustersTask::init
void init(framework::InitContext &ic) final
Definition
DigitsToClustersSpec.cxx:77
o2::hmpid::DigitsToClustersTask::~DigitsToClustersTask
~DigitsToClustersTask() override=default
o2::hmpid::DigitsToClustersTask::endOfStream
void endOfStream(framework::EndOfStreamContext &ec) override
This is invoked whenever we have an EndOfStream event.
Definition
DigitsToClustersSpec.cxx:126
o2::hmpid::DigitsToClustersTask::DigitsToClustersTask
DigitsToClustersTask()=default
o2::hmpid::DigitsToClustersTask::run
void run(framework::ProcessingContext &pc) final
Definition
DigitsToClustersSpec.cxx:92
o2::hmpid::ExecutionTimer
HMPID Derived class for the Time of Workflows.
Definition
Common.h:34
o2::hmpid::getDigitsToClustersSpec
o2::framework::DataProcessorSpec getDigitsToClustersSpec()
Definition
DigitsToClustersSpec.cxx:136
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
Detectors
HMPID
workflow
include
HMPIDWorkflow
DigitsToClustersSpec.h
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8