-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronise with CMSSW_11_3_X_2021-01-14-2300
- Loading branch information
Showing
97 changed files
with
11,027 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<use name="CUDADataFormats/Common"/> | ||
<use name="CUDADataFormats/CaloCommon"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="HeterogeneousCore/CUDAUtilities"/> | ||
|
||
<export> | ||
<lib name="1"/> | ||
</export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef CUDADataFormats_EcalDigi_interface_DigisCollection_h | ||
#define CUDADataFormats_EcalDigi_interface_DigisCollection_h | ||
|
||
#include "CUDADataFormats/CaloCommon/interface/Common.h" | ||
|
||
namespace ecal { | ||
|
||
template <typename StoragePolicy> | ||
struct DigisCollection : public ::calo::common::AddSize<typename StoragePolicy::TagType> { | ||
DigisCollection() = default; | ||
DigisCollection(DigisCollection const &) = default; | ||
DigisCollection &operator=(DigisCollection const &) = default; | ||
|
||
DigisCollection(DigisCollection &&) = default; | ||
DigisCollection &operator=(DigisCollection &&) = default; | ||
|
||
// stride is statically known | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type ids; | ||
typename StoragePolicy::template StorageSelector<uint16_t>::type data; | ||
}; | ||
|
||
} // namespace ecal | ||
|
||
#endif // CUDADataFormats_EcalDigi_interface_DigisCollection_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "CUDADataFormats/Common/interface/Product.h" | ||
#include "CUDADataFormats/EcalDigi/interface/DigisCollection.h" | ||
#include "DataFormats/Common/interface/Wrapper.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<lcgdict> | ||
<class name="cms::cuda::Product<ecal::DigisCollection<calo::common::ViewStoragePolicy>>" persistent="false" /> | ||
<class name="cms::cuda::Product<ecal::DigisCollection<calo::common::DevStoragePolicy>>" persistent="false" /> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::DigisCollection<calo::common::ViewStoragePolicy>>>" persistent="false"/> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::DigisCollection<calo::common::DevStoragePolicy>>>" persistent="false"/> | ||
</lcgdict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<use name="cuda"/> | ||
<use name="CUDADataFormats/Common"/> | ||
<use name="CUDADataFormats/CaloCommon"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/EcalDigi"/> | ||
<use name="HeterogeneousCore/CUDAUtilities"/> | ||
|
||
<export> | ||
<lib name="1"/> | ||
</export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef CUDADataFormats_EcalRecHitSoA_interface_EcalRecHit_h | ||
#define CUDADataFormats_EcalRecHitSoA_interface_EcalRecHit_h | ||
|
||
#include <array> | ||
#include <vector> | ||
|
||
#include "CUDADataFormats/CaloCommon/interface/Common.h" | ||
#include "CUDADataFormats/EcalRecHitSoA/interface/RecoTypes.h" | ||
#include "HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h" | ||
|
||
namespace ecal { | ||
|
||
template <typename StoragePolicy> | ||
struct RecHit : public ::calo::common::AddSize<typename StoragePolicy::TagType> { | ||
RecHit() = default; | ||
RecHit(const RecHit&) = default; | ||
RecHit& operator=(const RecHit&) = default; | ||
|
||
RecHit(RecHit&&) = default; | ||
RecHit& operator=(RecHit&&) = default; | ||
|
||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type energy; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type time; | ||
// should we remove the following, since already included in "extra" ? | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type chi2; | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type | ||
extra; // packed uint32_t for timeError, chi2, energyError | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type | ||
flagBits; // store rechit condition (see Flags enum) in a bit-wise way | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type did; | ||
|
||
template <typename U = typename StoragePolicy::TagType> | ||
typename std::enable_if<std::is_same<U, ::calo::common::tags::Vec>::value, void>::type resize(size_t size) { | ||
energy.resize(size); | ||
time.resize(size); | ||
chi2.resize(size); | ||
extra.resize(size); | ||
flagBits.resize(size); | ||
did.resize(size); | ||
} | ||
}; | ||
|
||
} // namespace ecal | ||
|
||
#endif // CUDADataFormats_EcalRecHitSoA_interface_EcalRecHit_h |
46 changes: 46 additions & 0 deletions
46
CUDADataFormats/EcalRecHitSoA/interface/EcalUncalibratedRecHit.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#ifndef CUDADataFormats_EcalRecHitSoA_interface_EcalUncalibratedRecHit_h | ||
#define CUDADataFormats_EcalRecHitSoA_interface_EcalUncalibratedRecHit_h | ||
|
||
#include <array> | ||
#include <vector> | ||
|
||
#include "CUDADataFormats/CaloCommon/interface/Common.h" | ||
#include "CUDADataFormats/EcalRecHitSoA/interface/RecoTypes.h" | ||
#include "DataFormats/EcalDigi/interface/EcalDataFrame.h" | ||
|
||
namespace ecal { | ||
|
||
template <typename StoragePolicy> | ||
struct UncalibratedRecHit : public ::calo::common::AddSize<typename StoragePolicy::TagType> { | ||
UncalibratedRecHit() = default; | ||
UncalibratedRecHit(const UncalibratedRecHit&) = default; | ||
UncalibratedRecHit& operator=(const UncalibratedRecHit&) = default; | ||
|
||
UncalibratedRecHit(UncalibratedRecHit&&) = default; | ||
UncalibratedRecHit& operator=(UncalibratedRecHit&&) = default; | ||
|
||
typename StoragePolicy::template StorageSelector<reco::ComputationScalarType>::type amplitudesAll; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type amplitude; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type chi2; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type pedestal; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type jitter; | ||
typename StoragePolicy::template StorageSelector<reco::StorageScalarType>::type jitterError; | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type did; | ||
typename StoragePolicy::template StorageSelector<uint32_t>::type flags; | ||
|
||
template <typename U = typename StoragePolicy::TagType> | ||
typename std::enable_if<std::is_same<U, ::calo::common::tags::Vec>::value, void>::type resize(size_t size) { | ||
amplitudesAll.resize(size * EcalDataFrame::MAXSAMPLES); | ||
amplitude.resize(size); | ||
pedestal.resize(size); | ||
chi2.resize(size); | ||
did.resize(size); | ||
flags.resize(size); | ||
jitter.resize(size); | ||
jitterError.resize(size); | ||
} | ||
}; | ||
|
||
} // namespace ecal | ||
|
||
#endif // CUDADataFormats_EcalRecHitSoA_interface_EcalUncalibratedRecHit_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef CUDADataFormats_EcalRecHitSoA_interface_RecoTypes_h | ||
#define CUDADataFormats_EcalRecHitSoA_interface_RecoTypes_h | ||
|
||
namespace ecal { | ||
namespace reco { | ||
|
||
using ComputationScalarType = float; | ||
using StorageScalarType = float; | ||
|
||
} // namespace reco | ||
} // namespace ecal | ||
|
||
#endif // CUDADataFormats_EcalRecHitSoA_interface_RecoTypes_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CUDADataFormats/Common/interface/Product.h" | ||
#include "CUDADataFormats/EcalRecHitSoA/interface/EcalRecHit.h" | ||
#include "CUDADataFormats/EcalRecHitSoA/interface/EcalUncalibratedRecHit.h" | ||
#include "DataFormats/Common/interface/Wrapper.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<lcgdict> | ||
<class name="cms::cuda::Product<ecal::UncalibratedRecHit<calo::common::ViewStoragePolicy>>" persistent="false"/> | ||
<class name="cms::cuda::Product<ecal::UncalibratedRecHit<calo::common::DevStoragePolicy>>" persistent="false"/> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::UncalibratedRecHit<calo::common::ViewStoragePolicy>>>" persistent="false"/> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::UncalibratedRecHit<calo::common::DevStoragePolicy>>>" persistent="false"/> | ||
|
||
<class name="cms::cuda::Product<ecal::RecHit<calo::common::ViewStoragePolicy>>" persistent="false"/> | ||
<class name="cms::cuda::Product<ecal::RecHit<calo::common::DevStoragePolicy>>" persistent="false"/> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::RecHit<calo::common::ViewStoragePolicy>>>" persistent="false"/> | ||
<class name="edm::Wrapper<cms::cuda::Product<ecal::RecHit<calo::common::DevStoragePolicy>>>" persistent="false"/> | ||
|
||
<class name="ecal::UncalibratedRecHit<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false"/> | ||
<class name="edm::Wrapper<ecal::UncalibratedRecHit<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false"/> | ||
<class name="ecal::RecHit<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>" persistent="false"/> | ||
<class name="edm::Wrapper<ecal::RecHit<calo::common::VecStoragePolicy<calo::common::CUDAHostAllocatorAlias>>>" persistent="false"/> | ||
<class name="ecal::UncalibratedRecHit<calo::common::VecStoragePolicy<std::allocator>>" persistent="false"/> | ||
<class name="edm::Wrapper<ecal::UncalibratedRecHit<calo::common::VecStoragePolicy<std::allocator>>>" persistent="false"/> | ||
<class name="ecal::RecHit<calo::common::VecStoragePolicy<std::allocator>>" persistent="false"/> | ||
<class name="edm::Wrapper<ecal::RecHit<calo::common::VecStoragePolicy<std::allocator>>>" persistent="false"/> | ||
</lcgdict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<bin name="makeEcalRaw2DigiGpuValidationPlots" file="makeEcalRaw2DigiGpuValidationPlots.cpp"> | ||
<use name="root"/> | ||
<use name="rootgraphics"/> | ||
<use name="DataFormats/Common"/> | ||
<use name="DataFormats/EcalDigi"/> | ||
<use name="DataFormats/EcalDetId"/> | ||
</bin> |
Oops, something went wrong.