#include <MkFitHitIndexMap.h>
Classes | |
struct | ClusterToMkFitHit |
struct | CMSSWHit |
class | MkFitHit |
Public Member Functions | |
size_t | clusterIndex (MkFitHit hit) const |
Get CMSSW cluster index (currently used only for debugging) More... | |
const TrackingRecHit * | hitPtr (MkFitHit hit) const |
Get CMSSW hit pointer. More... | |
void | increaseLayerSize (int layer, size_t additionalSize) |
void | insert (edm::ProductID id, size_t clusterIndex, MkFitHit hit, const TrackingRecHit *hitPtr) |
const MkFitHit & | mkFitHit (edm::ProductID id, size_t clusterIndex) const |
Get mkFit hit index and layer. More... | |
MkFitHitIndexMap ()=default | |
void | resizeByClusterIndex (edm::ProductID id, size_t clusterIndex) |
Private Attributes | |
std::vector< ClusterToMkFitHit > | cmsswToMkFit_ |
std::vector< std::vector< CMSSWHit > > | mkFitToCMSSW_ |
This class provides mappings
Definition at line 15 of file MkFitHitIndexMap.h.
|
default |
|
inline |
Get CMSSW cluster index (currently used only for debugging)
Definition at line 64 of file MkFitHitIndexMap.h.
References mkFitToCMSSW_.
Referenced by MkFitOutputConverter::convertCandidates(), insert(), mkFitHit(), and resizeByClusterIndex().
|
inline |
Get CMSSW hit pointer.
Definition at line 61 of file MkFitHitIndexMap.h.
References mkFitToCMSSW_.
Referenced by MkFitOutputConverter::convertCandidates(), and insert().
void MkFitHitIndexMap::increaseLayerSize | ( | int | layer, |
size_t | additionalSize | ||
) |
Can be used to preallocate the internal vectors for mkFit->CMSSW mapping
layer | Layer index (in mkFit convention) |
additionalSize | Number of additional elements to make space for |
Definition at line 26 of file MkFitHitIndexMap.cc.
References mkFitToCMSSW_, and findQualityFiles::size.
Referenced by MkFitInputConverter::convertHits().
void MkFitHitIndexMap::insert | ( | edm::ProductID | id, |
size_t | clusterIndex, | ||
MkFitHit | hit, | ||
const TrackingRecHit * | hitPtr | ||
) |
Inserts a new hit in the mapping
id | ProductID of the cluster collection |
clusterIndex | Index of the cluster in the cluster collection |
hit | Index and layer of the hit in the mkFit hit data structure |
hitPtr | Pointer to the TrackingRecHit |
Definition at line 33 of file MkFitHitIndexMap.cc.
References clusterIndex(), cmsswToMkFit_, newFWLiteAna::found, hitPtr(), and mkFitToCMSSW_.
Referenced by MkFitInputConverter::convertHits().
const MkFitHitIndexMap::MkFitHit & MkFitHitIndexMap::mkFitHit | ( | edm::ProductID | id, |
size_t | clusterIndex | ||
) | const |
Get mkFit hit index and layer.
Definition at line 51 of file MkFitHitIndexMap.cc.
References clusterIndex(), cmsswToMkFit_, Exception, JetChargeProducer_cfi::exp, newFWLiteAna::found, triggerObjects_cff::id, B2GTnPMonitor_cfi::item, and runTheMatrix::ret.
Referenced by MkFitInputConverter::convertSeeds().
void MkFitHitIndexMap::resizeByClusterIndex | ( | edm::ProductID | id, |
size_t | clusterIndex | ||
) |
Can be used to preallocate the internal vectors for CMSSW->mkFit mapping
Definition at line 22 of file MkFitHitIndexMap.cc.
References clusterIndex(), and cmsswToMkFit_.
Referenced by MkFitInputConverter::convertHits().
|
private |
Definition at line 82 of file MkFitHitIndexMap.h.
Referenced by insert(), mkFitHit(), and resizeByClusterIndex().
|
private |
Definition at line 83 of file MkFitHitIndexMap.h.
Referenced by clusterIndex(), hitPtr(), increaseLayerSize(), and insert().