10 const std::vector<LayerSetIndex> *layerSetIndices,
11 const std::vector<std::string> *layerNames,
12 const std::vector<const DetLayer *> *layerDets):
14 layerSetIndices_(layerSetIndices),
15 layerNames_(layerNames),
27 throw cms::Exception(
"Assert") <<
"SeedingLayerSetsHits::addHits() must be called in the order of the layers, got layer " << layerIndex <<
" while was expecting " <<
layerHitIndices_.size();
40 ret.reserve(end-begin);
48 ss <<
"SeedingLayerSetsHits with " <<
numberOfLayersInSet() <<
" layers in each LayerSets, LayerSets has " <<
size() <<
" items\n";
50 ss <<
" " << iLayers <<
": ";
52 for(
unsigned iLayer=0; iLayer<layers.
size(); ++iLayer) {
54 ss << layer.
name() <<
" (" << layer.
index() <<
", nhits " << layer.
hits().size() <<
") ";
58 LogDebug(
"SeedingLayerSetsHits") << ss.str();
const_iterator end() const
LayerSetIndex size() const
Number of layers in this set.
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
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.