#include <SeedingLayerSetsHits.h>
Classes | |
class | const_iterator |
class | SeedingLayer |
class | SeedingLayerSet |
Public Types | |
using | ConstRecHitPointer = BaseTrackerRecHit const * |
typedef unsigned int | HitIndex |
using | HitPointer = mayown_ptr< BaseTrackerRecHit > |
using | Hits = std::vector< ConstRecHitPointer > |
typedef unsigned short | LayerIndex |
typedef unsigned short | LayerSetIndex |
using | OwnedHits = std::vector< HitPointer > |
using | TkHit = BaseTrackerRecHit |
using | TkHitRef = BaseTrackerRecHit const & |
Public Member Functions | |
void | addHits (LayerIndex layerIndex, OwnedHits &&hits) |
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... | |
SeedingLayerSetsHits & | operator= (SeedingLayerSetsHits const &)=delete |
SeedingLayerSetsHits & | operator= (SeedingLayerSetsHits &&)=default |
SeedingLayerSet | operator[] (LayerSetIndex index) const |
Get the SeedingLayerSet at a given index. More... | |
void | print () const |
SeedingLayerSetsHits ()=default | |
SeedingLayerSetsHits (unsigned short nlayers, const std::vector< LayerSetIndex > *layerSetIndices, const std::vector< std::string > *layerNames, const std::vector< const DetLayer * > *layerDets) | |
SeedingLayerSetsHits (SeedingLayerSetsHits const &)=delete | |
SeedingLayerSetsHits (SeedingLayerSetsHits &&)=default | |
void | shrink_to_fit () |
unsigned short | size () const |
Get the number of SeedingLayerSets. More... | |
void | swap (SeedingLayerSetsHits &other) |
~SeedingLayerSetsHits ()=default | |
Private Member Functions | |
Hits | hits (LayerIndex layerIndex) const |
Private Attributes | |
const std::vector< const DetLayer * > * | layerDets_ = 0 |
std::vector< HitIndex > | layerHitIndices_ |
const std::vector< std::string > * | layerNames_ = 0 |
const std::vector< LayerSetIndex > * | layerSetIndices_ = 0 |
unsigned short | nlayers_ = 0 |
Number of layers in a SeedingLayerSet. More... | |
OwnedHits | rechits_ |
Class to store TransientTrackingRecHits, names, and DetLayer pointers of each seeding layer. It is required that all contained SeedingLayerSets have the same number of layers in each set.
Definition at line 19 of file SeedingLayerSetsHits.h.
using SeedingLayerSetsHits::ConstRecHitPointer = BaseTrackerRecHit const* |
Definition at line 26 of file SeedingLayerSetsHits.h.
typedef unsigned int SeedingLayerSetsHits::HitIndex |
Definition at line 31 of file SeedingLayerSetsHits.h.
Definition at line 23 of file SeedingLayerSetsHits.h.
using SeedingLayerSetsHits::Hits = std::vector<ConstRecHitPointer> |
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.
using SeedingLayerSetsHits::OwnedHits = std::vector<HitPointer> |
Definition at line 24 of file SeedingLayerSetsHits.h.
Definition at line 21 of file SeedingLayerSetsHits.h.
using SeedingLayerSetsHits::TkHitRef = BaseTrackerRecHit const & |
Definition at line 22 of file SeedingLayerSetsHits.h.
|
default |
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 | Pointer to a vector of pointers to layer DetLayer objects (pointer to vector is stored) |
Definition at line 9 of file SeedingLayerSetsHits.cc.
References layerHitIndices_.
|
default |
|
delete |
|
default |
void SeedingLayerSetsHits::addHits | ( | LayerIndex | layerIndex, |
OwnedHits && | hits | ||
) |
Definition at line 25 of file SeedingLayerSetsHits.cc.
References Exception, hits(), layerHitIndices_, eostools::move(), and rechits_.
|
inline |
Definition at line 204 of file SeedingLayerSetsHits.h.
References layerSetIndices_.
Referenced by SeedingLayerSetsHits::SeedingLayerSet::cbegin(), cbegin(), hits(), and operator[]().
|
inline |
|
inline |
|
inline |
Definition at line 206 of file SeedingLayerSetsHits.h.
References layerSetIndices_.
Referenced by SeedingLayerSetsHits::SeedingLayerSet::cend(), cend(), hits(), and operator[]().
|
private |
Definition at line 34 of file SeedingLayerSetsHits.cc.
References begin(), end(), layerHitIndices_, AlCaHLTBitMon_ParallelJobs::p, rechits_, and create_public_lumi_plots::transform.
Referenced by addHits(), and SeedingLayerSetsHits::SeedingLayer::hits().
|
inline |
Get number of layers in each SeedingLayerSets.
Definition at line 192 of file SeedingLayerSetsHits.h.
References nlayers_.
Referenced by CombinedHitQuadrupletGeneratorForPhotonConversion::hitPairs(), CombinedHitPairGenerator::hitPairs(), CombinedHitPairGeneratorForPhotonConversion::hitPairs(), CombinedMultiHitGenerator::hitSets(), CombinedHitTripletGenerator::hitTriplets(), LayerTriplets::layers(), print(), MultiHitFromChi2EDProducer::produce(), CAHitNtupletEDProducerT< T_Generator >::produce(), HitTripletEDProducerT< T_HitTripletGenerator >::produce(), GenericTripletGenerator::run(), GenericPairGenerator::run(), BeamHaloPairGenerator::run(), and SimpleCosmicBONSeeder::triplets().
|
delete |
|
default |
|
inline |
Get the SeedingLayerSet at a given index.
Definition at line 197 of file SeedingLayerSetsHits.h.
References begin(), end(), SeedingLayerSetsHits::SeedingLayer::index(), layerSetIndices_, and nlayers_.
Referenced by print().
void SeedingLayerSetsHits::print | ( | void | ) | const |
Definition at line 46 of file SeedingLayerSetsHits.cc.
References SeedingLayerSetsHits::SeedingLayer::hits(), SeedingLayerSetsHits::SeedingLayer::index(), LayerTriplets::layers(), LogDebug, SeedingLayerSetsHits::SeedingLayer::name(), numberOfLayersInSet(), operator[](), SeedingLayerSetsHits::SeedingLayerSet::size(), and size().
Referenced by swap().
void SeedingLayerSetsHits::shrink_to_fit | ( | ) |
|
inline |
Get the number of SeedingLayerSets.
Definition at line 194 of file SeedingLayerSetsHits.h.
References layerSetIndices_, and nlayers_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), CombinedHitQuadrupletGeneratorForPhotonConversion::hitPairs(), CombinedHitPairGeneratorForPhotonConversion::hitPairs(), CAHitTripletGenerator::initEvent(), CAHitQuadrupletGenerator::initEvent(), print(), SeedingLayerSetsHits::SeedingLayerSet::slice(), IsoTrig::studyTiming(), and SimpleCosmicBONSeeder::triplets().
|
inline |
Definition at line 210 of file SeedingLayerSetsHits.h.
References SeedingLayerSetsHits::SeedingLayer::hits(), layerDets_, layerHitIndices_, layerNames_, layerSetIndices_, nlayers_, print(), rechits_, and std::swap().
|
private |
Definition at line 237 of file SeedingLayerSetsHits.h.
Referenced by SeedingLayerSetsHits::SeedingLayer::detLayer(), and swap().
|
private |
Definition at line 235 of file SeedingLayerSetsHits.h.
Referenced by addHits(), hits(), SeedingLayerSetsHits(), and swap().
|
private |
Definition at line 236 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 232 of file SeedingLayerSetsHits.h.
Referenced by begin(), end(), operator[](), size(), and swap().
|
private |
Number of layers in a SeedingLayerSet.
Definition at line 225 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 243 of file SeedingLayerSetsHits.h.
Referenced by addHits(), hits(), shrink_to_fit(), and swap().