CMS 3D CMS Logo

SiStripClustersSOABase.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiStripCluster_interface_SiStripClustersSOABase_
2 #define DataFormats_SiStripCluster_interface_SiStripClustersSOABase_
3 
5 
6 #include <cstdint>
7 #include <limits>
8 
9 template <template <typename> class T>
11 public:
12  //static constexpr uint32_t kClusterMaxStrips = 16;
13 
14  SiStripClustersSOABase() = default;
15  //explicit SiStripClustersSOABase(uint32_t maxClusters, uint32_t maxStripsPerCluster);
16  virtual ~SiStripClustersSOABase() = default;
17 
22 
24  uint32_t nClusters() const { return nClusters_; }
25 
27  uint32_t maxClusterSize() const { return maxClusterSize_; }
28 
29  const auto& clusterIndex() const { return clusterIndex_; }
30  const auto& clusterSize() const { return clusterSize_; }
31  const auto& clusterADCs() const { return clusterADCs_; }
32  const auto& clusterDetId() const { return clusterDetId_; }
33  const auto& firstStrip() const { return firstStrip_; }
34  const auto& trueCluster() const { return trueCluster_; }
35  const auto& barycenter() const { return barycenter_; }
36  const auto& charge() const { return charge_; }
37 
38  auto& clusterIndex() { return clusterIndex_; }
39  auto& clusterSize() { return clusterSize_; }
40  auto& clusterADCs() { return clusterADCs_; }
41  auto& clusterDetId() { return clusterDetId_; }
42  auto& firstStrip() { return firstStrip_; }
43  auto& trueCluster() { return trueCluster_; }
44  auto& barycenter() { return barycenter_; }
45  auto& charge() { return charge_; }
46 
47 protected:
56  uint32_t nClusters_;
57  uint32_t maxClusterSize_;
58 };
59 #endif
SiStripClustersSOABase & operator=(const SiStripClustersSOABase &)=delete
const auto & clusterSize() const
SiStripClustersSOABase()=default
T< stripgpu::detId_t[]> clusterDetId_
void setMaxClusterSize(uint32_t maxClusterSize)
const auto & clusterIndex() const
const auto & barycenter() const
const auto & firstStrip() const
void setNClusters(uint32_t nClusters)
const auto & trueCluster() const
const auto & charge() const
const auto & clusterADCs() const
virtual ~SiStripClustersSOABase()=default
const auto & clusterDetId() const
long double T
T< stripgpu::stripId_t[]> firstStrip_