#include <SiStripRegionCabling.h>
Public Types | |
typedef std::vector < RegionCabling > | Cabling |
typedef std::map< uint32_t, std::vector < FedChannelConnection > > | ElementCabling |
typedef uint32_t | ElementIndex |
enum | Layer { TIBLAYERS = 4, TOBLAYERS = 6, TIDLAYERS = 3, TECLAYERS = 9, ALLLAYERS = 10 } |
typedef std::pair< double, double > | Position |
typedef std::pair< uint32_t, uint32_t > | PositionIndex |
typedef std::vector< WedgeCabling > | RegionCabling |
enum | SubDet { TIB = 0, TOB = 1, TID = 2, TEC = 3, ALLSUBDETS = 4 } |
typedef std::vector < ElementCabling > | WedgeCabling |
Public Member Functions | |
const ElementIndex | elementIndex (const PositionIndex, const SubDet, const uint32_t layer) const |
const ElementIndex | elementIndex (const Position, const SubDet, const uint32_t layer) const |
const uint32_t | etadivisions () const |
const Cabling & | getRegionCabling () const |
PositionIndex | increment (const PositionIndex, int, int) const |
const uint32_t | phidivisions () const |
const Position | position (const uint32_t) const |
const Position | position (const PositionIndex) const |
const PositionIndex | positionIndex (const uint32_t) const |
const PositionIndex | positionIndex (const Position) const |
void | print (std::stringstream &) const |
const uint32_t | region (const Position) const |
const uint32_t | region (const PositionIndex) const |
const std::pair< double, double > | regionDimensions () const |
void | setRegionCabling (const Cabling &) |
SiStripRegionCabling (const uint32_t, const uint32_t, const double) | |
template<class T > | |
void | updateSiStripRefGetter (edm::RefGetter< T > &refgetter, const edm::Handle< edm::LazyGetter< T > > &lazygetter, const ElementIndex) const |
template<class T > | |
void | updateSiStripRefGetter (edm::RefGetter< T > &refgetter, const edm::Handle< edm::LazyGetter< T > > &lazygetter, const Position position, const double deltaeta, const double deltaphi, const SubDet subdet, const uint32_t layer) const |
~SiStripRegionCabling () | |
Static Public Member Functions | |
static const ElementIndex | elementIndex (const uint32_t region, const SubDet, const uint32_t layer) |
static const uint32_t | layer (const ElementIndex) |
static const uint32_t | layerFromDetId (const uint32_t detid) |
static const uint32_t | physicalLayer (const SubDet, const uint32_t layer) |
static const uint32_t | physicalLayerFromDetId (const uint32_t detid) |
static const uint32_t | region (const ElementIndex) |
static const SubDet | subdet (const ElementIndex) |
static const SubDet | subdetFromDetId (const uint32_t detid) |
Private Member Functions | |
SiStripRegionCabling () | |
Private Attributes | |
int | etadivisions_ |
double | etamax_ |
int | phidivisions_ |
Cabling | regioncabling_ |
Author: pwing Package: CalibFormats/SiStripObjects Class: SiStripRegionCabling Description: Gives a regional view of the silicon strip tracker cabling. Cabling is divided into (eta,phi) "regions". A "region" within a given sub-detector is called a "wedge". A layer within a given wedge is called an "element".
Definition at line 25 of file SiStripRegionCabling.h.
typedef std::vector< RegionCabling > SiStripRegionCabling::Cabling |
Definition at line 37 of file SiStripRegionCabling.h.
typedef std::map< uint32_t, std::vector<FedChannelConnection> > SiStripRegionCabling::ElementCabling |
Cabling typedefs
Definition at line 34 of file SiStripRegionCabling.h.
typedef uint32_t SiStripRegionCabling::ElementIndex |
Encoded information typedefs
Definition at line 46 of file SiStripRegionCabling.h.
typedef std::pair<double,double> SiStripRegionCabling::Position |
Position typedefs
Definition at line 41 of file SiStripRegionCabling.h.
typedef std::pair<uint32_t,uint32_t> SiStripRegionCabling::PositionIndex |
Definition at line 42 of file SiStripRegionCabling.h.
typedef std::vector< WedgeCabling > SiStripRegionCabling::RegionCabling |
Definition at line 36 of file SiStripRegionCabling.h.
typedef std::vector< ElementCabling > SiStripRegionCabling::WedgeCabling |
Definition at line 35 of file SiStripRegionCabling.h.
Enumerator | |
---|---|
TIBLAYERS | |
TOBLAYERS | |
TIDLAYERS | |
TECLAYERS | |
ALLLAYERS |
Definition at line 31 of file SiStripRegionCabling.h.
SiStripRegionCabling::SiStripRegionCabling | ( | const uint32_t | etadivisions, |
const uint32_t | phidivisions, | ||
const double | etamax | ||
) |
Definition at line 10 of file SiStripRegionCabling.cc.
|
inline |
Definition at line 50 of file SiStripRegionCabling.h.
|
inlineprivate |
Definition at line 130 of file SiStripRegionCabling.h.
|
inlinestatic |
Methods for interchanging between region-subdet-layer and the corresponding element index.
Definition at line 180 of file SiStripRegionCabling.h.
References ALLLAYERS, ALLSUBDETS, and layer().
Referenced by elementIndex(), OnDemandMeasurementTracker::OnDemandMeasurementTracker(), HITSiStripRawToClustersRoI::produce(), SiStripRawToClustersRoI::random(), HITSiStripRawToClustersRoI::random(), SiStripRawToClustersRoI::updateCabling(), and updateSiStripRefGetter().
|
inline |
Definition at line 184 of file SiStripRegionCabling.h.
References elementIndex(), and region().
|
inline |
Definition at line 188 of file SiStripRegionCabling.h.
References elementIndex(), and region().
|
inline |
|
inline |
Definition at line 147 of file SiStripRegionCabling.h.
References regioncabling_.
Referenced by sistrip::RawToClusters::produce(), SiStripRawToClustersRoI::random(), and SiStripRawToClustersRoI::updateCabling().
SiStripRegionCabling::PositionIndex SiStripRegionCabling::increment | ( | const PositionIndex | index, |
int | deta, | ||
int | dphi | ||
) | const |
Method for incrementing position index.
Definition at line 30 of file SiStripRegionCabling.cc.
References eta(), etadivisions_, phi, and phidivisions_.
Referenced by updateSiStripRefGetter().
|
inlinestatic |
Definition at line 192 of file SiStripRegionCabling.h.
References ALLLAYERS.
Referenced by elementIndex(), sistrip::RawToClustersLazyUnpacker::fill(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and physicalLayer().
|
static |
Definition at line 53 of file SiStripRegionCabling.cc.
References ALLLAYERS, TOBDetId::layer(), TIBDetId::layer(), subdet(), subdetFromDetId(), TEC, TIB, TID, TOB, TIDDetId::wheel(), and TECDetId::wheel().
Referenced by OnDemandMeasurementTracker::OnDemandMeasurementTracker(), physicalLayerFromDetId(), and SiStripRegionConnectivity::produceRegionCabling().
|
inline |
|
static |
Definition at line 67 of file SiStripRegionCabling.cc.
References ALLLAYERS, layer(), TEC, TIB, TIBLAYERS, TID, TIDLAYERS, and TOB.
Referenced by SiStripRawToClustersRoI::physicalLayer(), HITSiStripRawToClustersRoI::physicalLayer(), and physicalLayerFromDetId().
|
static |
Definition at line 63 of file SiStripRegionCabling.cc.
References layerFromDetId(), physicalLayer(), and subdetFromDetId().
|
inline |
Definition at line 163 of file SiStripRegionCabling.h.
References getHLTprescales::index, and positionIndex().
Referenced by OnDemandMeasurementTracker::dumpRegion(), OnDemandMeasurementTracker::OnDemandMeasurementTracker(), and updateSiStripRefGetter().
|
inline |
Definition at line 168 of file SiStripRegionCabling.h.
References etamax_, first, M_PI, regionDimensions(), and edm::second().
|
inline |
Definition at line 172 of file SiStripRegionCabling.h.
References phidivisions_.
Referenced by OnDemandMeasurementTracker::dumpRegion(), OnDemandMeasurementTracker::OnDemandMeasurementTracker(), position(), region(), and updateSiStripRefGetter().
const SiStripRegionCabling::PositionIndex SiStripRegionCabling::positionIndex | ( | const Position | position | ) | const |
Definition at line 19 of file SiStripRegionCabling.cc.
References eta(), etadivisions_, etamax_, M_PI, phi, and phidivisions_.
void SiStripRegionCabling::print | ( | std::stringstream & | ss | ) | const |
Definition at line 78 of file SiStripRegionCabling.cc.
References regioncabling_, pileupDistInMC::total, and TrackValidation_HighPurity_cff::valid.
const uint32_t SiStripRegionCabling::region | ( | const Position | position | ) | const |
Definition at line 25 of file SiStripRegionCabling.cc.
References getHLTprescales::index, and positionIndex().
Referenced by OnDemandMeasurementTracker::dumpRegion(), elementIndex(), sistrip::RawToClustersLazyUnpacker::fill(), OnDemandMeasurementTracker::OnDemandMeasurementTracker(), and SiStripRegionConnectivity::produceRegionCabling().
|
inline |
|
inlinestatic |
|
inline |
Methods for interchanging between region, region-index and eta/phi-position.
Definition at line 159 of file SiStripRegionCabling.h.
References etadivisions_, etamax_, M_PI, and phidivisions_.
Referenced by position(), and updateSiStripRefGetter().
|
inline |
Set and get methods for cabling.
Definition at line 143 of file SiStripRegionCabling.h.
References regioncabling_.
Referenced by SiStripRegionConnectivity::produceRegionCabling().
|
inlinestatic |
Definition at line 196 of file SiStripRegionCabling.h.
References ALLLAYERS, and ALLSUBDETS.
Referenced by sistrip::RawToClustersLazyUnpacker::fill(), layerFromDetId(), and subdetFromDetId().
|
static |
Methods for extracting det-id information
Definition at line 43 of file SiStripRegionCabling.cc.
References ALLSUBDETS, subdet(), SiStripDetId::subDetector(), TEC, TIB, TID, and TOB.
Referenced by layerFromDetId(), OnDemandMeasurementTracker::OnDemandMeasurementTracker(), physicalLayerFromDetId(), and SiStripRegionConnectivity::produceRegionCabling().
void SiStripRegionCabling::updateSiStripRefGetter | ( | edm::RefGetter< T > & | refgetter, |
const edm::Handle< edm::LazyGetter< T > > & | lazygetter, | ||
const ElementIndex | index | ||
) | const |
Methods for updating a SiStripRefGetter<T> container with elements of interest
Definition at line 205 of file SiStripRegionCabling.h.
References edm::RefGetter< T >::find(), and edm::RefGetter< T >::push_back().
Referenced by SiStripRawToClustersRoI::bjets(), OnDemandMeasurementTracker::define(), SiStripRawToClustersRoI::electrons(), SiStripRawToClustersRoI::muons(), SiStripRawToClustersRoI::random(), and SiStripRawToClustersRoI::taujets().
void SiStripRegionCabling::updateSiStripRefGetter | ( | edm::RefGetter< T > & | refgetter, |
const edm::Handle< edm::LazyGetter< T > > & | lazygetter, | ||
const Position | position, | ||
const double | deltaeta, | ||
const double | deltaphi, | ||
const SubDet | subdet, | ||
const uint32_t | layer | ||
) | const |
Definition at line 210 of file SiStripRegionCabling.h.
References elementIndex(), i, increment(), getHLTprescales::index, j, gen::k, position(), positionIndex(), and regionDimensions().
|
private |
Number of regions in eta,phi
Definition at line 133 of file SiStripRegionCabling.h.
Referenced by etadivisions(), increment(), positionIndex(), and regionDimensions().
|
private |
Tracker extent in eta
Definition at line 137 of file SiStripRegionCabling.h.
Referenced by position(), positionIndex(), and regionDimensions().
|
private |
Definition at line 134 of file SiStripRegionCabling.h.
Referenced by increment(), phidivisions(), positionIndex(), region(), and regionDimensions().
|
private |
Cabling
Definition at line 140 of file SiStripRegionCabling.h.
Referenced by getRegionCabling(), print(), and setRegionCabling().