CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
BXVector< T > Class Template Reference

#include <BXVector.h>

Public Types

typedef std::vector< T >::const_iterator const_iterator
 
typedef std::vector< T >::iterator iterator
 
typedef std::vector< T >::size_type size_type
 
typedef T value_type
 

Public Member Functions

void addBX ()
 
const Tat (int bx, unsigned i) const
 
const_iterator begin (int bx) const
 
const_iterator begin () const
 
 BXVector (unsigned size=0, int bxFirst=0, int bxLast=0)
 
void clear ()
 
void clearBX (int bx)
 
void deleteBX (int bx)
 
const_iterator end (int bx) const
 
const_iterator end () const
 
void erase (int bx, unsigned i)
 
void fillPtrVector (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const *> &ptrs) const
 
void fillView (edm::ProductID const &id, std::vector< void const *> &pointers, edm::FillViewHelperVector &helpers) const
 
int getFirstBX () const
 
int getLastBX () const
 
void insert (int bx, unsigned i, T object)
 
bool isEmpty (int bx) const
 
unsigned int key (const_iterator &iter) const
 
Toperator[] (std::size_t i)
 
const Toperator[] (std::size_t i) const
 
void push_back (int bx, T object)
 
void resize (int bx, unsigned size)
 
void resizeAll (unsigned size)
 
void set (int bx, unsigned i, const T &object)
 
void setBXRange (int bxFirst, int bxLast)
 
void setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const
 
unsigned size (int bx) const
 
unsigned size () const
 

Private Member Functions

unsigned indexFromBX (int bx) const
 
unsigned numBX () const
 

Private Attributes

int bxFirst_
 
int bxLast_
 
std::vector< Tdata_
 internal data representation: More...
 
std::vector< unsigned > itrs_
 

Detailed Description

template<class T>
class BXVector< T >

Definition at line 15 of file BXVector.h.

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef std::vector<T>::const_iterator BXVector< T >::const_iterator

Definition at line 18 of file BXVector.h.

◆ iterator

template<class T>
typedef std::vector<T>::iterator BXVector< T >::iterator

Definition at line 17 of file BXVector.h.

◆ size_type

template<class T>
typedef std::vector<T>::size_type BXVector< T >::size_type

Definition at line 20 of file BXVector.h.

◆ value_type

template<class T>
typedef T BXVector< T >::value_type

Definition at line 19 of file BXVector.h.

Constructor & Destructor Documentation

◆ BXVector()

template<class T>
BXVector< T >::BXVector ( unsigned  size = 0,
int  bxFirst = 0,
int  bxLast = 0 
)

Member Function Documentation

◆ addBX()

template<class T>
void BXVector< T >::addBX ( )

◆ at()

template<class T>
const T& BXVector< T >::at ( int  bx,
unsigned  i 
) const

◆ begin() [1/2]

template<class T>
const_iterator BXVector< T >::begin ( int  bx) const

Referenced by L1TdeStage2EMTF::analyze(), L1TdeStage2RegionalShower::analyze(), L1TStage2RegionalMuonCandComp::analyze(), L1TStage2RegionalMuonShowerComp::analyze(), L1TStage2MuonComp::analyze(), L1TStage2MuonShowerComp::analyze(), L1TStage2uGMT::analyze(), L1TStage2uGMTInputBxDistributions::analyze(), L1TStage2CaloLayer2::analyze(), HLTTauDQML1Plotter::analyze(), L1TBasicDemo::analyze(), L1TSummary::analyze(), L1TdeStage2CaloLayer1::analyze(), L1TObjectsTiming::analyze(), L1TdeStage2uGT::analyze(), L1TStage2OMTF::analyze(), L1TStage2uGTTiming::analyze(), L1TStage2uGT::analyze(), L1TCaloLayer1Validator::analyze(), L1TStage2BMTF::analyze(), L1CaloTowerTreeProducer::analyze(), L1Validator::analyze(), L1TComparison::analyze(), L1TTauOffline::analyze(), L1MuBMTrackFinder::begin(), L1RegionData< T1 >::beginIt(), HGCalTriggerTools::bxVectorToVector(), L1TStage2uGTCaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareEGs(), L1TStage2CaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareJets(), L1TStage2uGTCaloLayer2Comp::compareJets(), L1TStage2CaloLayer2Comp::compareJets(), L1TStage2uGTCaloLayer2Comp::compareSums(), L1TdeStage2CaloLayer2::compareSums(), L1TStage2uGTCaloLayer2Comp::compareTaus(), L1TdeStage2CaloLayer2::compareTaus(), L1TStage2CaloLayer2Comp::compareTaus(), HGCalTriggerValidator::dqmAnalyze(), L1TStage2CaloLayer1::dqmAnalyze(), L1TEGammaOffline::fillElectrons(), L1TStage2CaloLayer2Offline::fillEnergySums(), L1TStage2CaloLayer2Offline::fillJets(), L1TEGammaOffline::fillPhotons(), HLTPrescaler::filter(), SeedMvaEstimator::getL1MuonVariables(), L1TMuonDQMOffline::getMuonGmtPairs(), L1TTauOffline::getTauL1tPairs(), l1t::stage2::GlobalExtBlkPacker::pack(), l1t::stage2::GlobalAlgBlkPacker::pack(), process(), l1tpf::PFClusterProducerFromHGC3DClusters::produce(), pat::L1MuonMatcher::produce(), L1TMuonQualityAdjuster::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), l1t::L1ComparatorRun2::produce(), HLTL1TMuonSelector::produce(), L1TPhysicalEtAdder::produce(), HLTL1MuonNoL2Selector::produce(), L1TBMTFConverter::produce(), L1TCaloUpgradeToGCTConverter::produce(), Phase2L1CaloJetEmulator::produce(), L1TowerCalibrator::produce(), IsolatedPixelTrackCandidateL1TProducer::produce(), L1TPFCaloProducer::readHcalHGCTowers_(), L1MuonSeededTrackingRegionsProducer::regions(), HLTL1TSeed::seedsL1TriggerObjectMaps(), L1Analysis::L1AnalysisL1Upgrade::SetEm(), L1Analysis::L1AnalysisL1Upgrade::SetMuonShower(), L1Analysis::L1AnalysisL1Upgrade::SetSum(), L1Analysis::L1AnalysisL1Upgrade::SetSumZDC(), L1Analysis::L1AnalysisL1UpgradeTfMuonShower::SetTfMuonShower(), and omtf::MuonUnpacker::unpack().

◆ begin() [2/2]

template<class T>
const_iterator BXVector< T >::begin ( void  ) const
inline

Definition at line 98 of file BXVector.h.

Referenced by BXVector< const l1t::L1Candidate *>::key().

98 { return data_.begin(); }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:131

◆ clear()

template<class T>
void BXVector< T >::clear ( )

◆ clearBX()

template<class T>
void BXVector< T >::clearBX ( int  bx)

◆ deleteBX()

template<class T>
void BXVector< T >::deleteBX ( int  bx)

◆ end() [1/2]

template<class T>
const_iterator BXVector< T >::end ( int  bx) const

Referenced by L1TdeStage2EMTF::analyze(), L1TdeStage2RegionalShower::analyze(), L1TStage2RegionalMuonCandComp::analyze(), L1TStage2RegionalMuonShowerComp::analyze(), L1TStage2MuonComp::analyze(), L1TStage2MuonShowerComp::analyze(), L1TStage2uGMT::analyze(), L1TStage2uGMTInputBxDistributions::analyze(), L1TStage2CaloLayer2::analyze(), HLTTauDQML1Plotter::analyze(), L1TBasicDemo::analyze(), L1TSummary::analyze(), L1TdeStage2CaloLayer1::analyze(), L1TObjectsTiming::analyze(), L1TdeStage2uGT::analyze(), L1TStage2OMTF::analyze(), L1TStage2uGTTiming::analyze(), L1TStage2uGT::analyze(), L1TCaloLayer1Validator::analyze(), L1TStage2BMTF::analyze(), L1CaloTowerTreeProducer::analyze(), L1Validator::analyze(), L1TComparison::analyze(), L1TTauOffline::analyze(), HGCalTriggerTools::bxVectorToVector(), L1TStage2uGTCaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareEGs(), L1TStage2CaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareJets(), L1TStage2uGTCaloLayer2Comp::compareJets(), L1TStage2CaloLayer2Comp::compareJets(), L1TStage2uGTCaloLayer2Comp::compareSums(), L1TdeStage2CaloLayer2::compareSums(), L1TStage2uGTCaloLayer2Comp::compareTaus(), L1TdeStage2CaloLayer2::compareTaus(), L1TStage2CaloLayer2Comp::compareTaus(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), HGCalTriggerValidator::dqmAnalyze(), L1TStage2CaloLayer1::dqmAnalyze(), L1MuBMTrackFinder::end(), L1RegionData< T1 >::endIt(), L1TEGammaOffline::fillElectrons(), L1TStage2CaloLayer2Offline::fillEnergySums(), L1TStage2CaloLayer2Offline::fillJets(), L1TEGammaOffline::fillPhotons(), SeedMvaEstimator::getL1MuonVariables(), L1TMuonDQMOffline::getMuonGmtPairs(), L1TTauOffline::getTauL1tPairs(), l1t::stage2::GlobalAlgBlkPacker::pack(), l1t::stage2::GlobalExtBlkPacker::pack(), process(), l1tpf::PFClusterProducerFromHGC3DClusters::produce(), pat::L1MuonMatcher::produce(), L1TMuonQualityAdjuster::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), l1t::L1ComparatorRun2::produce(), HLTL1TMuonSelector::produce(), L1TPhysicalEtAdder::produce(), HLTL1MuonNoL2Selector::produce(), L1TBMTFConverter::produce(), L1TCaloUpgradeToGCTConverter::produce(), Phase2L1CaloJetEmulator::produce(), L1TowerCalibrator::produce(), IsolatedPixelTrackCandidateL1TProducer::produce(), L1TPFCaloProducer::readHcalHGCTowers_(), L1MuonSeededTrackingRegionsProducer::regions(), HLTL1TSeed::seedsL1TriggerObjectMaps(), L1Analysis::L1AnalysisL1Upgrade::SetEm(), L1Analysis::L1AnalysisL1Upgrade::SetMuonShower(), L1Analysis::L1AnalysisL1Upgrade::SetSum(), L1Analysis::L1AnalysisL1Upgrade::SetSumZDC(), L1Analysis::L1AnalysisL1UpgradeTfMuonShower::SetTfMuonShower(), and omtf::MuonUnpacker::unpack().

◆ end() [2/2]

template<class T>
const_iterator BXVector< T >::end ( void  ) const
inline

Definition at line 99 of file BXVector.h.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

99 { return data_.end(); }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:131

◆ erase()

template<class T>
void BXVector< T >::erase ( int  bx,
unsigned  i 
)

◆ fillPtrVector()

template<class T>
void BXVector< T >::fillPtrVector ( std::type_info const &  toType,
std::vector< unsigned long > const &  indices,
std::vector< void const *> &  ptrs 
) const

◆ fillView()

template<class T>
void BXVector< T >::fillView ( edm::ProductID const &  id,
std::vector< void const *> &  pointers,
edm::FillViewHelperVector helpers 
) const

◆ getFirstBX()

template<class T>
int BXVector< T >::getFirstBX ( ) const

◆ getLastBX()

template<class T>
int BXVector< T >::getLastBX ( ) const

Referenced by L1TdeStage2EMTF::analyze(), L1TStage2RegionalMuonCandComp::analyze(), L1TStage2RegionalMuonShowerComp::analyze(), L1TStage2MuonComp::analyze(), L1TStage2MuonShowerComp::analyze(), L1TStage2CaloLayer2::analyze(), L1TStage2uGMT::analyze(), L1TStage2uGMTInputBxDistributions::analyze(), L1TBasicDemo::analyze(), HLTTauDQML1Plotter::analyze(), L1TSummary::analyze(), L1TObjectsTiming::analyze(), L1TdeStage2uGT::analyze(), L1TStage2OMTF::analyze(), L1TStage2uGTTiming::analyze(), L1TStage2uGT::analyze(), L1TStage2BMTF::analyze(), L1CaloTowerTreeProducer::analyze(), L1Validator::analyze(), L1TComparison::analyze(), l1t::MuonShowerCondition::evaluateCondition(), l1t::ExternalCondition::evaluateCondition(), l1t::EnergySumCondition::evaluateCondition(), l1t::EnergySumZdcCondition::evaluateCondition(), l1t::MuCondition::evaluateCondition(), l1t::CaloCondition::evaluateCondition(), L1MuBMTrackFinder::numberOfTracks(), l1t::stage2::GlobalExtBlkPacker::pack(), l1t::stage2::GlobalAlgBlkPacker::pack(), process(), pat::L1MuonMatcher::produce(), L1TMuonQualityAdjuster::produce(), HLTL1TMuonSelector::produce(), L1TPhysicalEtAdder::produce(), HLTL1MuonNoL2Selector::produce(), L1TCaloUpgradeToGCTConverter::produce(), L1TMuonProducer::produce(), L1MuonSeededTrackingRegionsProducer::regions(), L1Analysis::L1AnalysisL1Upgrade::SetEm(), L1Analysis::L1AnalysisL1Upgrade::SetMuonShower(), L1Analysis::L1AnalysisL1Upgrade::SetSum(), L1Analysis::L1AnalysisL1Upgrade::SetSumZDC(), and L1Analysis::L1AnalysisL1UpgradeTfMuonShower::SetTfMuonShower().

◆ indexFromBX()

template<class T>
unsigned BXVector< T >::indexFromBX ( int  bx) const
private

◆ insert()

template<class T>
void BXVector< T >::insert ( int  bx,
unsigned  i,
T  object 
)

◆ isEmpty()

template<class T>
bool BXVector< T >::isEmpty ( int  bx) const

◆ key()

template<class T>
unsigned int BXVector< T >::key ( const_iterator iter) const
inline

Definition at line 101 of file BXVector.h.

Referenced by l1tpf::PFClusterProducerFromHGC3DClusters::produce(), and HLTL1TSeed::seedsL1TriggerObjectMaps().

101 { return iter - begin(); }
const_iterator begin() const
Definition: BXVector.h:98

◆ numBX()

template<class T>
unsigned BXVector< T >::numBX ( ) const
inlineprivate

Definition at line 119 of file BXVector.h.

119 { return 1 + static_cast<const unsigned>(bxLast_ - bxFirst_); }
int bxFirst_
Definition: BXVector.h:124
int bxLast_
Definition: BXVector.h:125

◆ operator[]() [1/2]

template<class T>
T& BXVector< T >::operator[] ( std::size_t  i)
inline

Definition at line 104 of file BXVector.h.

104 { return data_[i]; }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:131

◆ operator[]() [2/2]

template<class T>
const T& BXVector< T >::operator[] ( std::size_t  i) const
inline

Definition at line 105 of file BXVector.h.

105 { return data_[i]; }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:131

◆ push_back()

template<class T>
void BXVector< T >::push_back ( int  bx,
T  object 
)

◆ resize()

template<class T>
void BXVector< T >::resize ( int  bx,
unsigned  size 
)

◆ resizeAll()

template<class T>
void BXVector< T >::resizeAll ( unsigned  size)

◆ set()

template<class T>
void BXVector< T >::set ( int  bx,
unsigned  i,
const T object 
)

◆ setBXRange()

template<class T>
void BXVector< T >::setBXRange ( int  bxFirst,
int  bxLast 
)

◆ setPtr()

template<class T>
void BXVector< T >::setPtr ( std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const

◆ size() [1/2]

template<class T>
unsigned BXVector< T >::size ( int  bx) const

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), L1TdeStage2EMTF::analyze(), L1TStage2MuonComp::analyze(), L1TStage2RegionalMuonShowerComp::analyze(), L1TStage2MuonShowerComp::analyze(), L1TStage2RegionalMuonCandComp::analyze(), L1TStage2uGMT::analyze(), HLTTauDQML1Plotter::analyze(), L1uGTTreeProducer::analyze(), L1Validator::analyze(), L1TComparison::analyze(), L1TTauOffline::analyze(), L1TStage2uGTCaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareEGs(), L1TStage2CaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareJets(), L1TStage2uGTCaloLayer2Comp::compareJets(), L1TStage2CaloLayer2Comp::compareJets(), L1TStage2uGTCaloLayer2Comp::compareSums(), L1TStage2CaloLayer2Comp::compareSums(), L1TStage2uGTCaloLayer2Comp::compareTaus(), L1TdeStage2CaloLayer2::compareTaus(), L1TStage2CaloLayer2Comp::compareTaus(), HGCalSortingTruncationWrapper::convertCMSSWInputs(), l1t::AXOL1TLCondition::evaluateCondition(), l1t::MuonShowerCondition::evaluateCondition(), l1t::ExternalCondition::evaluateCondition(), l1t::MuCondition::evaluateCondition(), l1t::EnergySumCondition::evaluateCondition(), l1t::EnergySumZdcCondition::evaluateCondition(), l1t::CorrCondition::evaluateCondition(), l1t::CaloCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), L1TTauOffline::getTauL1tPairs(), CandidateSimMuonMatcher::ghostBust(), HGCalTriggerClusterInterpretationEM::interpret(), L1RegionData< T1 >::isEmpty(), L1MuBMTrackFinder::numberOfTracks(), L1TMuonShowerProducer::produce(), Phase2L1TGMTFwdMuonTranslator::produce(), pat::L1MuonMatcher::produce(), l1t::L1ComparatorRun2::produce(), HLTL1TMuonSelector::produce(), HLTL1MuonNoL2Selector::produce(), L1MuonSeededTrackingRegionsProducer::regions(), HGCalBackendLayer1Processor::run(), HGCalTowerMapProcessor::run(), HGCalTowerProcessor::run(), HGCalBackendLayer1Processor2DClustering::run(), HGCalBackendLayer2Processor3DClustering::run(), HGCalBackendLayer2Processor3DClusteringSA::run(), EcalUncalibRecHitWorkerMultiFit::run(), and HLTL1TSeed::seedsL1TriggerObjectMaps().

◆ size() [2/2]

template<class T>
unsigned BXVector< T >::size ( void  ) const
inline

Definition at line 71 of file BXVector.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

71 { return data_.size(); }
std::vector< T > data_
internal data representation:
Definition: BXVector.h:131

Member Data Documentation

◆ bxFirst_

template<class T>
int BXVector< T >::bxFirst_
private

Definition at line 124 of file BXVector.h.

Referenced by BXVector< const l1t::L1Candidate *>::numBX().

◆ bxLast_

template<class T>
int BXVector< T >::bxLast_
private

Definition at line 125 of file BXVector.h.

Referenced by BXVector< const l1t::L1Candidate *>::numBX().

◆ data_

template<class T>
std::vector<T> BXVector< T >::data_
private

◆ itrs_

template<class T>
std::vector<unsigned> BXVector< T >::itrs_
private

Definition at line 132 of file BXVector.h.