10 const std::vector<LayerSetIndex> *layerSetIndices,
11 const std::vector<std::string> *layerNames,
12 const std::vector<const DetLayer *> *layerDets)
13 : nlayers_(nlayers), layerSetIndices_(layerSetIndices), layerNames_(layerNames), layerDets_(layerDets) {
22 <<
"SeedingLayerSetsHits::addHits() must be called in the order of the layers, got layer " << layerIndex
36 ret.reserve(end - begin);
45 ss <<
"SeedingLayerSetsHits with " <<
numberOfLayersInSet() <<
" layers in each LayerSets, LayerSets has " <<
size()
48 ss <<
" " << iLayers <<
": ";
50 for (
unsigned iLayer = 0; iLayer < layers.
size(); ++iLayer) {
52 ss << layer.
name() <<
" (" << layer.
index() <<
", nhits " << layer.
hits().size() <<
") ";
56 LogDebug(
"SeedingLayerSetsHits") << ss.str();
const_iterator end() const
LayerSetIndex size() const
Number of layers in this set.
tuple ret
prodAgent to be discontinued
unsigned short numberOfLayersInSet() const
Get number of layers in each SeedingLayerSets.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
void addHits(LayerIndex layerIndex, OwnedHits &&hits)
unsigned short LayerSetIndex
const_iterator begin() const
constexpr std::array< uint8_t, layerIndexSize > layer
SeedingLayerSetsHits()=default
Hits hits(LayerIndex layerIndex) const
SeedingLayerSet operator[](LayerSetIndex index) const
Get the SeedingLayerSet at a given index.
const std::string & name() const
std::vector< ConstRecHitPointer > Hits
unsigned short LayerIndex
std::vector< HitIndex > layerHitIndices_
std::vector< HitPointer > OwnedHits
unsigned short size() const
Get the number of SeedingLayerSets.