#include <SeedingLayerSetsHits.h>
Classes | |
class | const_iterator |
class | SeedingLayer |
class | SeedingLayerSet |
Public Types | |
typedef TransientTrackingRecHit::ConstRecHitPointer | ConstRecHitPointer |
typedef unsigned int | HitIndex |
typedef std::vector < ConstRecHitPointer > | Hits |
typedef unsigned short | LayerIndex |
typedef unsigned short | LayerSetIndex |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_iterator | end () const |
unsigned short | numberOfLayersInSet () const |
Get number of layers in each SeedingLayerSets. More... | |
SeedingLayerSet | operator[] (LayerSetIndex index) const |
Get the SeedingLayerSet at a given index. More... | |
void | print () const |
SeedingLayerSetsHits () | |
SeedingLayerSetsHits (unsigned short nlayers, const std::vector< LayerSetIndex > *layerSetIndices, const std::vector< std::string > *layerNames, const std::vector< const DetLayer * > &layerDets) | |
unsigned short | size () const |
Get the number of SeedingLayerSets. More... | |
void | swap (SeedingLayerSetsHits &other) |
void | swapHits (std::vector< HitIndex > &layerHitIndices, Hits &hits) |
~SeedingLayerSetsHits () | |
Private Member Functions | |
Hits | hits (LayerIndex layerIndex) const |
Private Attributes | |
std::vector< const DetLayer * > | layerDets_ |
std::vector< HitIndex > | layerHitIndices_ |
const std::vector< std::string > * | layerNames_ |
const std::vector < LayerSetIndex > * | layerSetIndices_ |
unsigned short | nlayers_ |
Number of layers in a SeedingLayerSet. More... | |
std::vector< ConstRecHitPointer > | rechits_ |
Class to store TransientTrackingRecHits, names, and DetLayer pointers of each ctfseeding::SeedingLayer as they come from SeedingLayerSetsBuilder.
In contrast to ctfseeding::SeedingLayerSets, this class requires that all contained SeedingLayerSets have the same number of layers in each set.
This class was created in part for SeedingLayer getByToken migration, and in part as a performance improvement.
Definition at line 24 of file SeedingLayerSetsHits.h.
Definition at line 26 of file SeedingLayerSetsHits.h.
typedef unsigned int SeedingLayerSetsHits::HitIndex |
Definition at line 31 of file SeedingLayerSetsHits.h.
typedef std::vector<ConstRecHitPointer> SeedingLayerSetsHits::Hits |
Definition at line 27 of file SeedingLayerSetsHits.h.
typedef unsigned short SeedingLayerSetsHits::LayerIndex |
Definition at line 30 of file SeedingLayerSetsHits.h.
typedef unsigned short SeedingLayerSetsHits::LayerSetIndex |
Definition at line 29 of file SeedingLayerSetsHits.h.
SeedingLayerSetsHits::SeedingLayerSetsHits | ( | ) |
Definition at line 9 of file SeedingLayerSetsHits.cc.
SeedingLayerSetsHits::SeedingLayerSetsHits | ( | unsigned short | nlayers, |
const std::vector< LayerSetIndex > * | layerSetIndices, | ||
const std::vector< std::string > * | layerNames, | ||
const std::vector< const DetLayer * > & | layerDets | ||
) |
Constructor.
nlayers | Number of layers in each SeedingLayerSet |
layerSetIndices | Pointer to a vector holding the indices of layer sets (pointer to vector is stored) |
layerNames | Pointer to a vector holding the layer names (pointer to vector is stored) |
layerDets | Vector of pointers to layer DetLayer objects (vector is copied, i.e. DetLayer pointers are stored) |
Definition at line 10 of file SeedingLayerSetsHits.cc.
SeedingLayerSetsHits::~SeedingLayerSetsHits | ( | ) |
Definition at line 19 of file SeedingLayerSetsHits.cc.
|
inline |
Definition at line 179 of file SeedingLayerSetsHits.h.
References layerSetIndices_.
Referenced by cbegin(), hits(), and operator[]().
|
inline |
|
inline |
|
inline |
Definition at line 181 of file SeedingLayerSetsHits.h.
References layerSetIndices_.
Referenced by cend(), hits(), and operator[]().
|
private |
Definition at line 28 of file SeedingLayerSetsHits.cc.
References begin(), filterCSVwithJSON::copy, end(), layerHitIndices_, rechits_, and run_regression::ret.
Referenced by SeedingLayerSetsHits::SeedingLayer::hits().
|
inline |
Get number of layers in each SeedingLayerSets.
Definition at line 167 of file SeedingLayerSetsHits.h.
References nlayers_.
Referenced by CombinedHitPairGenerator::hitPairs(), CombinedMultiHitGenerator::hitSets(), CombinedHitTripletGenerator::hitTriplets(), LayerTriplets::layers(), and print().
|
inline |
Get the SeedingLayerSet at a given index.
Definition at line 172 of file SeedingLayerSetsHits.h.
References begin(), end(), getHLTprescales::index, layerSetIndices_, and nlayers_.
Referenced by print().
void SeedingLayerSetsHits::print | ( | void | ) | const |
Definition at line 40 of file SeedingLayerSetsHits.cc.
References SeedingLayerSetsHits::SeedingLayer::hits(), SeedingLayerSetsHits::SeedingLayer::index(), LayerTriplets::layers(), LogDebug, SeedingLayerSetsHits::SeedingLayer::name(), numberOfLayersInSet(), operator[](), SeedingLayerSetsHits::SeedingLayerSet::size(), and size().
|
inline |
Get the number of SeedingLayerSets.
Definition at line 169 of file SeedingLayerSetsHits.h.
References layerSetIndices_, and nlayers_.
Referenced by print().
|
inline |
Definition at line 185 of file SeedingLayerSetsHits.h.
References layerDets_, layerHitIndices_, layerNames_, layerSetIndices_, nlayers_, rechits_, and std::swap().
Definition at line 23 of file SeedingLayerSetsHits.cc.
References layerHitIndices_, and rechits_.
|
private |
Definition at line 212 of file SeedingLayerSetsHits.h.
Referenced by SeedingLayerSetsHits::SeedingLayer::detLayer(), and swap().
|
private |
Definition at line 210 of file SeedingLayerSetsHits.h.
Referenced by hits(), swap(), and swapHits().
|
private |
Definition at line 211 of file SeedingLayerSetsHits.h.
Referenced by SeedingLayerSetsHits::SeedingLayer::name(), and swap().
|
private |
Stores SeedingLayerSets as nlayers_ consecutive layer indices. Layer indices point to layerHitRanges_, layerNames_, and layerDets_. Hence layerSetIndices.size() == nlayers_*"number of layer sets"
Definition at line 207 of file SeedingLayerSetsHits.h.
Referenced by begin(), end(), operator[](), size(), and swap().
|
private |
Number of layers in a SeedingLayerSet.
Definition at line 200 of file SeedingLayerSetsHits.h.
Referenced by numberOfLayersInSet(), SeedingLayerSetsHits::const_iterator::operator*(), SeedingLayerSetsHits::const_iterator::operator++(), operator[](), size(), and swap().
|
private |
List of RecHits of all SeedingLayers. Hits of each layer are identified by the begin indices in layerHitIndices_.
Definition at line 218 of file SeedingLayerSetsHits.h.
Referenced by hits(), swap(), and swapHits().