Provides dense hash map in place of DetId. More...
#include <SiStripHashedDetId.h>
Public Types | |
typedef std::vector< uint32_t >::const_iterator | const_iterator |
typedef std::vector< uint32_t >::iterator | iterator |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
uint32_t | hashedIndex (uint32_t det_id) |
SiStripHashedDetId & | operator= (const SiStripHashedDetId &other) |
SiStripHashedDetId (const std::vector< uint32_t > &) | |
SiStripHashedDetId (const std::vector< DetId > &) | |
SiStripHashedDetId (const SiStripHashedDetId &) | |
SiStripHashedDetId () | |
const size_t | size () const |
uint32_t | unhashIndex (uint32_t hashed_index) const |
~SiStripHashedDetId () | |
Private Member Functions | |
void | init (const std::vector< uint32_t > &) |
Private Attributes | |
std::vector< uint32_t > | detIds_ |
uint32_t | id_ |
const_iterator | iter_ |
Provides dense hash map in place of DetId.
Definition at line 19 of file SiStripHashedDetId.h.
typedef std::vector<uint32_t>::const_iterator SiStripHashedDetId::const_iterator |
Definition at line 57 of file SiStripHashedDetId.h.
typedef std::vector<uint32_t>::iterator SiStripHashedDetId::iterator |
Definition at line 59 of file SiStripHashedDetId.h.
SiStripHashedDetId::SiStripHashedDetId | ( | const std::vector< uint32_t > & | raw_ids | ) |
Constructor taking raw DetIds as input.
Definition at line 13 of file SiStripHashedDetId.cc.
References init(), LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::SiStripHashedDetId | ( | const std::vector< DetId > & | det_ids | ) |
Constructor taking DetIds as input.
Definition at line 22 of file SiStripHashedDetId.cc.
References detIds_, init(), LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::SiStripHashedDetId | ( | const SiStripHashedDetId & | input | ) |
Copy constructor.
Definition at line 36 of file SiStripHashedDetId.cc.
References filterCSVwithJSON::copy, init(), input, LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::SiStripHashedDetId | ( | ) |
Public default constructor.
Definition at line 52 of file SiStripHashedDetId.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::~SiStripHashedDetId | ( | ) |
Default destructor.
Definition at line 59 of file SiStripHashedDetId.cc.
References detIds_, LogTrace, and sistrip::mlCabling_.
|
inline |
Returns DetId object for given hashed index.
Definition at line 113 of file SiStripHashedDetId.h.
References detIds_.
Referenced by SiStripLorentzAnglePCLMonitor::bookHistograms(), hashedIndex(), operator=(), and unhashIndex().
|
inline |
Definition at line 114 of file SiStripHashedDetId.h.
References detIds_.
Referenced by SiStripLorentzAnglePCLMonitor::bookHistograms(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), hashedIndex(), and unhashIndex().
|
inline |
Returns hashed index for given DetId.
Definition at line 89 of file SiStripHashedDetId.h.
References begin(), end(), spr::find(), id_, sistrip::invalid32_, and iter_.
Referenced by SiStripLorentzAnglePCLMonitor::analyze(), and SiStripLorentzAnglePCLMonitor::bookHistograms().
|
private |
Definition at line 67 of file SiStripHashedDetId.cc.
References DetId::det(), detIds_, id_, sistrip::invalid32_, sistrip::invalid_, iter_, sistrip::mlCabling_, jetUpdater_cfi::sort, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and DetId::Tracker.
Referenced by operator=(), and SiStripHashedDetId().
|
inline |
Assignment operator.
Definition at line 33 of file SiStripHashedDetId.h.
References begin(), filterCSVwithJSON::copy, id_, init(), iter_, and trackingPlots::other.
|
inline |
Definition at line 76 of file SiStripHashedDetId.h.
References detIds_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), SiStripLorentzAnglePCLMonitor::bookHistograms(), and SiStripLorentzAnglePCLMonitor::dqmBeginRun().
|
inline |
Returns raw (32-bit) DetId for given hashed index.
Definition at line 106 of file SiStripHashedDetId.h.
References begin(), detIds_, end(), and sistrip::invalid32_.
|
private |
Sorted list of all silicon strip tracker DetIds.
Definition at line 82 of file SiStripHashedDetId.h.
Referenced by begin(), end(), init(), SiStripHashedDetId(), size(), unhashIndex(), and ~SiStripHashedDetId().
|
private |
Definition at line 84 of file SiStripHashedDetId.h.
Referenced by hashedIndex(), init(), and operator=().
|
private |
Definition at line 86 of file SiStripHashedDetId.h.
Referenced by hashedIndex(), init(), and operator=().