Project
Loading...
Searching...
No Matches
ClusterContainer.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
#ifndef _ALICEO2_TPC_ClusterContainer_
15
#define _ALICEO2_TPC_ClusterContainer_
16
17
#include <vector>
18
#include <cassert>
19
#include <Rtypes.h>
// for Float_t etc
20
21
namespace
o2
22
{
23
namespace
tpc
24
{
25
28
class
ClusterContainer
29
{
30
public
:
31
// Initialize the clones array
32
// @param clusterType Possibility to store different types of clusters
33
// void InitArray(const Char_t* clusterType="o2::tpc::Cluster");
34
45
template
<
typename
ClusterType>
46
static
ClusterType*
addCluster
(std::vector<ClusterType>*
output
,
47
Int_t cru, Int_t
row
,
Float_t
qTot,
Float_t
qMax,
48
Float_t
meanpad,
Float_t
meantime,
Float_t
sigmapad,
49
Float_t
sigmatime)
50
{
51
assert(
output
);
52
output
->emplace_back();
// emplace_back a defaut constructed cluster of type ClusterType
53
auto
& cluster =
output
->back();
54
// set its concrete parameters:
55
// ATTENTION: the order of parameters in setParameters is different than in AddCluster!
56
cluster.setParameters(cru,
row
, qTot, qMax,
57
meanpad, sigmapad,
58
meantime, sigmatime);
59
return
&cluster;
60
}
61
};
62
}
// namespace tpc
63
}
// namespace o2
64
65
#endif
output
void output(const std::map< std::string, ChannelStat > &channels)
Definition
rawdump.cxx:197
Float_t
o2::tpc::ClusterContainer
Container class for TPC clusters.
Definition
ClusterContainer.h:29
o2::tpc::ClusterContainer::addCluster
static ClusterType * addCluster(std::vector< ClusterType > *output, Int_t cru, Int_t row, Float_t qTot, Float_t qMax, Float_t meanpad, Float_t meantime, Float_t sigmapad, Float_t sigmatime)
Definition
ClusterContainer.h:46
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
row
std::vector< int > row
Definition
test_ctf_io_itsmft.cxx:48
Detectors
TPC
reconstruction
include
TPCReconstruction
ClusterContainer.h
Generated on Tue Feb 25 2025 23:16:28 for Project by
1.9.8