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 (const std::vector< uint32_t > &) | |
SiStripHashedDetId (const std::vector< DetId > &) | |
SiStripHashedDetId (const SiStripHashedDetId &) | |
SiStripHashedDetId () | |
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 40 of file SiStripHashedDetId.h.
typedef std::vector<uint32_t>::iterator SiStripHashedDetId::iterator |
Definition at line 42 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, detIds_, input, LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::SiStripHashedDetId | ( | ) |
Public default constructor.
Definition at line 45 of file SiStripHashedDetId.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripHashedDetId::~SiStripHashedDetId | ( | ) |
Default destructor.
Definition at line 52 of file SiStripHashedDetId.cc.
References detIds_, LogTrace, and sistrip::mlCabling_.
|
inline |
Returns DetId object for given hashed index.
Definition at line 94 of file SiStripHashedDetId.h.
References detIds_.
Referenced by SiStripLorentzAnglePCLMonitor::bookHistograms(), hashedIndex(), and unhashIndex().
|
inline |
Definition at line 95 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 70 of file SiStripHashedDetId.h.
References begin(), end(), spr::find(), id_, sistrip::invalid32_, and iter_.
Referenced by SiStripLorentzAnglePCLMonitor::analyze().
|
private |
Definition at line 60 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 SiStripHashedDetId().
|
inline |
Returns raw (32-bit) DetId for given hashed index.
Definition at line 87 of file SiStripHashedDetId.h.
References begin(), detIds_, end(), and sistrip::invalid32_.
|
private |
Sorted list of all silicon strip tracker DetIds.
Definition at line 63 of file SiStripHashedDetId.h.
Referenced by begin(), end(), init(), SiStripHashedDetId(), unhashIndex(), and ~SiStripHashedDetId().
|
private |
Definition at line 65 of file SiStripHashedDetId.h.
Referenced by hashedIndex(), and init().
|
private |
Definition at line 67 of file SiStripHashedDetId.h.
Referenced by hashedIndex(), and init().