CUDADataFormats
HcalRecHitSoA
interface
RecHitCollection.h
Go to the documentation of this file.
1
#ifndef CUDADataFormats_HcalRecHitCollectionSoA_interface_RecHitCollection_h
2
#define CUDADataFormats_HcalRecHitCollectionSoA_interface_RecHitCollection_h
3
4
#include <vector>
5
6
#include "
CUDADataFormats/CaloCommon/interface/Common.h
"
7
#include "
HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
"
8
9
namespace
hcal
{
10
11
template
<
typename
StoragePolicy>
12
struct
RecHitCollection
:
public
::calo::common::AddSize
<typename StoragePolicy::TagType> {
13
RecHitCollection
() =
default
;
14
RecHitCollection
(
const
RecHitCollection
&) =
default
;
15
RecHitCollection
&
operator=
(
const
RecHitCollection
&) =
default
;
16
17
RecHitCollection
(
RecHitCollection
&&) =
default
;
18
RecHitCollection
&
operator=
(
RecHitCollection
&&) =
default
;
19
20
typename
StoragePolicy::template
StorageSelector<float>::type
energy
;
21
typename
StoragePolicy::template
StorageSelector<float>::type
chi2
;
22
typename
StoragePolicy::template
StorageSelector<float>::type
energyM0
;
23
typename
StoragePolicy::template
StorageSelector<float>::type
timeM0
;
24
typename
StoragePolicy::template
StorageSelector<uint32_t>::type
did
;
25
26
template
<
typename
U =
typename
StoragePolicy::TagType>
27
typename
std::enable_if<std::is_same<U, ::calo::common::tags::Vec>::value
,
void
>
::type
resize
(
size_t
size
) {
28
energy
.resize(
size
);
29
chi2
.resize(
size
);
30
energyM0
.resize(
size
);
31
timeM0
.resize(
size
);
32
did
.resize(
size
);
33
}
34
};
35
36
}
// namespace hcal
37
38
#endif // RecoLocalCalo_HcalRecAlgos_interface_RecHitCollection_h
hcal::RecHitCollection::timeM0
StoragePolicy::template StorageSelector< float >::type timeM0
Definition:
RecHitCollection.h:23
hcal::RecHitCollection::resize
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
Definition:
RecHitCollection.h:27
HostAllocator.h
hcal
Definition:
ConfigurationDatabase.cc:13
hcal::RecHitCollection::operator=
RecHitCollection & operator=(const RecHitCollection &)=default
Common.h
calo::common::AddSize
Definition:
Common.h:22
hcal::RecHitCollection::RecHitCollection
RecHitCollection()=default
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
gainCalibHelper::gainCalibPI::type
type
Definition:
SiPixelGainCalibHelper.h:40
svgfig.template
def template(fileName, svg, replaceme="REPLACEME")
Definition:
svgfig.py:521
hcal::RecHitCollection::chi2
StoragePolicy::template StorageSelector< float >::type chi2
Definition:
RecHitCollection.h:21
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
hcal::RecHitCollection::energyM0
StoragePolicy::template StorageSelector< float >::type energyM0
Definition:
RecHitCollection.h:22
hcal::RecHitCollection::did
StoragePolicy::template StorageSelector< uint32_t >::type did
Definition:
RecHitCollection.h:24
hcal::RecHitCollection
Definition:
RecHitCollection.h:12
hcal::RecHitCollection::energy
StoragePolicy::template StorageSelector< float >::type energy
Definition:
RecHitCollection.h:20
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16