CMS 3D CMS Logo

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 
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 
19 
25 
26  template <typename U = typename StoragePolicy::TagType>
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
size
Write out results.
StoragePolicy::template StorageSelector< float >::type chi2
StoragePolicy::template StorageSelector< uint32_t >::type did
StoragePolicy::template StorageSelector< float >::type energy
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
RecHitCollection & operator=(const RecHitCollection &)=default
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
StoragePolicy::template StorageSelector< float >::type timeM0
StoragePolicy::template StorageSelector< float >::type energyM0