Project
Loading...
Searching...
No Matches
Clusterer.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
15#ifndef ALICEO2_TPC_Clusterer_H_
16#define ALICEO2_TPC_Clusterer_H_
17
18#include <vector>
19#include <memory>
20
23
24#include "TPCBase/CalDet.h"
25
26namespace o2
27{
28namespace tpc
29{
30
31class Digit;
32
36{
37 public:
39 Clusterer() = default;
40
42 virtual ~Clusterer() = default;
43
45 Clusterer(Clusterer const& other) = default;
46
50 virtual void process(gsl::span<o2::tpc::Digit const> const& digits, o2::dataformats::ConstMCLabelContainerView const& mcDigitTruth) = 0;
51 virtual void finishProcess(gsl::span<o2::tpc::Digit const> const& digits, o2::dataformats::ConstMCLabelContainerView const& mcDigitTruth) = 0;
52
55 void setNoiseObject(CalDet<float>* noiseObject);
56
59 void setPedestalObject(CalDet<float>* pedestalObject);
60
61 protected:
64};
65
67{
68 mNoiseObject = noiseObject;
69}
70
71inline void Clusterer::setPedestalObject(CalDet<float>* pedestalObject)
72{
73 mPedestalObject = pedestalObject;
74}
75} // namespace tpc
76} // namespace o2
77
78#endif
A const (ready only) version of MCTruthContainer.
Base Class for TPC clusterer.
Definition Clusterer.h:36
void setNoiseObject(CalDet< float > *noiseObject)
Definition Clusterer.h:66
CalDet< float > * mPedestalObject
Pointer to the CalDet object for the pedestal subtraction.
Definition Clusterer.h:63
CalDet< float > * mNoiseObject
Pointer to the CalDet object for noise simulation.
Definition Clusterer.h:62
void setPedestalObject(CalDet< float > *pedestalObject)
Definition Clusterer.h:71
virtual void finishProcess(gsl::span< o2::tpc::Digit const > const &digits, o2::dataformats::ConstMCLabelContainerView const &mcDigitTruth)=0
Clusterer(Clusterer const &other)=default
Copy constructor.
virtual void process(gsl::span< o2::tpc::Digit const > const &digits, o2::dataformats::ConstMCLabelContainerView const &mcDigitTruth)=0
Clusterer()=default
Default Constructor.
virtual ~Clusterer()=default
Destructor.
o2::cpv::Digit Digit
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other
std::vector< Digit > digits